David R. Morrison wrote:
This is a very bizarre error. Why doesn't it happen to me, I wonder?
The new pari-gp builds fine here, and more importantly, runs without
crashing (which was not true of its predecessor, at least not on
10.4). It also builds and runs for Max Horn.
Found it: It is a "head" problem. The config/locatelib script has the line
ok=`(ls $dir/lib$lib.* | head -1) 2> /dev/null`
With /sw/bin/head from Fink textutils, the "head -1" produces only an
error message
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
The error message is invisible, because it is sent to /dev/null, but the
variable ok gets set to "".
With /usr/bin/head, "head -1" produces no error message, but the correct
result
/usr/X11R6/lib/libX11.6.2.dylib
So building pari-gp works if and only if Fink textutils is not
installed. The above line in config/locatelib needs fixing.
Actually, the story is even more complicated: I have one machine here
which had the same textutils-2.1-2 installed as the other one, but
pari-gp built nevertheless. It turns out that the textutils there was
left over from Panther; rebuilding textutils makes head now give the
error message too, and pari-gp build crashes as on the other machine.
So another conclusion of all this is that the textutils package needs a
rev up on Tiger so that it is rebuilt, because the versions built on
Panther and on Tiger are different. The difference in question here
seems to be the definition of _POSIX2_VERSION in
/usr/include/sys/unistd.h which is 199212L on MacOSX 10.3.9 and 200112L
on 10.4.2. /sw/bin/head checks for this variable and gives the error
message instead of the correct result when it is >= 200112.
--
Martin
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users