[uClibc]pppd uclibc-patch rand-error

Klaus Reinhardt K.Rdt at TU-Berlin.DE
Thu Oct 25 17:33:42 UTC 2001


----------------- mailto:K.Rdt at TU-Berlin.DE start -------------------
Hi

After having patched ppp-2.4.1 with ppp-2.4.1.uclibc-patch
I did configure and
make CC=/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc
and got 'undefined reference to `drand48' messages ..
These ?rand48 seem not to be in the uclibc.
How can I work around?

cd pppd; make  all
make]: Entering directory `/usr/src/ppp-2.4.1/pppd'
/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc 
        -O2 -pipe -Wall -g -D_linux_=1 
        -DHAVE_PATHS_H -DHAVE_MULTILINK -DHAVE_MMAP 
        -I../include -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 
        -DPLUGIN -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o 
        upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o 
        sys-linux.o ipxcp.o multilink.o tdb.o tty.o md4.o chap_ms.o 
        -lcrypt  -lcrypt -ldl
magic.o: In function `magic_init':
/usr/src/ppp-2.4.1/pppd/magic.c:50: undefined reference to `srand48'
magic.o: In function `magic':
/usr/src/ppp-2.4.1/pppd/magic.c:59: undefined reference to `mrand48'
chap.o: In function `ChapGenChallenge':
/usr/src/ppp-2.4.1/pppd/chap.c:748: undefined reference to `drand48'
/usr/src/ppp-2.4.1/pppd/chap.c:757: undefined reference to `drand48'
collect2: ld returned 1 exit status
make]: *** ppd] Error 1
make]: Leaving directory `/usr/src/ppp-2.4.1/pppd'
make: *** ll] Error 2


		K at Rdt
----------------- mailto:K.Rdt at TU-Berlin.DE !end! -------------------





More information about the uClibc mailing list