[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] /usr/bin/ld: cannot find -lccs RHEL4

Hello Steve,
I found the solution, on different machines i faced differentproblems,
i followed this method.
1:install kernels then related packages, needed few rpms extra ,
looked at the errors and searched for the file missing,
[root pr009 cluster]# ./configure --kernel_src=/usr/src/kernels/<version>
make && make install
I reached to this conclusion, one may need some rpm's from rhel cd's
and/or have to configure, make , make install one by one in downloaded
cluster source via cvs. depending on error.

thanks and regards
anuj singh

On 5/29/07, Steve Maddison <s maddison greenvalley nl> wrote:
Hash: SHA1

Anuj Singh wrote:
> Hi,
> I used cvs to get the source for cluster on rhel4.
> cvs -d :pserver:cvs sources redhat com:/cvs/cluster checkout -r RHEL4
> cluster
> i have this error while installation.
> cd qdisk && make install
> make[2]: Entering directory `/root/cluster/cman/qdisk'
> gcc -o qdiskd disk.o crc32.o disk_util.o main.o score.o bitmap.o
> clulog.o gettid.o proc.o daemon_init.o ../lib/libcman.a -lpthread
> -L../lib -lccs
> /usr/bin/ld: cannot find -lccs
> collect2: ld returned 1 exit status
> make[2]: *** [qdiskd] Error 1
> make[2]: Leaving directory `/root/cluster/cman/qdisk'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/root/cluster/cman'
> make: *** [all] Error 2

Hi Anuj,

I've come across this one myself. According to my (now rather dated)
notes, you'd need to edit /usr/src/cluster/cman/qdisk/Makefile thus:

qdiskd: disk.o crc32.o disk_util.o main.o score.o bitmap.o clulog.o \
        gettid.o proc.o ../lib/libcman.a
        gcc -o $@ $^ -lpthread -L../../ccs/lib -lccs
Unfortunately I didn't note the line number, but you should be able to
find it. Of course, as you're likely working with a different version,
you may need make some adjustments - the main thing is that the ccs/lib
directory is referenced properly, relative to cluster/cman/qdisk.

Incidentally, these same notes suggest the following is needed for a
clean build:

cd /usr/src/cluster
export KERNEL_SRC=/usr/src/linux
./configure --kernel_src=$KERNEL_SRC

Again, YMMV.

Best of luck,

- --
Steve Maddison
System Administrator
Green Valley BV
Tel: +31 (0)15 251 1000
Fax: +31 (0)15 251 1001
KvK: 27189748
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Linux-cluster mailing list
Linux-cluster redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]