Closed waclaw66 closed 7 years ago
Hello,
Are you with root user? remember compile with your own user
before you compile make sure delete folder of php created from php build
rm -rf ~/rpmbuild/BUILD/php-7.1.10/
(in your case)
rm -rf /root/rpmbuild/BUILD/php-7.1.10/
can you upload the compiled output?
use:
cd ~/rpmbuild/SOURCES/ rpmbuild -ba php.spec &> php7-build-log.txt
Hello. I tried compile it again on my user account with fresh clone from master. But no luck. There is the log... https://drive.google.com/open?id=0B4ZksankjMs9dnhEQjhZbUZuMkE
ok, first, you haven't setup file ~/.rpmmacros .rpmmacros file creation
second, have you installed libtool? i remember it was installed with task-c(++)-devel if not, tell me for add to readme
urpmi libtool
finally, you compiled php thread safety , change you something in .spec file? if not, i'm going to add a patch. Instead a a threaded PHP you should use fastcgi or fpm
greetings
You're right, I haven't setup rpmmacros, but libtool is installed and the compile result is still the same. No I didn't change anything within .spec file. I'ts a fresh Mageia 6 installation with untouched master clone of php7-mga.
Well, I mounted a VM with mageia 6 (net install) without anything and I wasn't unable reproduce... but, I think know what's happen. So, clone the branch "dev" and try compile if give an error upload the log
Unfortunatelly still the same :( ... https://drive.google.com/open?id=0B4ZksankjMs9RnQ3WDc1MzA5WDQ
I added another patch en dev branch, try again...
Still error, but different one... https://drive.google.com/open?id=0B4ZksankjMs9WTlPWW5KaXA0dzg Is something wrong with my Mageia 6 installation? Do you plan to release some .rpm?
well, the error is produced by it's no recognized libtool of your system and used the default linker shipped php. It's weird, I try in my laptop, my pc, MV and never give that error... 😩
So the patched introduced in dev branch forced that, maybe you can try compile in a VM with a minimal installation.
Do you plan to release some .rpm?
Yeah, but the question is where?
the packages have to signed and distributed in a secure server, and I haven't access to them.
now, if you really want the .rpm i can provide to you but by your own risk
Success! After the latest update I'm able to compile it. The machine which I use is Virtualbox VM. I'll try to create a new one with minimal setup and we'll see whether the error will appear again.
finally! 👍 tell me if compile with the VM
I created new netinstall VM of Mageia 6 with minimal setup. Then cloned master branch and followed steps from README. The first compile ended with error...
checking for Firebird support... yes, shared
checking for fb_config... no
checking for isc_detach_database in -lfbclient... no
checking for isc_detach_database in -lgds... no
checking for isc_detach_database in -lib_util... no
configure: error: libfbclient, libgds or libib_util not found! Check config.log for more information.
error: Bad exit status from /home/waclaw/rpmbuild/tmp/rpm-tmp.gHv6Hk (%build)
RPM build errors:
Bad exit status from /home/waclaw/rpmbuild/tmp/rpm-tmp.gHv6Hk (%build)
Therefore I installed manually lib64fbclient-devel which wasn't required by dnf builddep php.spec. Then I tried compile it again. Success! My original VM was installed from Mageia-6-x86_64-DVD.iso and updated, so there is maybe the problem with libtool.
Thanks for the support!
Therefore I installed manually lib64fbclient-devel which wasn't required by dnf builddep php.spec.
I know libfbclient-devel is required but if i add to the BuildRequires always install the i586 version instead x86_64, independent of arch, no idea why 😩 (i'm gonna add to readme)
Then I tried compile it again. Success!
its great!
Hi! Trying to compile, I got following error...