Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link: `redis.lo' is not a valid libtool object #63

Closed
askie opened this issue Oct 20, 2011 · 6 comments
Closed

link: `redis.lo' is not a valid libtool object #63

askie opened this issue Oct 20, 2011 · 6 comments

Comments

@askie
Copy link

askie commented Oct 20, 2011

[root@localhost nicolasff-phpredis-687903e]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

[root@localhost nicolasff-phpredis-687903e]# ./configure --with-php-config=/usr/local/php/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/p
hp/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable redis support... yes, shared
checking whether to enable sessions... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged

[root@localhost nicolasff-phpredis-687903e]# make
/bin/sh /home/tools/nicolasff-phpredis-687903e/libtool --mode=link cc -DPHP_ATOM_INC -I/home/tools/nicolasff-phpredis-687903e/include -I/hom
e/tools/nicolasff-phpredis-687903e/main -I/home/tools/nicolasff-phpredis-687903e -I/usr/local/php/include/php -I/usr/local/php/include/php/m
ain -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/da
te/lib -DHAVE_CONFIG_H -g -O2 -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/tools/nicolasff-phpredis-68790
3e/modules redis.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo igbinary/igbinary.lo igbinary/hash_si.lo igbinary/hash_f
unction.lo
libtool: link: `redis.lo' is not a valid libtool object
make: *** [redis.la] Error 1

[root@localhost nicolasff-phpredis-687903e]# uname -a
Linux localhost.localdomain 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
You have new mail in /var/spool/mail/root
[root@localhost nicolasff-phpredis-687903e]# libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost nicolasff-phpredis-687903e]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost nicolasff-phpredis-687903e]# automake --version
automake (GNU automake) 1.9.6
Written by Tom Tromey tromey@redhat.com.

Copyright 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost nicolasff-phpredis-687903e]# php --version
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

@askie
Copy link
Author

askie commented Oct 20, 2011

libtool: link: `redis.lo' is not a valid libtool object
make: *** [redis.la] Error 1

@keeguon
Copy link

keeguon commented Oct 20, 2011

First of all you should probably upgrade to a newer version of PHP yours is almost 1 year old (and obviously very outdated given current stable 5.3.8), even so I'll try to replicate this in a VM tomorrow if the problem isn't solved by then.

@askie
Copy link
Author

askie commented Oct 20, 2011

php5.3.8 is the same error:

libtool: link: `redis.lo' is not a valid libtool object
make: *** [redis.la] Error 1
[1]+ Exit 2 make
[root@bogon nicolasff-phpredis-687903e]# php

[root@bogon nicolasff-phpredis-687903e]# php --version
PHP 5.3.8 (cli) (built: Oct 20 2011 23:41:33)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
You have new mail in /var/spool/mail/root

@nicolasff
Copy link
Member

Hello,

I'm not sure what is happening here, but it might be an incompatibility between your version of PHP and your version of libtool. I have libtool 2.2.6 on my machine, and yours seems to date from 2005.

Would it be possible for you to update libtool?

@v-leonhou
Copy link

hi ,when i installed the newest php7.0.5 in my centos 6.7 ,i get the problem

"libtool: link: `ext/opcache/ZendAccelerator.lo' is not a valid libtool object"

@julitroalves
Copy link

sudo apt-get install libtool can resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants