[MacPorts] #40093: log4cxx doesn't build on ML and XCode 4.3, can't find db-4.6

MacPorts noreply at macports.org
Wed Aug 14 02:44:19 PDT 2013


#40093: log4cxx doesn't build on ML and XCode 4.3, can't find db-4.6
--------------------------------+--------------------
  Reporter:  kyle.j.kauffman@…  |      Owner:  mail@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.2.0
Resolution:                     |   Keywords:
      Port:  log4cxx            |
--------------------------------+--------------------

Comment (by ryandesign@…):

 Replying to [ticket:40093 kyle.j.kauffman@…]:
 > log4cxx depends on apr which depends on db46, which installs
 libdb-4.6.dylib at ${prefix}/lib/db46/. However, this isn't picked up by
 clang++ during build. Adding
 >
 > {{{
 > build {
 >       set env(LIBRARY_PATH) "${prefix}/lib/db46"
 >       system "cd ${worksrcpath} && make"
 > }
 > }}}
 >
 > to the port fixes this (for some reason using build.env with either
 LDFLAGS or LIBRARY_PATH didn't work, nor did setting these in pre-build
 and leaving build to default. Being somewhat new to macports, is there a
 reason for this?).

 MacPorts automatically sets LIBRARY_PATH to /opt/local/lib for all ports.
 It's probably wrong for any port to override this.

 -L/opt/local/lib/db46 is missing from the invoked compilation command;
 that's probably all that needs to be added. Not sure why log4cxx's build
 system didn't know to do this already.

 Please confirm your Xcode version. The log confirms you are running OS X
 10.8.4, but the minimum version of Xcode that works on Mountain Lion is
 4.4, so I don't think you can be running 4.3. The recommended version of
 Xcode is the latest, which is 4.6.3.

-- 
Ticket URL: <https://trac.macports.org/ticket/40093#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list