Subject: Re: gcc unusable on sparc?
To: None <ManuelHeinzmann@t-online.de>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 06/19/2002 18:48:23
Did you update your libc, besides libcrypto?
You should update lib/libc, rebuild and reinstall.

Jaromir

Manuel Heinzmann wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Tuesday 18 June 2002 18:12, gabriel rosenkoetter wrote:
> >
> > It's awfully hard to help you with this without having any idea what
> > error output you're seeing.
> 
> All programs were fully deleted from pkgsrc and re-checkout-ed
> 
> Actually it seems to be a problem with the linker and a crypto library
> Some error.logs:
> mysql-client-3.23.49
> ------------------------
> cc -O3 -DDBUG_OFF 
> -I/usr/pkgsrc/databases/mysql-client/work/.buildlink/include -O2 
> -mcpu=cypress -Dunix -Wl,-R/usr/pkg/lib -o conf_to_src conf_to_src.o  
> -L/usr/pkgsrc/databases/mysql-client/work/.buildlink/lib -lz -lcrypt -lm
> /usr/lib/libcrypt.so: undefined reference to `arc4random'
> collect2: ld returned 1 exit status
> *** Error code 1
> Stop.
> ----------------
> proftpd:
> ---------------
> cc -Llib  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o proftpd src/main.o 
> src/timers.o src/sets.o src/pool.o src/dirtree.o src/support.o src/inet.o 
> src/log.o src/io.o src/ident.o src/data.o src/modules.o src/auth.o src/fs.o 
> modules/mod_core.o modules/mod_auth.o modules/mod_xfer.o modules/mod_site.o 
> modules/mod_ls.o modules/mod_unixpw.o modules/mod_log.o  
> modules/module_glue.o -lsupp  -lutil 
> modules/mod_unixpw.o: In function `pw_check':
> modules/mod_unixpw.o(.text+0xabc): undefined reference to `crypt'
> collect2: ld returned 1 exit status
> --------------------------
> wu-ftpd
> -------------
> cc  -O2 -mcpu=cypress -L../../support -lskey -lsupport -o privatepw 
> privatepw.c ../../src/COPYRIGHT.c vers.c
> /var/tmp/ccej17cW.o: In function `main':
> /var/tmp/ccej17cW.o(.text+0x6e8): warning: tmpnam() possibly used unsafely, 
> use mkstemp() or mkdtemp()
> /var/tmp/ccej17cW.o: In function `addrecord':
> /var/tmp/ccej17cW.o(.text+0x384): undefined reference to `crypt'
> collect2: ld returned 1 exit status
> ---
> perl5
> -----
> /usr/lib/libcrypt.so: undefined reference to `arc4random'
> collect2: ld returned 1 exit status
> -----
> Just in case it helps:
> #ld /usr/lib/libcrypt.so
> 
> ld: warning: cannot find entry symbol _start; not setting start address
> /usr/lib/libcrypt.so: undefined reference to `snprintf'
> /usr/lib/libcrypt.so: undefined reference to `arc4random'
> /usr/lib/libcrypt.so: undefined reference to `memcpy'
> /usr/lib/libcrypt.so: undefined reference to `MD5Final'
> /usr/lib/libcrypt.so: undefined reference to `strcat'
> /usr/lib/libcrypt.so: undefined reference to `strlcpy'
> /usr/lib/libcrypt.so: undefined reference to `strncmp'
> /usr/lib/libcrypt.so: undefined reference to `MD5Init'
> /usr/lib/libcrypt.so: undefined reference to `urem'
> /usr/lib/libcrypt.so: undefined reference to `rem'
> /usr/lib/libcrypt.so: undefined reference to `MD5Update'
> /usr/lib/libcrypt.so: undefined reference to `atoi'
> /usr/lib/libcrypt.so: undefined reference to `strlen'
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-