Subject: Q. re linking on Mac OS X
To: NetBSD Packages Technical Discussion List <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 07/11/2006 21:01:33
Trying to link a binary on MacOS X (10.4.7) I get the following  
warnings:

gcc -pipe  -O3 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 - 
falign-loops=16 -falign-jumps=16 -falign-functions=16 -malign-natural  
-ffast-math -funroll-loops -ftree-loop-linear -mcpu=G5 -mpowerpc- 
gpopt -mtune=G5 -fsched-interblock -fgcse-sm -mpowerpc64 -I/Users/ 
schwarz/pkg/include -I/usr/include -I/Users/schwarz/pkg/include  -L/ 
Users/schwarz/pkg/lib -L/usr/lib -L/usr/local/lib -o tac_plus   
tac_plus.o acct.o  do_author.o md4.o report.o  authen.o dump.o md5.o   
sendauth.o author.o enable.o  packet.o sendpass.o choose_authen.o   
encrypt.o parse.o skey_fn.o  config.o expire.o programs.o   
default_fn.o pw.o utils.o  default_v0_fn.o hash.o pwlib.o  do_acct.o  
maxsess.o regexp.o -L/usr/lib -lwrap -lpam -lskey
/usr/bin/ld: warning multiple definitions of symbol _regcomp
regexp.o definition of _regcomp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib 
(regcomp.So) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
regexp.o definition of _regexec in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib 
(regexec.So) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _allow_severity
tac_plus.o definition of _allow_severity in section (__DATA,__data)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
(tcpd.o) definition of _allow_severity
/usr/bin/ld: warning multiple definitions of symbol _main
tac_plus.o definition of _main in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
(tcpd.o) definition of _main
/usr/bin/ld: warning multiple definitions of symbol _deny_severity
tac_plus.o definition of _deny_severity in section (__DATA,__data)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
(tcpd.o) definition of _deny_severity

does anyone know why they appear and what they mean?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
georg.schwarz@freenet.de  +49 178 8545053