[MacPorts] #32044: socat not building on Lion
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: socat -------------------------------+-------------------------------------------- See attached log -- Ticket URL: <https://trac.macports.org/ticket/32044> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => md@… * cc: ryandesign@… (added) * keywords: => clang Comment: The log is not complete, but I see you're using clang. Perhaps socat doesn't like clang. Have you tried [wiki:ProblemHotlist#compiler using llvm-gcc-4.2]? That may not work either; you may then get the problem in #30317. In that case, try compiling with apple-gcc42. Let us know what works so we can fix the port. -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Comment(by ryandesign@…): There's also a patch in that ticket you could try. -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Comment(by hmijail@…): Found the same problem. Tried changing the Portfile to use the new socat 1.7.2.0, which seems to include Lion-specific bugfixes, but the problem remained. But using the "sudo port clean socat ; sudo port -d install socat configure.compiler=llvm-gcc-4.2" fixed it. The resulting binary seems to behave acceptably in the test.sh testing script included in the socat source tarball. I have sent this information to the socat developers too. -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Comment(by hmijail@…): The socat developer answered that this is indeed a bug. He doesn't explicitly support any compiler apart from gcc, though there is some compatibility fallback; and this fallback was absent in the file which failed to compile, xioexit.c : @@ -5,6 +5,7 @@ /* this file contains the source for the extended exit function */ #include "xiosysincludes.h" +#include "compat.h" #include "xio.h" I just tried it and works with clang. The socat developer doesn't seem to plan to publish an official bugfix soon. So, now I have a question. How should I make a Portfile? I already did one for socat 1.7.2 + llvm-gcc-4.2.2 (#32698). But maybe it would be better to add this patch and use the standard clang instead? -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Comment(by hmijail@…): Following ryandesign's suggestions, I created a new Portfile at #32968 which does not set the compiler but patches the buggy file. -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: socat -------------------------------+-------------------------------------------- Comment(by hmijail@…): (sorry, that should be #32698) -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32044: socat not building on Lion --------------------------------+------------------------------------------- Reporter: dave@… | Owner: md@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang Port: socat | --------------------------------+------------------------------------------- Changes (by dports@…): * status: new => closed * cc: dports@… (added) * resolution: => fixed Comment: See #32698 and r88706/r88707. -- Ticket URL: <https://trac.macports.org/ticket/32044#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts