On Tue, Jan 17, 2006 at 08:28:37AM -0600, Greg Bacon wrote: : I'm still seeing a link failure with r11221. : : A confusing bit: I stopped the stripping of libparrot.dll, and nm : seems to see the symbols that the linker's complaining about: : : [...] : Compiling with: : xx.c : gcc -I./include -pipe -I/usr/local/include -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Winline -W -Wno-unused -Wsign-compare -Wformat-nonliteral -Wformat-security -Wpacked -Wdisabled-optimization -Wno-shadow -falign-functions=16 -DHAS_JIT -DI386 -DHAVE_COMPUTED_GOTO -I. -o xx.o -c xx.c : gcc -o miniparrot.exe -L/usr/local/lib compilers/imcc/main.o \ : -L/home/gbacon/src/parrot/blib/lib -lparrot -lcrypt src/null_config.o : compilers/imcc/main.o: In function `imcc_version': : /home/gbacon/src/parrot/compilers/imcc/main.c:118: undefined reference to `_Parrot_revision' : /home/gbacon/src/parrot/compilers/imcc/main.c:122: undefined reference to `_Parrot_config_revision' : compilers/imcc/main.o: In function `main': : /home/gbacon/src/parrot/compilers/imcc/main.c:469: undefined reference to `_imcc_init' : Info: resolving _yydebug by linking to __imp__yydebug (auto-import) : Info: resolving _line by linking to __imp__line (auto-import) : collect2: ld returned 1 exit status : make: *** [miniparrot.exe] Error 1 : : $ nm blib/lib/libparrot.dll | egrep 'Parrot_(config_)?revision|imcc_init' : 1007c7c0 T _Parrot_config_revision : 1007c7b0 T _Parrot_revision : 10175380 T _imcc_init : 10166320 T _imcc_init_tables : : Phbbbbbt!
Looks like the same problem we were having before. If we have to have -L/usr/local/lib in there, it should probably come after your personal -L/home/gbacon/src/parrot/blib/lib so that -lparrot prefers the one you just built. You ran nm on a different libparrot than the one the linker used. Larry