Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Build System
-
Labels:None
-
Platform:Linux x86/gcc
-
CPU Info:
-
FreeSWITCH GIT Revision:6dfd39c5f3186000b08a1fa500a98a4a04d65724
-
Reproduced with GIT HEAD?:yes
Description
2010-11-24 09:16:57.976802 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/lib64/freeswitch/mod_spandsp.so
**/usr/lib64/freeswitch/mod_spandsp.so: undefined symbol: jpeg_resync_to_restart**
mod_spandsp compile without any error message but is not linked with libjpeg:
$ cd src/mod/applications/mod_spandsp/
$ make
$ ldd .libs/mod_spandsp.so
libfreeswitch.so.1 => /usr/src/freeswitch-1.0.7/.libs/libfreeswitch.so.1 (0x00002b797ff51000)
libz.so.1 => /lib64/libz.so.1 (0x00002b7980338000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b798054f000)
libc.so.6 => /lib64/libc.so.6 (0x00002b798076c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b7980ac0000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00002b7980cc4000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b7980ee6000)
libm.so.6 => /lib64/libm.so.6 (0x00002b79811ec000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b798146e000)
/lib64/ld-linux-x86-64.so.2 (0x00002b797fa4b000)
I see ljpeg in Makefile and mod_spandsp.log:
$ grep ljpeg Makefile
mod_spandsp_la_LDFLAGS = -avoid-version -module -no-undefined -shared -ljpeg
$ grep ljpeg mod_spandsp.log
quiet_libtool: link: gcc -shared .libs/mod_spandsp_la-mod_spandsp.o .libs/mod_spandsp_la-udptl.o .libs/mod_spandsp_la-mod_spandsp_fax.o .libs/mod_spandsp_la-mod_spandsp_dsp.o .libs/mod_spandsp_la-mod_spandsp_codecs.o -Wl,-rpath -Wl,/usr/src/freeswitch-1.0.7/.libs -Wl,-rpath -Wl,/usr/local/freeswitch/lib -ljpeg /usr/src/freeswitch-1.0.7/.libs/libfreeswitch.so /usr/src/freeswitch-1.0.7/libs/spandsp/src/.libs/libspandsp.a /usr/src/freeswitch-1.0.7/libs/tiff-3.8.2/libtiff/.libs/libtiff.a -lssl -lcrypto -ldl -lz -lncurses -pthread -Wl,-soname -Wl,mod_spandsp.so -o .libs/mod_spandsp.so
After export LDFLAGS="$LDFLAGS -Wl,--no-as-needed" (seeFS-2873) results are the same
**/usr/lib64/freeswitch/mod_spandsp.so: undefined symbol: jpeg_resync_to_restart**
mod_spandsp compile without any error message but is not linked with libjpeg:
$ cd src/mod/applications/mod_spandsp/
$ make
$ ldd .libs/mod_spandsp.so
libfreeswitch.so.1 => /usr/src/freeswitch-1.0.7/.libs/libfreeswitch.so.1 (0x00002b797ff51000)
libz.so.1 => /lib64/libz.so.1 (0x00002b7980338000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b798054f000)
libc.so.6 => /lib64/libc.so.6 (0x00002b798076c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b7980ac0000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00002b7980cc4000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b7980ee6000)
libm.so.6 => /lib64/libm.so.6 (0x00002b79811ec000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b798146e000)
/lib64/ld-linux-x86-64.so.2 (0x00002b797fa4b000)
I see ljpeg in Makefile and mod_spandsp.log:
$ grep ljpeg Makefile
mod_spandsp_la_LDFLAGS = -avoid-version -module -no-undefined -shared -ljpeg
$ grep ljpeg mod_spandsp.log
quiet_libtool: link: gcc -shared .libs/mod_spandsp_la-mod_spandsp.o .libs/mod_spandsp_la-udptl.o .libs/mod_spandsp_la-mod_spandsp_fax.o .libs/mod_spandsp_la-mod_spandsp_dsp.o .libs/mod_spandsp_la-mod_spandsp_codecs.o -Wl,-rpath -Wl,/usr/src/freeswitch-1.0.7/.libs -Wl,-rpath -Wl,/usr/local/freeswitch/lib -ljpeg /usr/src/freeswitch-1.0.7/.libs/libfreeswitch.so /usr/src/freeswitch-1.0.7/libs/spandsp/src/.libs/libspandsp.a /usr/src/freeswitch-1.0.7/libs/tiff-3.8.2/libtiff/.libs/libtiff.a -lssl -lcrypto -ldl -lz -lncurses -pthread -Wl,-soname -Wl,mod_spandsp.so -o .libs/mod_spandsp.so
After export LDFLAGS="$LDFLAGS -Wl,--no-as-needed" (see
Activity
Brian West
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Anthony Minessale II [ anthm ] | Mike Jerris [ mikej ] |
Jeff Lenk
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Incomplete [ 4 ] |
Eugene Prokopiev
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Incomplete [ 4 ] |
Daniel Swarbrick
made changes -
| Attachment | mod_spandsp.patch [ 14481 ] |
Jeff Lenk
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Auto Admin
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |