Re: [Fink-devel] XCode issue
Martin Costabel wrote: Daniel Macks wrote: [] I wonder if when linking against that .dylib the linker is picking /sw/lib/libnetpbm.dylib instead of the one just compiled as part of the nascent package? I don't think this happens in this case. The package goes to some lengths to avoid this, -isystem and such. The actual linker line where the undefined symbol appeared was > cc -no-cpp-precomp -L/sw/lib -o pnmtopng pnmtopng.o pngtxt.o \ > `/sw/src/netpbm10-10.24-1/netpbm-10.24/buildtools/libopt > /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.dylib libpng.dylib > libz.dylib` \ > -lm-L/sw/lib > libopt results: ' -L/sw/src/netpbm10-10.24-1/netpbm-10.24/lib -lnetpbm > -lpng -lz' > ld: warning prebinding disabled because of undefined symbols > ld: Undefined symbols: > _pm_seek2 > _pm_tell2 So the good library was there with its full name. The only thing that puzzles me there (apart from the missing symbols that I am not able to reproduce) is the "libopt results:" line. I don't know who is talking there. OK, after looking what libopt does and rereading that linker line, I see now that it is actually possible that the wrong library got picked, because the real linker line (which is not shown) would have been > cc -no-cpp-precomp -L/sw/lib -o pnmtopng pnmtopng.o pngtxt.o \ > -L/sw/src/netpbm10-10.24-1/netpbm-10.24/lib -lnetpbm -lpng -lz \ > -lm-L/sw/lib and so, despite all the efforts, the -lnetpbm will pick up the library in /sw/lib. This libopt stuff is actually more harmful than useful. On darwin, it is superfluous, because we have the install_names. It is a replacement of the install_names construction for those systems where the path that gets hardcoded into the executable is taken from the linker line. -- Martin --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
Daniel Macks wrote: [] I wonder if when linking against that .dylib the linker is picking /sw/lib/libnetpbm.dylib instead of the one just compiled as part of the nascent package? I don't think this happens in this case. The package goes to some lengths to avoid this, -isystem and such. The actual linker line where the undefined symbol appeared was > cc -no-cpp-precomp -L/sw/lib -o pnmtopng pnmtopng.o pngtxt.o \ > `/sw/src/netpbm10-10.24-1/netpbm-10.24/buildtools/libopt > /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.dylib libpng.dylib > libz.dylib` \ > -lm-L/sw/lib > libopt results: ' -L/sw/src/netpbm10-10.24-1/netpbm-10.24/lib -lnetpbm > -lpng -lz' > ld: warning prebinding disabled because of undefined symbols > ld: Undefined symbols: > _pm_seek2 > _pm_tell2 So the good library was there with its full name. The only thing that puzzles me there (apart from the missing symbols that I am not able to reproduce) is the "libopt results:" line. I don't know who is talking there. -- Martin --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
On Tue, Aug 24, 2004 at 01:13:34AM +0200, Martin Costabel wrote: > Dave Vasilevsky wrote: > >On Aug 23, 2004, at 5:32 PM, [EMAIL PROTECTED] wrote: > > > >>>ld: warning prebinding disabled because of undefined symbols > >>>ld: Undefined symbols: > >>>_pm_seek2 > >>>_pm_tell2 > >>>make[2]: *** [pnmtopng] Error 1 > >>>make[1]: *** [other/all] Error 2 > >>>make: *** [converter/all] Error 2 > >>>### execution of make failed, exit code 2 > >>>Failed: compiling netpbm10-10.24-1 failed > >> > >>First result: they are defined in > >>/sw/src/netpbm10-10.24-1/netpbm-10.24/lib/pm.h > >>and for some unknown reason these directory wasn?t included. > > > >They are DECLARED in pm.h, not defined. The "definition" of a symbol is > >the (compiled) function body. You probably have to look for a .c file. > > Right, they are defined in lib/libpm.c and should end up in > lib/libnetpbm.dylib which was present on the original linker line. So > probably something went wrong already in the compilation of > lib/libnetpbm.dylib. I wonder if when linking against that .dylib the linker is picking /sw/lib/libnetpbm.dylib instead of the one just compiled as part of the nascent package? Maybe having the package (or a previous version of it) already installed or not is an important variable here? Just speculating... dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
Dave Vasilevsky wrote: On Aug 23, 2004, at 5:32 PM, [EMAIL PROTECTED] wrote: ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pm_seek2 _pm_tell2 make[2]: *** [pnmtopng] Error 1 make[1]: *** [other/all] Error 2 make: *** [converter/all] Error 2 ### execution of make failed, exit code 2 Failed: compiling netpbm10-10.24-1 failed First result: they are defined in /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/pm.h and for some unknown reason these directory wasn´t included. They are DECLARED in pm.h, not defined. The "definition" of a symbol is the (compiled) function body. You probably have to look for a .c file. Right, they are defined in lib/libpm.c and should end up in lib/libnetpbm.dylib which was present on the original linker line. So probably something went wrong already in the compilation of lib/libnetpbm.dylib. -- Martin --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
Am 23.08.2004 um 21:55 schrieb [EMAIL PROTECTED]: Here's what I get: Welcome to Darwin! [Banshee:~] steved% nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_tell2 2ed4 T _pm_tell2 [Banshee:~] steved% [Banshee:~] steved% nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_seek2 2fd4 T _pm_seek2 Most of my fink was build with Xcode 1.1 and since 16th with 1.5. Rebuilding of netpbm10 workt without problems. Hmm, no idea whats going wrong on you box. Any possible problem source, i thought about, are cleared. Mayby someone else can help you here. [EMAIL PROTECTED]:~ $ nm /sw/lib/libnetpbm.10.24.dylib | grep _pm_seek2 ; nm /sw/lib/libnetpbm.10.24.dylib | grep _pm_tell2 2fd4 T _pm_seek2 2ed4 T _pm_tell2 gecko --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
On Aug 23, 2004, at 5:32 PM, [EMAIL PROTECTED] wrote: ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pm_seek2 _pm_tell2 make[2]: *** [pnmtopng] Error 1 make[1]: *** [other/all] Error 2 make: *** [converter/all] Error 2 ### execution of make failed, exit code 2 Failed: compiling netpbm10-10.24-1 failed First result: they are defined in /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/pm.h and for some unknown reason these directory wasn´t included. They are DECLARED in pm.h, not defined. The "definition" of a symbol is the (compiled) function body. You probably have to look for a .c file. Dave PGP.sig Description: This is a digitally signed message part
Fwd: Re: [Fink-devel] XCode issue
Anfang der weitergeleiteten E-Mail: Von: Steve Dieringer <[EMAIL PROTECTED]> Datum: 23. August 2004 21:49:57 GMT+00:00 An: [EMAIL PROTECTED] Betreff: Re: [Fink-devel] XCode issue Here's what I get: Welcome to Darwin! [Banshee:~] steved% nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_tell2 2ed4 T _pm_tell2 [Banshee:~] steved% [Banshee:~] steved% nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_seek2 2fd4 T _pm_seek2 On Aug 23, 2004, at 5:32 PM, [EMAIL PROTECTED] wrote: Am 23.08.2004 um 20:52 schrieb Steve Dieringer: ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pm_seek2 _pm_tell2 make[2]: *** [pnmtopng] Error 1 make[1]: *** [other/all] Error 2 make: *** [converter/all] Error 2 ### execution of make failed, exit code 2 Failed: compiling netpbm10-10.24-1 failed First result: they are defined in /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/pm.h and for some unknown reason these directory wasn´t included. Second result: they were an earlier build problem. What do you get on the following commands: nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_tell2 nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_seek2 If you got no output, then /sw/src/netpbm10-10.24-1/netpbm-10.24/lib wasn´t included at the right time to get these symbols from pm.h --- gecko
Re: [Fink-devel] XCode issue
Am 23.08.2004 um 20:52 schrieb Steve Dieringer: ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pm_seek2 _pm_tell2 make[2]: *** [pnmtopng] Error 1 make[1]: *** [other/all] Error 2 make: *** [converter/all] Error 2 ### execution of make failed, exit code 2 Failed: compiling netpbm10-10.24-1 failed First result: they are defined in /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/pm.h and for some unknown reason these directory wasn´t included. Second result: they were an earlier build problem. What do you get on the following commands: nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_tell2 nm /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.10.24.dylib | grep _pm_seek2 If you got no output, then /sw/src/netpbm10-10.24-1/netpbm-10.24/lib wasn´t included at the right time to get these symbols from pm.h --- gecko --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
On Aug 23, 2004, at 4:38 PM, Martin Costabel wrote: Steve Dieringer wrote: netpbm 10.24-1 doesn't compile under Xcode 1.5 How so? -- Martin Here's what I get. BTW, if it matters, I had the 'recalled' version of fink installed for a while. Since reverted per message on web site. But this is subsequent. libopt results: ' -L/sw/src/netpbm10-10.24-1/netpbm-10.24/lib -lnetpbm' ld: warning prebinding not disabled because (__PAGEZERO segment (address = 0x0 size = 0x1000) of rasttopnm overlaps with __TEXT segment (address = 0x0 size = 0x1e000) of /sw/lib/libnetpbm.10.dylib ld: warning prebinding not disabled because (__TEXT segment (address = 0x1000 size = 0x3000) of rasttopnm overlaps with __TEXT segment (address = 0x0 size = 0x1e000) of /sw/lib/libnetpbm.10.dylib ld: warning prebinding not disabled because (__DATA segment (address = 0x4000 size = 0x1000) of rasttopnm overlaps with __TEXT segment (address = 0x0 size = 0x1e000) of /sw/lib/libnetpbm.10.dylib ld: warning prebinding not disabled because (__LINKEDIT segment (address = 0x5000 size = 0x2000) of rasttopnm overlaps with __TEXT segment (address = 0x0 size = 0x1e000) of /sw/lib/libnetpbm.10.dylib cc -no-cpp-precomp -c -I/sw/src/netpbm10-10.24-1/netpbm-10.24/converter/other -I. -I/sw/src/netpbm10-10.24-1/netpbm-10.24/util -I/sw/src/netpbm10-10.24-1/netpbm-10.24/urt \ -I/sw/include -O3 -fstrict-aliasing -funroll-all-loops -isystem /sw/include -o pnmtopng.o pnmtopng.c cc -no-cpp-precomp -c -I/sw/src/netpbm10-10.24-1/netpbm-10.24/converter/other -I. -I/sw/src/netpbm10-10.24-1/netpbm-10.24/util -I/sw/src/netpbm10-10.24-1/netpbm-10.24/urt \ -I/sw/include -O3 -fstrict-aliasing -funroll-all-loops -isystem /sw/include -o pngtxt.o pngtxt.c cc -no-cpp-precomp -L/sw/lib -o pnmtopng pnmtopng.o pngtxt.o \ `/sw/src/netpbm10-10.24-1/netpbm-10.24/buildtools/libopt /sw/src/netpbm10-10.24-1/netpbm-10.24/lib/libnetpbm.dylib libpng.dylib libz.dylib` \ -lm-L/sw/lib libopt results: ' -L/sw/src/netpbm10-10.24-1/netpbm-10.24/lib -lnetpbm -lpng -lz' ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pm_seek2 _pm_tell2 make[2]: *** [pnmtopng] Error 1 make[1]: *** [other/all] Error 2 make: *** [converter/all] Error 2 ### execution of make failed, exit code 2 Failed: compiling netpbm10-10.24-1 failed --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
Am 23.08.2004 um 18:33 schrieb Steve Dieringer: netpbm 10.24-1 doesn't compile under Xcode 1.5 Hmm, got Xcode 1.5 installed and netpbm 10.24-1 rebuild without problems. gecko --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] XCode issue
Steve Dieringer wrote: netpbm 10.24-1 doesn't compile under Xcode 1.5 How so? -- Martin --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel