[opensuse] compiling php5 suse 10.0 x86_64
Hello List, im litte experienced compiling/packaging software under comman Suse10.1 32Bit i586 Now i try to compile php5 on Suse 10.0 x86-64 I have some problems that configure of php5 cannot found my libs. example: part of configure is --with-png-dir=/usr i got: configure: error: libpng.(a|so) not found. libpng and libpng-devel are installed Configure only works if i install libpng-32bit and libpng-devel-32bit, but i think i should use 64bit Software. More problems at --with-xpm-dir=/usr error in config.log is configure:46599: checking for XpmFreeXpmImage in -lXpm configure:46629: gcc -o conftest -g -O2 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -lX11 conftest.c -lXpm -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm >&5 /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11 /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status The compatible libs are in /usr/X11R6/lib64/ but how to tell the configure of php? sry, its my first time to compile under 64 bit and i did not expect these problems. What im doing wrong? Thank you Andre -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I strongly suggest you ask on opensuse-programming as you'll have a much better chance of getting a competent answer there. On Tue, 6 May 2008 11:41:48 +0200, Andre Hübner wrote:
Now i try to compile php5 on Suse 10.0 x86-64 I have some problems that configure of php5 cannot found my libs.
I'd strongly advise you to build RPMs, i.e. take the php5 .src.rpm from factory, modify the .spec to suit your needs and then build the rpm.
example:
Look at the .spec file of our php5.rpm and you will see what options we pass to php5's configure .
configure: error: libpng.(a|so) not found.
Then you usually don't need to pass any path as configure tests usually find libraries if they're installed in standard locations.
Configure only works if i install libpng-32bit and libpng-devel-32bit, but i think i should use 64bit Software.
Then php5's configure only looks in /lib and not /lib64 and configure.ac definitely needs to be fixed.
The compatible libs are in /usr/X11R6/lib64/ but how to tell the configure of php?
Again, examine the .spec file for our (SuSE/Novell) php5 package.
What im doing wrong?
Nothing. But with so little knowledge I'd really advise you to take existing source rpms and rebuild them for your system. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Andre Hübner
-
Philipp Thomas