Hello,

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 value "-lpthread"

The second problem was also with linking a function cuserid from oracle library. 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.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to