stumped on a linker problem.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell
Date: Saturday, November 20, 2010 - 1:24 am

Trying to compile Hercules (a s/390 emulator) on 4.8/sparc64
and hit this error.

.libs/herculesS.o(.rodata+0x2d0): undefined reference to `aliases2_lookup'

that particular function is in libiconv.
I managed to get ld to produce verbose output and saw

attempt to open /usr/local/lib/libiconv.so.6.0 succeeded
-liconv (/usr/local/lib/libiconv.so.6.0)

hell I even checked libiconv with nm

so what else should I look for?

here is the full gcc command.

gcc -W -Wall -O3 -o hercules .libs/herculesS.o bootstrap.o hdlmain.o 
-pthread -pthread -Wl,-E  -L/usr/local/lib ./.libs/dyngui.a 
./.libs/dyninst.a ./.libs/hdteq.a ./.libs/hdt1403.a ./.libs/hdt3420.a 
./.libs/hdt2703.a ./.libs/hdt3705.a ./.libs/hdt3088.a ./.libs/hdt3270.a 
./.libs/hdt3505.a ./.libs/hdt3525.a ./.libs/hdtqeth.a ./.libs/hdt1052c.a 
/usr/people/russell/hercules-3.07/.libs/libherc.a ./.libs/libherc.a 
/usr/people/russell/hercules-3.07/.libs/libherct.a 
/usr/people/russell/hercules-3.07/.libs/libhercd.a 
/usr/people/russell/hercules-3.07/.libs/libhercu.a 
/usr/people/russell/hercules-3.07/.libs/libhercs.a 
/usr/people/russell/hercules-3.07/decNumber/.libs/libdecNumber.a 
./.libs/libhercs.a -liconv -lpthread -lz -lm -Wl,-rpath,/usr/local/lib 
-Wl,-rpath,/usr/local/lib
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
stumped on a linker problem., Russell, (Sat Nov 20, 1:24 am)
Re: stumped on a linker problem., Philip Guenther, (Sat Nov 20, 5:17 pm)