[MacPorts] #34839: Building log4cplus on Mac OS X Lion fails with default compiler (llvm/clang)
#34839: Building log4cplus on Mac OS X Lion fails with default compiler (llvm/clang) ----------------------------------+----------------------------------------- Reporter: simon.lehmann@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: building clang gcc | Port: log4cplus ----------------------------------+----------------------------------------- Installing/building the log4cplus port on Mac OS X Lion fails with some linker errors. However, following the instructions on the ProblemHotlist page I could get it to build and install using gcc instead: {{{ sudo port clean log4cplus sudo port install log4cplus configure.compiler=llvm-gcc-4.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/34839> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34839: log4cplus: build fails with clang ----------------------------------+----------------------------------------- Reporter: simon.lehmann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: clang | Port: log4cplus ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => macports@… * cc: ryandesign@… (added) * keywords: building clang gcc => clang Comment: To clarify: the build failed with ''clang'', and you were able to get it to work by using ''llvm-gcc'' (not gcc). It would be nice if you would attach the main.log file showing the build failure with clang. It looks like newer versions (1.0.4, 1.0.4.1, 1.1.0) of log4cplus are available. We should try updating the port to one of those versions to see if it fixes this problem. -- Ticket URL: <https://trac.macports.org/ticket/34839#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34839: log4cplus: build fails with clang ----------------------------------+----------------------------------------- Reporter: simon.lehmann@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: clang | Port: log4cplus ----------------------------------+----------------------------------------- Comment(by vhaisman@…): This has been fixed/worked around in log4cplus 1.0.4.1. It is caused by misdetection of `__declspec(dllexport)`/`__declspec(dllimport)` support in Clang. See [http://log4cplus.bzr.sourceforge.net/bzr/log4cplus/1.0.4.1/revision/924/m4/a...] for the necessary change. I do not remember if there were not any other necessary Clang related changes. -- Ticket URL: <https://trac.macports.org/ticket/34839#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34839: log4cplus: build fails with clang -----------------------------------+---------------------------------------- Reporter: simon.lehmann@… | Owner: macports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: clang Port: log4cplus | -----------------------------------+---------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r97209 -- Ticket URL: <https://trac.macports.org/ticket/34839#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts