View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Mon Mar 24, 2008 2:52 am Post subject: Error when installing |
|
|
Hi
when i try to install Icecast on centos 5 i got this error :
Quote: |
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/icecast-2.3.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/icecast-2.3.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/icecast-2.3.1'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.98599 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.98599 (%build) |
any help ???
thanks in advance |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 24, 2008 3:30 am Post subject: |
|
|
Not without the error message, all you have there is the cascade of the make after the error is reported. If it's something CURL related then try the trunk or -kh build (my webpage has links to both).
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Mon Mar 24, 2008 12:48 pm Post subject: |
|
|
thanks karlH for your reply
but when i try to install 2.3-kh32 version :
1: ./configure
evry thing is ok
2: make
say this error :
Code: |
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/icecast-2.3-kh32'
make: *** [all] Error 2 |
3: make install
say this error :
Code: |
collect2: ld returned 1 exit status
make[2]: *** [icecast] Error 1
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make: *** [install-recursive] Error 1 |
any help
|
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 24, 2008 4:19 pm Post subject: |
|
|
again, you are missing out the error message that would indicate the problem. All we can tell from the post error output is that it's
something to do with the linker.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Mar 25, 2008 2:26 pm Post subject: |
|
|
Hi
thanks karl for you response
this all what i got :
Code: |
[root@]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /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 recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) 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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
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... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for unistd.h... (cached) yes
checking for __func__... yes
checking for off_t... yes
checking for localtime_r... yes
checking for poll... yes
checking for atoll... yes
checking for strtoll... yes
checking for getrlimit... yes
checking for library containing nanosleep... none required
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for socklen_t... yes
checking for va_copy... va_copy
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for library containing sethostent... none required
checking for library containing getnameinfo... none required
checking for endhostent... yes
checking for getaddrinfo... yes
checking for inet_aton... yes
checking for writev... yes
checking for struct sockaddr_storage.ss_family... yes
checking for inet_pton... yes
checking for xslt-config... /usr/bin/xslt-config
checking for xsltSaveResultToString... no
checking for fgrep... /bin/grep -F
checking for libogg... ok
checking for libvorbis... ok
checking for libtheora... ok
checking for libspeex... ok
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for pthread_spin_lock... yes
checking for curl-config... /usr/bin/curl-config
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking for libcurl... yes
checking whether CURLOPT_NOSIGNAL is declared... yes
checking for pkg-config... /usr/bin/pkg-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating conf/Makefile
config.status: creating debian/Makefile
config.status: creating src/Makefile
config.status: creating src/avl/Makefile
config.status: creating src/httpp/Makefile
config.status: creating src/thread/Makefile
config.status: creating src/log/Makefile
config.status: creating src/net/Makefile
config.status: creating src/timing/Makefile
config.status: creating doc/Makefile
config.status: creating web/Makefile
config.status: creating web/images/Makefile
config.status: creating admin/Makefile
config.status: creating win32/Makefile
config.status: creating win32/res/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
[root@]# make
make all-recursive
make[1]: Entering directory `/root/downloads/icecast-2.3-kh32'
Making all in src
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src'
Making all in avl
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/avl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/avl'
Making all in thread
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/thread'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/thread'
Making all in httpp
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/httpp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/httpp'
Making all in net
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/net'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/net'
Making all in log
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/log'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/log'
Making all in timing
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -L/usr/local/lib -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o auth_cmd.o net/libicenet.la thread/libicethread.la httpp/libicehttpp.la log/libicelog.la avl/libiceavl.la timing/libicetiming.la -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lspeex -ltheora -lvorbis -logg -L/usr/lib -lxslt -lxml2 -lz -lm
gcc -pthread -g -O2 -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o auth_cmd.o -L/usr/local/lib net/.libs/libicenet.a thread/.libs/libicethread.a httpp/.libs/libicehttpp.a log/.libs/libicelog.a avl/.libs/libiceavl.a timing/.libs/libicetiming.a -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lspeex -ltheora -lvorbis -logg -L/usr/lib -lxslt /usr/lib/libxml2.so -ldl -lz -lm
/usr/lib/libxslt.so: undefined reference to `xmlXPathContextSetCache'
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/downloads/icecast-2.3-kh32'
make: *** [all] Error 2
[root@]# make install
Making install in src
make[1]: Entering directory `/root/downloads/icecast-2.3-kh32/src'
Making install in avl
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/avl'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/avl'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/avl'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/avl'
Making install in thread
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/thread'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/thread'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/thread'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/thread'
Making install in httpp
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/httpp'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/httpp'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/httpp'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/httpp'
Making install in net
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/net'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/net'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/net'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/net'
Making install in log
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/log'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/log'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/log'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/log'
Making install in timing
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[3]: Entering directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src/timing'
make[2]: Entering directory `/root/downloads/icecast-2.3-kh32/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -L/usr/local/lib -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o auth_cmd.o net/libicenet.la thread/libicethread.la httpp/libicehttpp.la log/libicelog.la avl/libiceavl.la timing/libicetiming.la -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lspeex -ltheora -lvorbis -logg -L/usr/lib -lxslt -lxml2 -lz -lm
gcc -pthread -g -O2 -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o auth_cmd.o -L/usr/local/lib net/.libs/libicenet.a thread/.libs/libicethread.a httpp/.libs/libicehttpp.a log/.libs/libicelog.a avl/.libs/libiceavl.a timing/.libs/libicetiming.a -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lspeex -ltheora -lvorbis -logg -L/usr/lib -lxslt /usr/lib/libxml2.so -ldl -lz -lm
/usr/lib/libxslt.so: undefined reference to `xmlXPathContextSetCache'
collect2: ld returned 1 exit status
make[2]: *** [icecast] Error 1
make[2]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/downloads/icecast-2.3-kh32/src'
make: *** [install-recursive] Error 1
|
is there a log or anything to got the error ?
thanks in advance |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Mar 25, 2008 2:52 pm Post subject: |
|
|
ok, the actual error is
/usr/lib/libxslt.so: undefined reference to `xmlXPathContextSetCache'
This is not used by icecast specifically, it's a function called from within libxslt that should exist in libxml2. We trap for many things but obviously things version inconsistencies between libs is not one. I suspect your libxml2 is older than your libxslt expects. Check which versions you have.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Mar 25, 2008 10:47 pm Post subject: |
|
|
thanks karl for your responce i am really appreciate
i am a newbie user of centos
can you pls tell me how can i know the version of libxml2 and libxslt
i update them with : yum install rpm-devel rpm-libs rpm-build libvorbis-devel libogg-devel curl-devel libxslt-devel libtheora-devel speex-devel
thanks in advance |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Mar 26, 2008 1:10 am Post subject: |
|
|
yum update libxslt libxml2
you may need to add libxslt-devel libxml2-devel on the end of that, as I don't know centos that well.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Thu Mar 27, 2008 12:16 am Post subject: |
|
|
thanks for your reply
i do what are told me and this output :
Code: |
[root@~]# yum update libxslt libxml2 libxslt-devel libxml2-devel
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Could not find update match for libxslt
Could not find update match for libxslt-devel
Could not find update match for libxml2-devel
Could not find update match for libxml2
No Packages marked for Update/Obsoletion
|
|
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Mar 27, 2008 3:28 am Post subject: |
|
|
those may not be the exact package naming that centos uses. Assuming rpm is used you can check for the rpm name used by doing something like rpm -qf /usr/lib/libxml2.so /usr/lib/libxslt.so
you can query other files to see which package they come from. Just make sure you have the latest. A general yum update is not a bad idea.
karl. |
|
Back to top |
|
|
kaneza
Joined: 09 May 2008 Posts: 31
|
Posted: Fri May 09, 2008 4:45 pm Post subject: |
|
|
were you able to solve it? i facing the same problem i cant install icecast i always get the error
L/usr/lib -lxslt /usr/lib/libxml2.so -ldl -lz -lm
/usr/lib/libxslt.so: undefined reference to `xmlXPathContextSetCache'
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/root/icecast-2.3.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/icecast-2.3.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/icecast-2.3.1'
make: *** [all] Error 2 |
|
Back to top |
|
|
PPNSteve
Joined: 15 Feb 2009 Posts: 8
|
Posted: Mon Feb 16, 2009 12:01 am Post subject: |
|
|
>bump<
Has anyone found a proper solution for this error?
We also are getting this error on a FRESH install of RHEL5
this needs to be resolved ASAP
thanks |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Feb 16, 2009 12:27 am Post subject: |
|
|
This occurs because you have mismatched versions of libxml2 and libxslt. Make sure you have the latest version of each and then icecast build won't show up the discrepancy.
karl. |
|
Back to top |
|
|
jcr Modérateur français
Joined: 14 Apr 2006 Posts: 544 Location: France, Auvergne
|
Posted: Mon Feb 16, 2009 7:37 am Post subject: |
|
|
Well, I also got this error with Centos. Fixed those using Fedora 9 libxml & libxslt packages (libs & devel).
Sounds RHEL & Centos made a package mixup there. _________________ Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting |
|
Back to top |
|
|
PPNSteve
Joined: 15 Feb 2009 Posts: 8
|
Posted: Tue Feb 17, 2009 5:28 pm Post subject: |
|
|
so HOW (including cmds used) did you resolve it? I've tried using yum but it says I have the latest, so it does nothing.
perhaps links to the known working latests source files or rpm's something that both myself and others (and those with little to no linux knowledge) can use. |
|
Back to top |
|
|
|