Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#19324 closed defect (wontfix)

devel/dlcompat fails to build on Leopard

Reported by: yokota33@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: jmroot (Joshua Root)
Port: devel/dlcompat

Description

devel/dlcompat fails to build on Leopard with the following error messages:

Command output: dlfcn.c:694: warning: 'NSCreateObjectFileImageFromFile' is deprecated (declared at /usr/include/mach-o/dyld.h:145)
dlfcn.c:755: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217)
dlfcn.c:769: warning: 'NSLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:161)
dlfcn.c:773: warning: 'NSDestroyObjectFileImage' is deprecated (declared at /usr/include/mach-o/dyld.h:147)
dlfcn.c:776: warning: passing argument 1 of 'get_mach_header_from_NSModule' from incompatible pointer type
dlfcn.c:781: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217)
dlfcn.c: In function 'dlcompat_init_func':
dlfcn.c:806: warning: passing argument 2 of '_dyld_func_lookup' from incompatible pointer type
dlfcn.c:808: warning: passing argument 2 of '_dyld_func_lookup' from incompatible pointer type
dlfcn.c:809: warning: passing argument 2 of '_dyld_func_lookup' from incompatible pointer type
dlfcn.c: At top level:
dlfcn.c:819: warning: Pragma CALL_ON_LOAD is deprecated; use constructor attribute instead
dlfcn.c: In function 'dlclose':
dlfcn.c:1087: warning: passing argument 1 of 'get_mach_header_from_NSModule' from incompatible pointer type
dlfcn.c:1097: warning: 'NSUnLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:169)
dlfcn.c: In function 'image_for_address':
dlfcn.c:1139: warning: initialization makes integer from pointer without a cast
dlfcn.c:1143: warning: assignment discards qualifiers from pointer target type
dlfcn.c: In function 'dladdr':
dlfcn.c:1174: warning: initialization makes integer from pointer without a cast
dlfcn.c:1191: warning: assignment discards qualifiers from pointer target type
ar cru libdl.a dlfcn.o
ranlib libdl.a
/usr/bin/gcc-4.0 -dynamiclib -o libdl.1.dylib dlfcn.o -install_name /opt/local/lib/libdl.1.dylib -compatibility_version 1 -current_version 1
Undefined symbols:
  "_dlcompat_init_func", referenced from:
      initializer$0 in dlfcn.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libdl.1.dylib] Error 1

Attachments (1)

patch-Portfile.diff (282 bytes) - added by yokota33@… 16 years ago.
The patch file already supplied must be applied to darwin 9, too.

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by yokota33@…

Attachment: patch-Portfile.diff added

The patch file already supplied must be applied to darwin 9, too.

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added

Why do you need to build dlcompat on Leopard? The functionality is present in the OS already.

comment:2 in reply to:  1 Changed 16 years ago by yokota33@…

Replying to jmr@…:

Why do you need to build dlcompat on Leopard? The functionality is present in the OS already.

I see. Actually, another port has failed to build because it was unable to find libdl.1, which doesn't present on the system. Then, there might be something wrong with that port, or the problem might come from the fact I updated the OS recently (I rebuilt every port but something might have gone wrong).

Unfortunately, I cannot recall which port have failed at this moment, could you close this ticket? I will reopen a new ticket if I can identify the source of the problem.

Thank you for your help.

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

OK. There is no libdl.1.dylib on Leopard, only libdl.dylib (which is actually a symlink to libSystem.dylib).

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.