I try to recreate a rpm after having change the spec file. As it didn’t work I’ve tried to rectreate the RPM from the original SPEC file.
I have some pbms with libjpeg, libpng or zlib .so and .a files which are not find by the configure. In fact my box is a x86_64 bits and it looks like the configure looks in the /usr/lib dir rather than /usr/lib64 lib.
I could install all need .so and .a files in the /usr/lib dir by installing the i386 version of the rpm but for example it is not possible for libpng-devel.
So my question is why this :/configure looks not in /usr/lib64 but in /usr/lib/
As you can see the --libdir returns /usr/lib and not /usr/lib64 but in the spec file there is the %{_libdir}. This last one should returns the good libdir normally as configure has detected that the os was a x86_64
I not sure to inderstand why. Any idea ?
I don’t want create symlinks between /usr/lib and /usr/lib64 for libpng, libjpeg and zilb etc…
Well maybe it is a bug in the spec file. For information it is the default SRPM from centos for php5.0.4 (from contrib or centosplus)
All ideas or experience with this kind of pbms are welcome (the libjpeg, libpng one and the usr/lib rather usr/lib64). Indeed I have all libjpeg, libjpeg-devel, libpng, gd, gd-devel installed but in /usr/lib64
patch -p0 -s
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
124 out of 286 hunks FAILED – saving rejects to file configure.rej
error: Bad exit status from /var/tmp/rpm-tmp.14307 (%prep)
Well the patch try to patch a file which doesn’t exist.
So I tried to first install the the php-5.0.5-iworx as the patch php-5.0.5-configure.patch patch a file for the configure of this php version.
Now, without changing anything in the php5.spec file the command rpmbuild -ba php5.spec works fine.
So the questions for iworx team is :
I update the php-5.0.5 spec file to be what I need (all php5 files in specific dirs like usr/bin/php5/ to allow to have both php4 and php5 on the same box)
Install the new generated rpm
But after this how to update php-5.1.1-iworx to have the patch work OK ?
/usr/bin/ld: cannot find -l/usr/lib64/libgdbm.so
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.31788 (%build)
I don’t understand why. I have gd-devel installed and the file /usr/lib64/libgdbm.so exists
]# ls -l /usr/lib64/libgdbm.so
lrwxrwxrwx 1 root root 16 Jun 14 15:22 /usr/lib64/libgdbm.so -> libgdbm.so.2.0.0
here is all libgdm files
ls -l /usr/lib64/libgdbm*
-rw-r–r-- 1 root root 75212 Feb 18 2005 /usr/lib64/libgdbm.a
-rwxr-xr-x 1 root root 786 Feb 18 2005 /usr/lib64/libgdbm.la
lrwxrwxrwx 1 root root 16 Jun 14 15:22 /usr/lib64/libgdbm.so -> libgdbm.so.2.0.0
lrwxrwxrwx 1 root root 16 Jun 14 15:21 /usr/lib64/libgdbm.so.2 -> libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 27104 Feb 18 2005 /usr/lib64/libgdbm.so.2.0.0
Do you already have this kind of pbms ?
I really don^t know what to do now… Helps are really welcome
Do you have gdbm and gdbm-devel installed? If not, I would try installing those two packages. They are not the same as gd-devel. gd-devel, as you probably know, is an image library, whereas gdbm is a database library.
well in php-5.0.4-iworx srpm I’ve seen that there is not exit point on an ./configure error.
In fact exactly as php-5.1.1-iworx or others I still have errors in the ./configure with libjpeg and linpng
checking for the location of libjpeg… /usr/lib64
checking for the location of libpng… /usr/lib64
checking for the location of libXpm… /usr/lib64
checking for FreeType 1.x support… no
checking for FreeType 2… /usr
checking for T1lib support… no
checking whether to enable truetype string function in GD… yes
checking whether to enable JIS-mapped Japanese font support in GD… no
checking for fabsf… no
checking for floorf… no
configure: error: libjpeg.(a|so) not found.
checking for jpeg_read_header in -ljpeg… no
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.
checking for png_write_image in -lpng… no
configure: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.
[QUOTE=IWorx-Socheat;10058]Do you have gdbm and gdbm-devel installed? If not, I would try installing those two packages. They are not the same as gd-devel. gd-devel, as you probably know, is an image library, whereas gdbm is a database library.
Socheat[/QUOTE]
yum list gdbm*
Setting up repositories
Reading repository metadata in from local files
Installed Packages
gdbm.x86_64 1.8.0-24 installed
gdbm.i386 1.8.0-24 installed
gdbm-devel.x86_64 1.8.0-24 installed
gdbm is installed.
It’s really too strange !
I just want to change your srpm php5 files to have php5 installed as cli, cgi not as sapi module for apache and binaries located in /usr/bin/php5/ conf files in /etc/php5 and /etc/php5/php.d/ etc… Like this this install won’t broke my existing php4 install.
I also tried to install it manually directly fron tje /BUILD tree by doing a manual configure and a nabual make in the /BUILD/build-cgi/ but I alwayshavce this pbm
In fact the libtool crash to the first arg after -l
If I remove in the spec file in the ./configure the --with-gdbm the error become
usr/bin/ld: cannot find -lcurl
And here is the last lines of libtool. As you can see there is a -l ALONE ???!!!???
I haven’t had those problems in particular but have found that often PHP needs patches to get around low level errors on some platforms. I know the following woroks on Centos 4.x so you may want to use this SRPM as a base. It may not build seamlessly but it shouldn’t totally explode ;).
I just want to change your srpm php5 files to have php5 installed as cli, cgi not as sapi module for apache and binaries located in /usr/bin/php5/ conf files in /etc/php5 and /etc/php5/php.d/ etc… Like this this install won’t broke my existing php4 install.
I’d build as-is first Pascal, then do the cli/cgi changes first and rebuild and see if it works, then finally add in the conf changes.
Staging it may help deduce what the problem is exactly.
[QUOTE=IWorx-Chris;10062]I’d build as-is first Pascal, then do the cli/cgi changes first and rebuild and see if it works, then finally add in the conf changes.
Staging it may help deduce what the problem is exactly.
Chris[/QUOTE]
Chris it is of course what I do you absolutly right, and as I said in a first post I try to do a rpmbuild -ba php5.spec file without any change in the spec file.
When I’ll be able to recreate the rpm then I’ll made my changes
Chris it is of course what I do you absolutly right, and as I said in a first post I try to do a rpmbuild -ba php5.spec file without any change in the spec file.
Sorry Pascal, I should know better. I’m going through posts over the last few weeks and am apparently skimming too much :(.
I haven’t had those problems in particular but have found that often PHP needs patches to get around low level errors on some platforms. I know the following woroks on Centos 4.x so you may want to use this SRPM as a base. It may not build seamlessly but it shouldn’t totally explode ;).
[QUOTE=IWorx-Chris;10078]Can you open a ticket Pascal. I just now saw that this is a x86_64 box as well and I’d like to take a quick peek at the issue.
Chris[/QUOTE]
ok,
Just to let you know that with the php-5.1.2 I have the same pbm than the 5.1.1 with patch of configure (which apparently resolve some x86 missing steps)
Patch #0 (php-5.0.5-configure.patch):
patch -p0 -s
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
129 out of 286 hunks FAILED – saving rejects to file configure.rej
error: Bad exit status from /var/tmp/rpm-tmp.81610 (%prep)