AUR (en) - php53
malina commented on 2020-11-03 11:47
lsrzj commented on 2019-11-25 17:43
I tried building PHP 5.3 and makepkg -si is failing with this message:
In file included from /usr/include/unicode/uformattable.h:37,
from /usr/include/unicode/fmtable.h:33,
from /usr/include/unicode/format.h:39,
from /usr/include/unicode/msgfmt.h:33,
from /home/leandro/php53/src/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp:22:
/usr/include/unicode/ubrk.h:353:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)’
353 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/utext.h:199:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)’
199 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)’
428 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/utext.h:199:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)’
199 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)’
428 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ubrk.h:353:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)’
353 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:1023: ext/intl/msgformat/msgformat_helpers.lo] Error 1
==> ERRO: Uma falha ocorreu em build().
Abortando...
aminvakil commented on 2019-09-17 13:33
At the end (I executed makepkg -sri):
==> Removing installed dependencies...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: php53: removing libzip breaks dependency 'libzip'
:: php53: removing openssl-1.0 breaks dependency 'openssl-1.0'
:: php53-apache: removing apache breaks dependency 'apache'
:: php53-enchant: removing enchant breaks dependency 'enchant'
:: php53-imap: removing c-client breaks dependency 'c-client'
:: php53-mcrypt: removing libmcrypt breaks dependency 'libmcrypt'
:: php53-mssql: removing freetds breaks dependency 'freetds'
:: php53-odbc: removing unixodbc breaks dependency 'unixodbc'
:: php53-pgsql: removing postgresql-libs breaks dependency 'postgresql-libs'
:: php53-pspell: removing aspell breaks dependency 'aspell'
:: php53-snmp: removing net-snmp breaks dependency 'net-snmp'
:: php53-tidy: removing tidy breaks dependency 'tidyhtml'
:: php53-xsl: removing libxslt breaks dependency 'libxslt'
==> WARNING: Failed to remove installed dependencies.
==> ERROR: An unknown error has occurred. Exiting...
User defined signal 1
warren commented on 2019-05-26 04:29
There is a small issue with the suhosin patch. In order to work some extraction and dir change must be done.
prepare() {
cd ${srcdir}/..
# ^^^ this is the correct dir
gunzip suhosin-patch-${_suhosinver}.patch.gz
# ^^^ Unzip the patch
msg "Fix the suhosin patch"
patch -l -i suhosin.patch
sed -i 's/1997-2004/1997-2014/g' suhosin-patch-${_suhosinver}.patch
sed -i 's/1997-2012/1997-2014/g' suhosin-patch-${_suhosinver}.patch
cp suhosin-patch-${_suhosinver}.patch ${srcdir}
# ^^^ copy the patch to the final dir
[...]
felixonmars commented on 2018-07-16 08:32
All fixed now. Sorry for the delay.
jorgelrm commented on 2018-04-28 18:01
Unable to compile, when I try to use enchant 1.6 the patched package makes impossible to start building (it says: 'cannot find enchant') until the folder enchant is renamed back from /usr/include/enchant1.6 to /usr/include/enchant. Also, the SSL certificate in the suhosin server (for the suhosin patch) has expired, so I downloaded it via "wget --no-check-certificate" (don't know how to do it in curl) manually. Then, I always get the same error when compiling, I've found registered in the following address:
http://build.codelinsoft.it/packages/php53/x86_64/log
Some ideas?
gluceri commented on 2018-03-29 08:51
You need to install enchant1.6 from aur. Then patch "confiugure" and rebuild.
JJK commented on 2018-02-15 20:22
For me it crashes on:
checking for ENCHANT support... yes, shared
configure: error: Cannot find enchant
==> ERROR: A failure occurred in build().
Aborting...
bachy commented on 2017-12-06 12:53
Hello,
php53-mcrypt from aur is in conclict with extra/php i'm running both php versions (7 & 5.3) using php-fpm but now mcrypt is not here anymore for php53
what can i do ?
francoism90 commented on 2017-09-11 13:30
==> Retrieving sources...
-> Downloading php-5.3.29.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8928k 100 8928k 0 0 4464k 0 0:00:02 0:00:02 --:--:-- 3030k
-> Downloading suhosin-patch-5.3.9-0.9.10.patch.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (6) Could not resolve host: suhosin-patch-5.3.9-0.9.10.patch.gz
==> ERROR: Failure while downloading http://download.suhosin.org/suhosin-patch-5.3.9-0.9.10.patch.gz
Hi,
the problem is that the unicode include directory is not taken well by php.
Nor is it a problem, but the current icu library (now 67.1) is not suitable for the php 5.3 intl extension, obviously the current icu library functions have a different set of parameters than in older versions.
There is only one solution: you need to install an earlier version of icu separately, which is at least 48.1 (icu 4.8.1.1) - I use at least that.I compiled specifically with the rpath option and only for php.
That's not enough: in the php53 build section, you need to set ICU_CONFIG env, and for LDFLAGS add the lib directory of the old version icu with the -L option, and set the --with-icu-dir = option with install dir of the old version icu.