[MacPorts] #41528: texlive-bin @2013: error: template with C linkage
#41528: texlive-bin @2013: error: template with C linkage --------------------------+------------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: tiger | Port: texlive-bin --------------------------+------------------------- -- Ticket URL: <https://trac.macports.org/ticket/41528> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by dports@…): We might be out of luck on this one since Tiger is so old, but I'll take a quick look anyway... -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by ryandesign@…): I have found [http://www.gidforums.com/t-9853.html this explanation] of the "template with C linkage" error, calling it a "dangling `extern "C"`" problem. I notice that `-isystem` is in the compile line so now I'm wondering if this is the problem mentioned [comment:ticket:40656:2 here], where Tiger's `g++` automatically inserts `extern "C"` around headers included with `-isystem`, a problem which was fixed in Leopard. If so, blacklisting Tiger's `g++` and instead using MacPorts' apple-gcc42 might fix it. I can try this later when I'm back at my Tiger machine. Note that I'm not using the patch from that ticket on this machine; this is a change made specifically in the texlive-bin port in r83018. -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by ryandesign@…): Or it could be that an `extern "C"` in one of texlive-bin's files is in the wrong place (see r113940 for such an error in another project). -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by dports@…): I'm betting it's the -isystem bug. Could you give it a try with a different compiler? I don't have a Tiger machine anymore. -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by dports@…): Also, it's possible we don't need to set -isystem here anymore. It was essential in the past to get the link order right, in particular to be sure that texlive binaries linked against texlive's patched icu, not the one installed by the icu port. texlive-bin no longer has its own version of icu, and I don't think it builds any other libraries that are already provided by MacPorts. All that said, I'd just as soon leave -isystem in, in case it becomes necessary in a future version. (And it really ought to be the default everywhere, modulo this apparent Tiger issue.) -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Comment (by ryandesign@…): I'll test in on Tiger, to satisfy my curiosity about this issue. But if the problem can be solved in texlive-bin in a way that does not necessitate adding a dependency on a different compiler, that would be preferable. -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41528: texlive-bin @2013: error: template with C linkage ---------------------------+---------------------- Reporter: ryandesign@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: tiger Port: texlive-bin | ---------------------------+---------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:7 ryandesign@…]:
Confirmed: using apple-gcc-4.2 on Tiger allows texlive-bin to build.
Fixed this in texlive-bin in r115651.
I'm reconsidering what I said above. It would simplify several things to just make apple-gcc-4.2 the default compiler for all ports on Tiger. At some point I'll try that out.
This has been done in trunk; see #41782. -- Ticket URL: <https://trac.macports.org/ticket/41528#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts