Solved Problème build PHP

Hashut

Verified User
Joined
Apr 6, 2011
Messages
56
Bonjour
impossible d installe une version php que se soit de la 5.6 a la 8.0 pareil
erreur la meme sauf ( libphp5.la ou libphp7.la etc...)
une Idée serait le bien venue
merci

/usr/bin/ld: /usr/local/lib/libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libz.a(inflate.o): relocation R_X86_64_PC32 against symbol `inflateReset' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(common.o): relocation R_X86_64_PC32 against symbol `xsltGenericErrorContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(math.o): relocation R_X86_64_PC32 against symbol `xmlXPathNAN@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(functions.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(strings.o): relocation R_X86_64_PC32 against symbol `xmlMalloc@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(date.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(saxon.o): relocation R_X86_64_PC32 against symbol `xsltGenericErrorContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libexslt.a(dynamic.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(xslt.o): relocation R_X86_64_PC32 against symbol `xmlMalloc@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(xsltutils.o): relocation R_X86_64_PC32 against symbol `xsltGenericErrorContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(pattern.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(templates.o): relocation R_X86_64_PC32 against symbol `xsltGenericDebugContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(variables.o): relocation R_X86_64_PC32 against symbol `xmlMalloc@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(keys.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(extensions.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(extra.o): relocation R_X86_64_PC32 against symbol `xsltGenericErrorContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(namespaces.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(imports.o): relocation R_X86_64_PC32 against symbol `xsltDocDefaultLoader' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(attributes.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(documents.o): relocation R_X86_64_PC32 against symbol `xsltGenericDebugContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(preproc.o): relocation R_X86_64_PC32 against symbol `xmlMalloc@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(transform.o): relocation R_X86_64_PC32 against symbol `xsltGenericDebugContext' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(security.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(attrvt.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(xsltlocale.o): relocation R_X86_64_PC32 against symbol `xmlMalloc@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(numbers.o): relocation R_X86_64_PC32 against symbol `xmlIsBaseCharGroup@@LIBXML2_2.6.0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libxslt.a(functions.o): relocation R_X86_64_PC32 against symbol `xmlFree@@LIBXML2_2.4.30' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:156: libphp5.la] Error 1
make: *** Waiting for unfinished jobs....
 
Quand je fait ./build libxslt
erreur

/usr/bin/ld: /usr/local/lib/libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libz.a(inflate.o): relocation R_X86_64_PC32 against symbol `inflateReset' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:499: libexslt.la] Error 1
make[2]: Leaving directory '/usr/local/directadmin/custombuild/libxslt-1.1.34/libexslt'
make[1]: *** [Makefile:615: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/libxslt-1.1.34'
make: *** [Makefile:441: all] Error 2
 
éditer "/usr/local/directadmin/custombuild/custom/libxslt/configure.libxslt"
remplace code par
#!/bin/sh
./configure --prefix=/usr/local --with-libxml-prefix=/usr/local --without-python --disable-shared --with-PIC CFLAGS=-fPIC CXXFLAGS=-fPIC

éditer "/usr/local/directadmin/custombuild/configure/libxml2/configure.libxml2"

remplacer

#!/bin/sh
./configure --prefix=/usr/local --without-python --with-zlib=/usr --with-PIC CFLAGS=-fPIC CXXFLAGS=-fPIC

cd /usr/local/directadmin/custombuild/

./build set php1_release 8.0
./build set php2_release no
./build set php3_release no
./build set php4_release no
./build rewrite_confs
./build remove_items
./build update
./build php n

après j ai put remettre les version PHP que j avais besoin
tous fonctionne merci
 
Back
Top