New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #6675 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

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

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

Change History

Changed 7 years ago by cssdev@…

patch palm-db-tools Portfile

comment:1 Changed 7 years ago by mww@…

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.