internethering / hering-overlay

richard hering's gentoo overlay
4 stars 4 forks source link

can't build php-5.6.40-r14 #17

Open pornmailbox opened 5 months ago

pornmailbox commented 5 months ago

Configure error - ... checking for ld used by x86_64-pc-linux-gnu-cc... (cached) no configure: error: no acceptable ld found in $PATH ...

This error occurs if there is more than one $SAPI. If i'd like to build for example fpm only, configure finished successfully.

internethering commented 5 months ago

there is no php-5.6.40-r14 in my overlay, only php-5.6.40-r7? please provide more information, see https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29 and https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

I can't reproduce this:

checking for ld used by x86_64-pc-linux-gnu-cc... /usr/x86_64-pc-linux-gnu/bin/ld

And I've fpm & cli als SAPI enabled

pornmailbox commented 4 months ago

Hi. Take my pardon for delay in answer. I'm using lxc containers on proxmox. I have to investigate a little bit more. At first I have to install a Gentoo VM and test your ebuild in it. In a two weeks I'll test it and provide you additional info.

pornmailbox commented 2 months ago

Hi. A little bit more for php-5.6.40. I created a few "dirty" patches and modified ebuild file. I'm using fpm and cli with xml and mysql. You can test it. I'm using latest autoconf.and gcc-14.2. php-fpm works fine. PHAR won't build - ICE error.

php-5.6.zip

internethering commented 2 months ago

thx for your work, but I doesn't work with stable gentoo (gcc 13.3.1_p20240614, autoconf 2.71-r7):

patching file configure
Hunk #1 FAILED at 6806.
Hunk #2 FAILED at 112928.
Hunk #3 succeeded at 126032 (offset -2063 lines).
2 out of 3 hunks FAILED -- saving rejects to file configure.rej                                                                                                                                                                                                                                                                                                   

your patch says:

@@ -6806,7 +6806,6 @@
       fi
     done
   fi
-fi
  ;;
 esac
 fi

the content of configure at line 6806:

    APACHE_HAS_REGEX=1
    APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
    APACHE_TARGET=$PHP_APACHE/src/modules/php5
    if test ! -d $APACHE_TARGET; then
      mkdir $APACHE_TARGET

There is something wrong with the provided patch.

Then this ebuild should be used in stable gentoo envirenments and only to support old not updated websites. Stable gcc is 13.3.1_p20240614 and autoconf 2.71-r7, on this envirement it compiles fine. Using with this fpm, cli, xml, mysql and phar.