> >> So, maybe the suggestion the linker gives us, to use "-bind_at_load" > >> might indeed be the way to go. Maybe somebody could test the result > >> with this? > >> > > > >Max: I tried this with nedit - same error. > > Same error, ok :/ > > What does "otool -L /sw/bin/nedit" give ? And what does "otool -l > /sw/bin/nedit" give you (this time with a lower case -l)
otool -L /sw/bin/nedit /sw/bin/nedit: /sw/lib/libXm.2.dylib (compatibility version 3.0.0, current version 3.1.0) /usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0, current version 4.11.0) /usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0, current version 6.4.0) /usr/X11R6/lib/libXt.6.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0, current version 6.3.0) /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 55.0.0) output of otool -l attached (long). > > Finally, can you tell me what messages the linker produced, this time > with the -bind_at_load? > cc -O2 -no-cpp-precomp -I/usr/X11R6/include -I/sw/include nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o highlightData.o interpret.o parse.o smartIndent.o regexConvert.o rbTree.o ../util/libNUtil.a -Xlinker -bind_at_load -L/sw/lib -lXm -L/usr/X11R6/lib -lXpm -lXext -lXt -lSM -lICE -lX11 -o nedit /usr/bin/ld: warning multiple definitions of symbol _vendorShellWidgetClass /sw/lib/libXm.dylib(Vendor.lo) definition of _vendorShellWidgetClass /usr/X11R6/lib/libXt.dylib(Vendor.o) definition of _vendorShellWidgetClass /usr/bin/ld: warning multiple definitions of symbol _vendorShellClassRec /sw/lib/libXm.dylib(Vendor.lo) definition of _vendorShellClassRec /usr/X11R6/lib/libXt.dylib(Vendor.o) definition of _vendorShellClassRec /usr/bin/ld: warning unused multiple definitions of symbol _XpmReadFileToPixmap /sw/lib/libXm.dylib(Xpm.lo) definition of _XpmReadFileToPixmap /usr/X11R6/lib/libXpm.dylib(RdFToP.o) unused definition of _XpmReadFileToPixmap /usr/bin/ld: warning unused multiple definitions of symbol _xpmHashTableInit /sw/lib/libXm.dylib(Xpm.lo) definition of _xpmHashTableInit /usr/X11R6/lib/libXpm.dylib(hashtab.o) unused definition of _xpmHashTableInit /usr/bin/ld: warning unused multiple definitions of symbol _XpmCreatePixmapFromData /sw/lib/libXm.dylib(Xpm.lo) definition of _XpmCreatePixmapFromData /usr/X11R6/lib/libXpm.dylib(CrPFrDat.o) unused definition of _XpmCreatePixmapFromData and on and on (-Xlinker -m would have gotten rid of most of these). -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : [EMAIL PROTECTED] 325 Broadway Web : www.cdc.noaa.gov/~jsw Boulder, CO, USA 80303-3328 Office : Skaggs Research Cntr 1D-124
/sw/bin/nedit: Load command 0 cmd LC_SEGMENT cmdsize 56 segname __PAGEZERO vmaddr 0x00000000 vmsize 0x00001000 fileoff 0 filesize 0 maxprot 0x00000000 initprot 0x00000000 nsects 0 flags 0x4 Load command 1 cmd LC_SEGMENT cmdsize 328 segname __TEXT vmaddr 0x00001000 vmsize 0x000c7000 fileoff 0 filesize 815104 maxprot 0x00000007 initprot 0x00000005 nsects 4 flags 0x0 Section sectname __text segname __TEXT addr 0x0000210c size 0x0006f968 offset 4364 align 2^2 (4) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 Section sectname __cstring segname __TEXT addr 0x00071a74 size 0x00052e20 offset 461428 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000002 reserved1 0 reserved2 0 Section sectname __picsymbol_stub segname __TEXT addr 0x000c4894 size 0x00002a30 offset 800916 align 2^2 (4) reloff 0 nreloc 0 flags 0x80000408 reserved1 0 (index into indirect symbol table) reserved2 36 (size of stubs) Section sectname __const segname __TEXT addr 0x000c72c4 size 0x00000d3c offset 811716 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Load command 2 cmd LC_SEGMENT cmdsize 532 segname __DATA vmaddr 0x000c8000 vmsize 0x00050000 fileoff 815104 filesize 45056 maxprot 0x00000007 initprot 0x00000003 nsects 7 flags 0x0 Section sectname __data segname __DATA addr 0x000c8000 size 0x00009bd4 offset 815104 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000200 reserved1 0 reserved2 0 Section sectname __la_symbol_ptr segname __DATA addr 0x000d1bd4 size 0x000004b0 offset 854996 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000007 reserved1 300 (index into indirect symbol table) reserved2 0 Section sectname __nl_symbol_ptr segname __DATA addr 0x000d2084 size 0x000000f0 offset 856196 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000006 reserved1 600 (index into indirect symbol table) reserved2 0 Section sectname __dyld segname __DATA addr 0x000d2174 size 0x0000001c offset 856436 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __const segname __DATA addr 0x000d2190 size 0x00000148 offset 856464 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000200 reserved1 0 reserved2 0 Section sectname __bss segname __DATA addr 0x000d22d8 size 0x00044fdc offset 0 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Section sectname __common segname __DATA addr 0x001172c0 size 0x00000070 offset 0 align 2^4 (16) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Load command 3 cmd LC_SEGMENT cmdsize 56 segname __LINKEDIT vmaddr 0x00118000 vmsize 0x00013000 fileoff 860160 filesize 75344 maxprot 0x00000007 initprot 0x00000001 nsects 0 flags 0x4 Load command 4 cmd LC_LOAD_DYLINKER cmdsize 28 name /usr/lib/dyld (offset 12) Load command 5 cmd LC_LOAD_DYLIB cmdsize 48 name /sw/lib/libXm.2.dylib (offset 24) time stamp 1011907693 Thu Jan 24 14:28:13 2002 current version 3.1.0 compatibility version 3.0.0 Load command 6 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libXpm.4.dylib (offset 24) time stamp 1011742382 Tue Jan 22 16:33:02 2002 current version 4.11.0 compatibility version 4.11.0 Load command 7 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libXext.6.dylib (offset 24) time stamp 1011742061 Tue Jan 22 16:27:41 2002 current version 6.4.0 compatibility version 6.4.0 Load command 8 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libXt.6.dylib (offset 24) time stamp 1011742247 Tue Jan 22 16:30:47 2002 current version 6.0.0 compatibility version 6.0.0 Load command 9 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libSM.6.dylib (offset 24) time stamp 1011742011 Tue Jan 22 16:26:51 2002 current version 6.0.0 compatibility version 6.0.0 Load command 10 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libICE.6.dylib (offset 24) time stamp 1011741993 Tue Jan 22 16:26:33 2002 current version 6.3.0 compatibility version 6.3.0 Load command 11 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/X11R6/lib/libX11.6.dylib (offset 24) time stamp 1011741933 Tue Jan 22 16:25:33 2002 current version 6.2.0 compatibility version 6.2.0 Load command 12 cmd LC_LOAD_DYLIB cmdsize 52 name /usr/lib/libSystem.B.dylib (offset 24) time stamp 1007630816 Thu Dec 6 02:26:56 2001 current version 55.0.0 compatibility version 1.0.0 Load command 13 cmd LC_SYMTAB cmdsize 24 symoff 860160 nsyms 2532 stroff 895304 strsize 40200 Load command 14 cmd LC_DYSYMTAB cmdsize 80 ilocalsym 0 nlocalsym 1551 iextdefsym 1551 nextdefsym 639 iundefsym 2190 nundefsym 342 tocoff 0 ntoc 0 modtaboff 0 nmodtab 0 extrefsymoff 0 nextrefsyms 0 indirectsymoff 892664 nindirectsyms 660 extreloff 891912 nextrel 94 locreloff 0 nlocrel 0 Load command 15 cmd LC_TWOLEVEL_HINTS cmdsize 16 offset 890544 nhints 342 Load command 16 cmd LC_UNIXTHREAD cmdsize 176 flavor PPC_THREAD_STATE count PPC_THREAD_STATE_COUNT r0 0x00000000 r1 0x00000000 r2 0x00000000 r3 0x00000000 r4 0x00000000 r5 0x00000000 r6 0x00000000 r7 0x00000000 r8 0x00000000 r9 0x00000000 r10 0x00000000 r11 0x00000000 r12 0x00000000 r13 0x00000000 r14 0x00000000 r15 0x00000000 r16 0x00000000 r17 0x00000000 r18 0x00000000 r19 0x00000000 r20 0x00000000 r21 0x00000000 r22 0x00000000 r23 0x00000000 r24 0x00000000 r25 0x00000000 r26 0x00000000 r27 0x00000000 r28 0x00000000 r29 0x00000000 r30 0x00000000 r31 0x00000000 cr 0x00000000 xer 0x00000000 lr 0x00000000 ctr 0x00000000 mq 0x00000000 pad 0x00000000 srr0 0x0000210csrr1 0x00000000