Coda File System

Re: Coda Compile Problem.

From: Victor <victord_at_paid.com>
Date: Fri, 1 Feb 2002 17:21:06 -0500
> Now that you mention it, the link line doesn't include -lrpc2 because
> dirtest shouldn't even be using any functions from 'getsecret', so why
> is the linker complaining?

Compiler verson:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)

Damn, is it because of 2.96?

$ cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)

> What version of gcc are you using? Adding $(LIBRPC2) to the LIBS :=
> variable in the makefile will fix it, but I'm not sure why we would need
> to do that.

I added it and dir compiled fine. But then another error came right
afterwards:

make[2]: Entering directory `/usr/home/victord/CODA/coda-5.3.17/coda-src/al'
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdbdb.o pdbdb.c
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdbpack.o pdbpack.c
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
alprocs.o alprocs.c
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdb.o pdb.c
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdbprofile.o pdbprofile.c
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdbarray.o pdbarray.c
ar rv libal.a pdbdb.o pdbpack.o alprocs.o pdb.o pdbprofile.o pdbarray.o
a - pdbdb.o
a - pdbpack.o
a - alprocs.o
a - pdb.o
a - pdbprofile.o
a - pdbarray.o
ranlib libal.a
gcc -fno-exceptions -MD -DHAVE_CONFIG_H -I. -I/usr/home/victord/CODA/coda-5.
3.17/include -I/usr/home/victord/CODA/coda-5.3.1
7 -I/usr/coda/include -I/usr/coda/include -I/usr/coda/include -Wall   -c -o
pdbtool.o pdbtool.c
gcc -fno-exceptions -L/usr/coda/lib -L/usr/coda/lib -L/usr/coda/lib
pdbtool.o libal.a ../util/libutil.a /usr/home/victord/CO
DA/coda-5.3.17/lib-src/base/libbase.a -ldb1   -lreadline -ltermcap -o
pdbtool
../util/libutil.a(getsecret.o): In function `GenerateSecret(unsigned char
*)':
getsecret.o(.text+0x1f2): undefined reference to `rpc2_NextRandom'
collect2: ld returned 1 exit status
make[2]: *** [pdbtool] Error 1
make[2]: Leaving directory `/usr/home/victord/CODA/coda-5.3.17/coda-src/al'
make[1]: *** [al] Error 2
make[1]: Leaving directory `/usr/home/victord/CODA/coda-5.3.17/coda-src'
make: *** [coda-src] Error 2
Received on 2002-02-01 17:22:22