Compiling PHP 5.3 on Ubuntu 14.04 - libtool: Version mismatch error -


i have php property trying migrate centos 6 ubuntu 14.04. property runs on php 5.3 , cannot updated later version in time allowed due package conflicts (this set in stone , out of hands, project next year).

ubuntu has package php 5.3 maintained in 12.04. recompile existing package on 14.04. realize have periodically keep security packages or deal rolling version of packages work php 5.3. work has been deemed acceptable.

here's problem, while code in theory should work fine in 14.04 (we've compiled vanilla version no issue) autotools files giving fits.

after running configure our options this:

root@ubuntu:~/php5-5.3.10# make /bin/sh /home/user/php5-5.3.10/libtool --silent --preserve-dup-deps --mode=compile gcc -iext/date/lib -iext/date/ -i/home/user/php5-5.3.10/ext/date/ -dphp_atom_inc -i/home/user/php5-5.3.10/include -i/home/user/php5-5.3.10/main -i/home/user/php5-5.3.10 -i/home/user/php5-5.3.10/ext/date/lib -i/home/user/php5-5.3.10/ext/ereg/regex -i/usr/include/libxml2 -i/home/user/php5-5.3.10/ext/sqlite3/libsqlite -i/home/user/php5-5.3.10/tsrm -i/home/user/php5-5.3.10/zend    -i/usr/include -g -o2 -fvisibility=hidden  -c /home/user/php5-5.3.10/ext/date/php_date.c -o ext/date/php_date.lo /home/user/php5-5.3.10/libtool: 481: /home/user/php5-5.3.10/libtool: cdpath: not found libtool: version mismatch error.  libtool 2.4 debian-2.4-2ubuntu1, libtool: definition of lt_init comes older release. libtool: should recreate aclocal.m4 macros libtool 2.4 debian-2.4-2ubuntu1 libtool: , run autoconf again. make: *** [ext/date/php_date.lo] error 63 

from digging around similar questions it's suggested wipe out aclocal.m4 files , recreate them aclocal. doing makes no change. further digging suggests regenerating configure script autoreconf -i. doing , rerunning configure nets following result:

root@ubuntu:~/php5-5.3.10# ./configure --prefix=/opt/php53 cat: confdefs.h: no such file or directory ./configure: 392: ./configure: ac_fn_c_try_run: not found ./configure: 408: ./configure: 5: bad file descriptor ./configure: 408: ./configure: :: checking pthreads_cflags: not found ./configure: 409: ./configure: 6: bad file descriptor ./configure: 409: ./configure: checking pthreads_cflags... : not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 448: ./configure: ac_fn_c_try_run: not found ./configure: 471: ./configure: 5: bad file descriptor ./configure: 471: ./configure: :: result: : not found ./configure: 472: ./configure: 6: bad file descriptor ./configure: 472: ./configure: : permission denied ./configure: 474: ./configure: 5: bad file descriptor ./configure: 474: ./configure: :: checking pthreads_lib: not found ./configure: 475: ./configure: 6: bad file descriptor ./configure: 475: ./configure: checking pthreads_lib... : not found cat: confdefs.h: no such file or directory ./configure: 514: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 514: ./configure: ac_fn_c_try_run: not found cat: confdefs.h: no such file or directory ./configure: 514: ./configure: ac_fn_c_try_run: not found ./configure: 536: ./configure: 5: bad file descriptor ./configure: 536: ./configure: :: result: : not found ./configure: 537: ./configure: 6: bad file descriptor ./configure: 537: ./configure: : permission denied ./configure: 612: ./configure: 5: bad file descriptor ./configure: 612: ./configure: :: result: : not found ./configure: 613: ./configure: 6: bad file descriptor ./configure: 613: ./configure: : permission denied ./configure: 614: ./configure: 5: bad file descriptor ./configure: 614: ./configure: :: result: configuring sapi modules: not found ./configure: 615: ./configure: 6: bad file descriptor ./configure: 615: ./configure: configuring sapi modules: not found ./configure: 642: ./configure: 5: bad file descriptor ./configure: 642: ./configure: :: checking aolserver support: not found ./configure: 643: ./configure: 6: bad file descriptor ./configure: 643: ./configure: checking aolserver support... : not found ./configure: 879: ./configure: 5: bad file descriptor ./configure: 879: ./configure: :: result: no: not found ./configure: 880: ./configure: 6: bad file descriptor ./configure: 880: ./configure: no: not found ./configure: 907: ./configure: 5: bad file descriptor ./configure: 907: ./configure: :: checking apache 1.x module support via dso through apxs: not found ./configure: 908: ./configure: 6: bad file descriptor ./configure: 908: ./configure: checking apache 1.x module support via dso through apxs... : not found ./configure: 1219: ./configure: 5: bad file descriptor ./configure: 1219: ./configure: :: result: no: not found ./configure: 1220: ./configure: 6: bad file descriptor ./configure: 1220: ./configure: no: not found ./configure: 1245: ./configure: 5: bad file descriptor ./configure: 1245: ./configure: :: checking apache 1.x module support: not found ./configure: 1246: ./configure: 6: bad file descriptor ./configure: 1246: ./configure: checking apache 1.x module support... : not found ./configure: 2105: ./configure: 5: bad file descriptor ./configure: 2105: ./configure: :: result: no: not found ./configure: 2106: ./configure: 6: bad file descriptor ./configure: 2106: ./configure: no: not found ./configure: 2117: ./configure: 5: bad file descriptor ./configure: 2117: ./configure: :: checking whether enable apache charset compatibility option: not found ./configure: 2118: ./configure: 6: bad file descriptor ./configure: 2118: ./configure: checking whether enable apache charset compatibility option... : not found ./configure: 2131: ./configure: 5: bad file descriptor ./configure: 2131: ./configure: :: result: no: not found ./configure: 2132: ./configure: 6: bad file descriptor ./configure: 2132: ./configure: no: not found ./configure: 2281: ./configure: 5: bad file descriptor ./configure: 2281: ./configure: :: checking apache 2.0 filter-module support via dso through apxs: not found ./configure: 2282: ./configure: 6: bad file descriptor ./configure: 2282: ./configure: checking apache 2.0 filter-module support via dso through apxs... : not found ./configure: 3153: ./configure: 5: bad file descriptor ./configure: 3153: ./configure: :: result: no: not found ./configure: 3154: ./configure: 6: bad file descriptor ./configure: 3154: ./configure: no: not found ./configure: 3181: ./configure: 5: bad file descriptor ./configure: 3181: ./configure: :: checking apache 2.0 handler-module support via dso through apxs: not found ./configure: 3182: ./configure: 6: bad file descriptor ./configure: 3182: ./configure: checking apache 2.0 handler-module support via dso through apxs... : not found ./configure: 4053: ./configure: 5: bad file descriptor ./configure: 4053: ./configure: :: result: no: not found ./configure: 4054: ./configure: 6: bad file descriptor ./configure: 4054: ./configure: no: not found *** snipped lot out of middle, idea *** cat: confdefs.h: no such file or directory ./configure: 12860: ./configure: ac_fn_c_try_compile: not found ./configure: 12944: ./configure: 5: bad file descriptor ./configure: 12944: ./configure: :: result: no: not found ./configure: 12945: ./configure: 6: bad file descriptor ./configure: 12945: ./configure: no: not found ./configure: 1: ./configure: ac_cv_header_dirent_dirent.h: not found ./configure: 12955: ./configure: 5: bad file descriptor ./configure: 12955: ./configure: :: checking dirent.h defines dir: not found ./configure: 12956: ./configure: 6: bad file descriptor ./configure: 12956: ./configure: checking dirent.h defines dir... : not found ./configure: 1: eval: bad substitution 

at point @ loss. further digging suggests versioning issue autoreconf or autotools none of aware of how fix that.

we don't c development or deal builds source if can avoid however, in case, it's unavoidable. building on 12.04 not option there's no approved base image. has made run on 14.04 in fashion.

edit: trying suggestions thread libtool version mismatch error i.e. wiping autoconf files , regenerating them autoconf --force --install not work either. ./configure gives same output above. there not appear bootstrap or autogen.sh script checked in source code php 5.3 on ubuntu 12.02.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -