#19107: poco 1.3.2 build failure ------------------------------------+--------------------------------------- Reporter: astricker@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: poco ------------------------------------+--------------------------------------- Comment(by astricker@…): Yeah, I found the link failure: 1. I've installed the '''cppunit''' port. Those libraries resides in {{{/opt/local/lib}}}. 2. poco comes with it's own CppUnit library (older/newer than macport one). This one gets compiled to $(LIBPATH) 3. as $(LINKFLAGS) contains {{{/opt/local/lib}}} and comes before $(LIBRARY) (in {{{build/rules/exec}}}), the installed libcppunit from port is found first I found a solution requiring a modification to build/config/Darwin. I prepend $(LIBPATH) to $(LINKFLAGS). This gives first priority to own libraries, then to other port libraries. {{{ #!diff --- build/config/Darwin.orig 2009-04-20 10:47:35.000000000 +0200 +++ build/config/Darwin 2009-04-20 10:38:57.000000000 +0200 @@ -44,7 +44,7 @@ CXXFLAGS = -Wall -Wno-sign-compare -I/opt/local/include -O2 CXXFLAGS32 = CXXFLAGS64 = -LINKFLAGS = -L/opt/local/lib +LINKFLAGS = -L$(LIBPATH) -L/opt/local/lib LINKFLAGS32 = LINKFLAGS64 = STATICOPT_CC = }}} Now poco builds successful. -- Ticket URL: <http://trac.macports.org/ticket/19107#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS