View previous topic :: View next topic |
Author |
Message |
Tamadite
Joined: 06 Mar 2009 Posts: 5
|
Posted: Fri Mar 06, 2009 9:14 am Post subject: shout_new problem? |
|
|
I have the following problem with ICES 2.0.1 while running configure:
Code: |
checking for pkg-config... /opt/bin/pkg-config
checking shout/shout.h usability... yes
checking shout/shout.h presence... yes
checking for shout/shout.h... yes
checking for shout_new... no
configure: error: must have libshout installed! |
I have libshout 2.2.2-2 installed.
This is what config.log shows:
Code: |
configure:20984: checking for shout_new
configure:21041: gcc -o conftest -g -O2 -pthread -I/opt/include -I/home/slug/optware/oleg/staging/opt/include conftest.c -L/opt/lib -lshout -logg >&5
/opt/lib/libshout.so: undefined reference to `speex_packet_to_header'
collect2: ld returned 1 exit status
configure:21047: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "IceS"
| #define PACKAGE_TARNAME "ices"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "IceS 2.0.1"
| #define PACKAGE_BUGREPORT "icecast@xiph.org"
| #define PACKAGE "ices"
| #define VERSION "2.0.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define _XOPEN_SOURCE 600
| #define _GNU_SOURCE
| #define STDC_HEADERS 1
| #define HAVE_OSS
| #define HAVE_UINT64_T 1
| #define HAVE_SHOUT_SHOUT_H 1
| /* end confdefs.h. */
| /* Define shout_new to an innocuous variant, in case <limits.h> declares shout_new.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define shout_new innocuous_shout_new
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char shout_new (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef shout_new
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char shout_new ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_shout_new) || defined (__stub___shout_new)
| choke me
| #else
| char (*f) () = shout_new;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != shout_new;
| ;
| return 0;
| }
configure:21072: result: no
configure:21111: error: must have libshout installed! |
Any idea?
________
G ENGINE
Last edited by Tamadite on Thu Feb 10, 2011 11:02 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
karlH Code Warrior
![Code Warrior Code Warrior](templates/subRebel/images/ranks/rank_dev.gif)
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Mar 06, 2009 1:10 pm Post subject: |
|
|
> /opt/lib/libshout.so: undefined reference to `speex_packet_to_header'
the package hasn't specified the required dependency, or you've force an install. this libshout has been built with speex support and there's no libspeex library installed.
karl. |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
Tamadite
Joined: 06 Mar 2009 Posts: 5
|
Posted: Fri Mar 06, 2009 11:29 pm Post subject: |
|
|
Thanks for your indications!
I have installed libspeex library package but I'm still having the same error message:
Code: |
configure:20984: checking for shout_new
configure:21041: gcc -o conftest -g -O2 -pthread -I/opt/include -I/home/slug/optware/oleg/staging/opt/include conftest.c -$
/opt/lib/libshout.so: undefined reference to `speex_packet_to_header'
collect2: ld returned 1 exit status
|
Any suggestion?
________
R1200rt
Last edited by Tamadite on Thu Feb 10, 2011 11:02 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
karlH Code Warrior
![Code Warrior Code Warrior](templates/subRebel/images/ranks/rank_dev.gif)
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 07, 2009 12:32 am Post subject: |
|
|
That function is in libspeex, check
ldd /opt/lib/libshout.so
That will report the libraries that are referenced from libshout, see if speex is mentioned and if it finds the library you just installed.
karl. |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
Tamadite
Joined: 06 Mar 2009 Posts: 5
|
Posted: Sat Mar 07, 2009 9:23 am Post subject: |
|
|
Code: |
[]$ ldd /opt/lib/libshout.so
libvorbis.so.0 => /opt/lib/libvorbis.so.0 (0x00000000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x00000000)
libc.so.0 => /opt/lib/libc.so.0 (0x00000000)
libogg.so.0 => /opt/lib/libogg.so.0 (0x00000000)
libm.so.0 => /opt/lib/libm.so.0 (0x00000000)
/opt/lib/ld-uClibc.so.0 => /opt/lib/ld-uClibc.so.0 (0x00000000)
|
I found one of your answers on other post on same problem:
Quote: |
you'll have to recreate the lib, your libshout is referring to libspeex symbols but is relying on whatever is linking it (python in this case) to include libspeex. I'd try rebuilding from source and make sure you have a recent libspeex installed. |
So now I have to find the way to rebuild this.
Thanks!
________
Honda cb550 history
Last edited by Tamadite on Thu Feb 10, 2011 11:02 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
Tamadite
Joined: 06 Mar 2009 Posts: 5
|
Posted: Mon Mar 09, 2009 10:52 pm Post subject: |
|
|
I guess I have a very newbie problem:
I have tried to compile libshout to include libspeex with
Code: |
./configure --with-speex=/opt/lib |
(libspeex package is installed)
The problem I have is that after running "configure", "make", "make install" and "ldd" I get the following:
Code: |
libvorbis.so.0 => /opt/lib/libvorbis.so.0 (0x00000000)
libm.so.0 => /opt/lib/libm.so.0 (0x00000000)
libogg.so.0 => /opt/lib/libogg.so.0 (0x00000000)
libc.so.0 => /opt/lib/libc.so.0 (0x00000000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x00000000)
not a dynamic executable
|
What am I doing wrong?
________
Honda cn250 history
Last edited by Tamadite on Thu Feb 10, 2011 11:02 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
karlH Code Warrior
![Code Warrior Code Warrior](templates/subRebel/images/ranks/rank_dev.gif)
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 09, 2009 11:25 pm Post subject: |
|
|
That output doesn't actually show an error. If the speex library is static then it wouldn't show on that list. It also doesn't show whether speex was built, check the configure and make output
karl. |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
Tamadite
Joined: 06 Mar 2009 Posts: 5
|
Posted: Tue Mar 10, 2009 11:20 pm Post subject: |
|
|
Thank you very much karlH for your indications! Very appreciated!!! I have suceed to build both ICES flavours. As you mentioned, the libspeex library got static. I have to google some more to learn on having them dynamic instead.... but that is a minor thing right now!
Now I will finally start testing icecast/ices on MIPS (Asus WL-500gP).
________
512 |
|
Back to top |
|
![](templates/subRebel/images/spacer.gif) |
|