OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:20 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 42 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
domipi
Post subject: PHP compile QNX6.3  PostPosted: Jul 08, 2005 - 07:36 AM
New Member


Joined: May 20, 2003
Posts: 8

Hi,
After compilation, Apache 2.0.54 seems OK under QNX6.3.
But I have a problem with PHP 4.3.11
"./configure" and "make" seem OK but "make install" gives me the following error:
Quote:
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la
/usr/local/apache2/modules/
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish
/usr/local/php-4.3.11/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp4.so
/usr/local/apache2/modules/libphp4.so: No such file or directory
apxs:Error: Command failed with rc=65536
make: *** [install-sapi] Error 1

Did somebody already install successfully?
Thank you for your help
Dominique
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
noc
Post subject: RE: PHP compile QNX6.3  PostPosted: Jul 08, 2005 - 04:05 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1633

It can't find the shared libphp4.so
You have to libtoolize it and regenerate the configure script so that it builds with shlibs.

libtoolize -f -c
aclocal
autoconf
./configure ....
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
domipi
Post subject: libtoolize???  PostPosted: Jul 11, 2005 - 06:52 AM
New Member


Joined: May 20, 2003
Posts: 8

Thank you for your answer.
But excuse me, I don't know the command "libtoolize", neither "aclocal" nor "autoconf" and does not find them in QNX6.3!
You are right by saying that it is necessary to force the compil for shared lib. But I am lost between libtool and configures.
Thanks for agreeing to detail your idea a little.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
noc
Post subject: RE: libtoolize???  PostPosted: Jul 11, 2005 - 04:20 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1633

"libtool" etc can be downloaded from the QOpenCD project headed by the Russian QNX team:

http://mike.qnx.org.ru/qopencd/software.html
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
domipi
Post subject:   PostPosted: Jul 12, 2005 - 07:08 AM
New Member


Joined: May 20, 2003
Posts: 8

Thank you very much noc,
I 've found libtool, but but the "libtool -f -c makes even more problem for the continuation of the make.
I specify my question if you want it well:
To compile php4, there is first the script "configure" which produces a "makefile". Then I start "make" and to finish "make install".
The problem is that "make" produce a static "libphp4.a" and not a shared "libphp4.so".
But the "configure" and the "makefile" are so complicated for me, that I cannot see why!
If you have time to examine my makefile, I left it in attachment.
Still thank you for your assistance and for time that you given to me



Makefile.gz
 Description:

Download
 Filename:  Makefile.gz
 Filesize:  8.41 KB
 Downloaded:  220 Time(s)

 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
noc
Post subject:   PostPosted: Jul 12, 2005 - 08:33 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1633

Please read my first post again.

the default "configure" is no good. it produces a "makefile" that can't do shared. that's why you need to run the sets of commands I mentioned, to create a new/good "configure", which can produce a good makefile that can do shared.

there is no need to tweak the makefile manually.

Run the commands exactly as I listed. eg: it is "libtoolize -f -c", NOT "libtool -f -c".
"libtoolize" is part of the libtool package.
"aclocal" is part of the automake package.
"autoconf" is part of the autoconf package.

All those three packages (libtool, automake, autoconf) can be downloaded from the QOpenCD project site that I mentioned.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.