Opened 18 years ago

Closed 18 years ago

#6675 closed defect (fixed)

BUG: palm-db-tools-0.3.6 should link with g++, not gcc

Reported by: cssdev@… Owned by: cssdev@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: darwinports-bugs@…
Port:

Description

When palm-db-tools builds, it incorrectly uses the C compiler to links objects using C++ code. This results in an error:

gcc pdb2csv.o -o pdb2csv libpdbtools.a ../libflatfile/libflatfile.a ../libsupport/libsupport.a ../libpalm/ libpalm.a -lstdc++ /usr/bin/ld: Undefined symbols: Unwind_Resume collect2: ld returned 1 exit status make: * [pdb2csv] Error 1

This error indicates the need to link C++ code using the C++ compiler rather than the C compiler. The workaround is to patch flatfile's Makefile.in. I modified the Portfile to perform this modification.

Attachments (1)

patch-Portfile.diff (846 bytes) - added by cssdev@… 18 years ago.
patch palm-db-tools Portfile

Download all attachments as: .zip

Change History (2)

Changed 18 years ago by cssdev@…

Attachment: patch-Portfile.diff added

patch palm-db-tools Portfile

comment:1 Changed 18 years ago by mww@…

Resolution: fixed
Status: newclosed

thanks - commited a patch for flatfile/Makefile.in;

Note: See TracTickets for help on using tickets.