FreeBSD Port: php5-bz2-5.1.6_2, 6.1 RELEASE compile bug-report
starikov at caotus.ru
Fri Oct 27 06:48:42 UTC 2006
I had some troubles with compiling php5 port on FreeBSD 6.1 RELEASE.
Though I've compiled not typical configuration (without MySQL
but with Oracle client support).
The first problem was in linking with posix phreads.
This problem was sold by setting environment variable LDFLAGS
The second problem was also with linking a function cuserid from
According to manual the compatibility with this function is
provided by libcompat library.
The flag "-lcompat" in linking string was present.
But it don't work.
Followed analysing of the configure script showed, that the
support of cuserid function in the systen wasn't found.
There also was found the source code of test program, which
compiling and showed the role of sequence of arguments/options.
The problem was finally sold by setting environment variable
LDFLAGS value "-lpthread -L/usr/local/oracle8-client/lib
-lclntst8 -lcompat -lm"
The php5 port in required configuration compiles successfully.
I'm not shure, that it's right way, but it works!
I think, the root of both problems is in that GCC-3.4.4 is too
critical to the sequence of options and arguments.
P.S. Excuse me my English.
More information about the freebsd-ports