Hi Bill, > Paul, > > My name is Bill Cheek. In trying to find the resolution to an error I'm > getting with PHP, Apache, and UnixWare7, I saw that you had responded to > a number of SCO related questions. I hope that my E-mail is not too > great an imposition. No imposition, that's what we're all about ;o) I've never used Unixware as we have Openserver 5 but I'll have a go. > I have seen this error on many of the E-mail messages, but I have never > seen an answer. > > I am running UnixWare7 v7.1.1. The Skunkware install of Apache includes > php 3 as a DSO. I have rebuilt the library to include Oracle support, > and get no errors. When I move the library to Apache's libexec > directory, I get the following error: > > Syntax error on line 232 of /usr/local/lib/apache/conf/httpd.conf: > Cannot load /usr/local/lib/apache/libexec/libphp3.so into server: > dynamic linker: /usr/local/lib/apache/bin/httpd: relocation error: > symbol not found: lrand48; > referenced from: /usr/local/lib/apache/libexec/libphp3.so > ./apachectl start: httpd could not be started > > Note that it really doesn't matter what the first symbol is. If I remove > lrand support, the error moves to another symbol. > > LD_LIBRARY_PATH and LD_RUN_PATH are set (for the build and run) > > I used the following config options: > > ./configure --with-apache=/usr/local/lib/apache \ > --with-apxs=/usr/local/lib/apache/bin/apxs \ > --with-oracle \ > --enable-sysvsem --enable-sysvshm \ > --without-posix $* $HOST 2>&1 | tee mout-config Firstly, the --with-apache and --with-apxs should not be used together, either one or the other. For a static install use --with-apache and for DSO the --with-apxs. I personally use the static and have not used the DSO build yet. Also, if you use the static one, you should point to the directory where the source for apache is. For example, --with-apache=/usr/src/apache_1.3.14. When compiling php into Apache this is when you would then specify where you require Apache to reside. i.e. ./configure --prefix=/path/to/apache/here --activate-module=src/modules/php3 /libphp3.a. This being said, I would definately recomend you download the source to Apache 1.3.14 / 17(?), PHP 4.0.4pl1 and build a fresh from there. There were problems on some versions of 3 with SCO. You can always set the target directory for Apache somewhere temporary and in the httpd.conf file change the port to something like 6789 instead of 80 just for testing and use http://yourwebserver:6789. I currently use Apache 1.3.14 and PHP 4.0.3pl1 but have built and tested 4.0.4pl1 with no problems. I haven't yet built with Apache 1.3.17 though. I would suggest you try building just PHP & Apache as a static module and then add in the Oracle etc when they are both working together. If you need any further help let me know. I have a script which I use to automate the whole build process. It's getting quite widespread now to various people and only started as a quick hack so perhaps I may tart it up and put it somewhere for others as a template. If you're interested let me know and I'll send you a copy. Best regards, - Paul - > > However, I get the same error with any options I have tried. > > Thanks in advance for any help you can offer! > > Bill Cheek > Trificient Technologies, Inc. > [EMAIL PROTECTED] > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]