[MacPorts] #34470: xgraph segmentation fault
MacPorts
noreply at macports.org
Wed May 16 02:27:09 PDT 2012
#34470: xgraph segmentation fault
------------------------------------+---------------------------------------
Reporter: jursonovicst@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.0
Keywords: | Port: xgraph
------------------------------------+---------------------------------------
{{{ xgraph -device ps -o test2-ps test.data
Segmentation fault: 11
}}}
Could you apply the segmentation fault solution described by
[http://djconnel.blogspot.de/2012/03/installing-xgraph-on-mac-osx-
lion.html], please?
{{{
"But then I faced a tougher problem: I was getting a persistent
segmentation fault when I ran it. gdb wasn't turning up the problem,
either.
The clue was in the compiler warnings: xgraph plays fast and loose with
casting between addresses and integers. Sometimes that works, sometimes...
So in desperation I checked the gcc man page and started reading, looking
for an option which treated all integers as longs. I didn't think this
would work, because external libraries might not cooperate.
I didn't find it. But what I found instead was the "-m32" option to
compile the code in 32-bit mode even on a 64-bit machine. Hmm... seemed
promising. I added this to the head of the "CFLAGS" definition in Makefile
(Makefile having been generated with "configure", so this isn't the best
approach). I tried it and, ding-ding-ding-ding, the code ran. My little
victory shout was probably out of place, since I was on Caltrain at the
time...
So now it works."
}}}
Thank you for fixing the build issue yesterday...
Tamás
--
Ticket URL: <https://trac.macports.org/ticket/34470>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list