o Juha Heinanen [05/15/08 21:00]:
> i tried to build the latest trunk and got some warnings that i have not
> seen before.  they may be due to ubuntu upgrade to hardy, which uses
> 
> [EMAIL PROTECTED]:/usr/src/opensipg/trunk$ gcc -v
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v 
> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
> --enable-shared --with-system-zlib --libexecdir=/usr/lib 
> --without-included-gettext --enable-threads=posix --enable-nls 
> --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr 
> --enable-targets=all --enable-checking=release --build=i486-linux-gnu 
> --host=i486-linux-gnu --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
> 
> this appears several times:
> 
> g++ -c -o sems.o sems.cpp  -D_DEBUG -D_THREAD_SAFE -D_REENTRANT 
> -DSEMS_VERSION='"1.0.0-pre-r969M"' -DARCH='"i386"' -DOS='"linux"' -DOpenSER  
> -D_DEBUG -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -DUSE_SPANDSP -D__STDC_LIMIT_MACROS 
> -D_DEBUG -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -DUSE_SPANDSP -D__STDC_LIMIT_MACROS 
> -g -O2 -Wall -Wno-reorder -fPIC -g -O2  -Wall -Wno-reorder -fPIC -g -O2  
> -Wall -Wno-reorder -fPIC -g -O2
> <command-line>: warning: "__STDC_LIMIT_MACROS" redefined
> <command-line>: warning: this is the location of the previous definition
> 
> this adds warning on SEMS_VERSION:
> 
> make[6]: Entering directory `/usr/src/trunk-src/core/plug-in/adpcm'
> gcc  -D_DEBUG -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -D_DEBUG -D_THREAD_SAFE 
> -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' -DARCH='"i386"' 
> -DOS='"linux"' -DOpenSER  -DUSE_SPANDSP -D__STDC_LIMIT_MACROS -D_DEBUG 
> -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -DUSE_SPANDSP -D__STDC_LIMIT_MACROS 
> -D_DEBUG -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -D_DEBUG -D_THREAD_SAFE 
> -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969"' -DARCH='"i386"' -DOS='"linux"' 
> -DOpenSER  -I ../.. -I ../../amci  -D_DEBUG -D_THREAD_SAFE -D_REENTRANT 
> -DSEMS_VERSION='"1.0.0-pre-r969"' -DARCH='"i386"' -DOS='"linux"' -DOpenSER  
> -I ../.. -I ../../amci  -g -O2 -Wall -fPIC -g -O2  -Wall -fPIC -g -O2  -Wall 
> -fPIC -g -O2  -Wall -fPIC -g -O2  -Wall -fPIC -g -O2  -Wall  -Wall -fPIC -g 
> -O2  -Wall  -c adpcm.c -o adpcm.o
> <command-line>: warning: "__STDC_LIMIT_MACROS" redefined
> <command-line>: warning: this is the location of the previous definition
> <command-line>: warning: "SEMS_VERSION" redefined
> <command-line>: warning: this is the location of the previous definition
those should not appear with r970 any more (I did not expect that 
conditional including is needed).

> 
> these all also new and appear in many places:p
> 
> make[4]: Entering directory `/usr/src/trunk-src/apps/ivr'
> g++ -g -O2 -Wall -Wno-reorder -fPIC -g -O2  -Wall -Wno-reorder -fPIC -g -O2  
> -Wall -Wno-reorder -fPIC -g -O2  -I/usr/include/python2.4 
> -fno-strict-aliasing    -Wall -Wno-reorder -fPIC -g -O2  
> -I/usr/include/python2.4 -fno-strict-aliasing     -D_DEBUG -D_THREAD_SAFE 
> -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' -DARCH='"i386"' 
> -DOS='"linux"' -DOpenSER  -D_DEBUG -D_THREAD_SAFE -D_REENTRANT 
> -DSEMS_VERSION='"1.0.0-pre-r969M"' -DARCH='"i386"' -DOS='"linux"' -DOpenSER  
> -D_DEBUG -D_THREAD_SAFE -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' 
> -DARCH='"i386"' -DOS='"linux"' -DOpenSER  -I ../../core 
> -I/usr/include/python2.4 -fno-strict-aliasing    -D_DEBUG -D_THREAD_SAFE 
> -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r969M"' -DARCH='"i386"' 
> -DOS='"linux"' -DOpenSER  -I ../../core -I/usr/include/python2.4 
> -fno-strict-aliasing    -c IvrAudio.cpp -o IvrAudio.o
> IvrAudio.cpp: In function ‘PyObject* IvrAudioFile_open(IvrAudioFile*, 
> PyObject*)’:
> IvrAudio.cpp:70: warning: deprecated conversion from string constant to 
> ‘char*’
 > ...
some time ago I fixed most of SEMS to be const correct with string 
constants, but in ivr/py_sems the culprit is the Python libs.

the other exception is the binrpcctrl module, where I did not know how 
to fix the macros to be const correct with the static strings, without 
being so silly and copy every string on initialization.

> 
> finally, i get these from debian dpkg-shlibdeps:
> 
> dpkg-shlibdeps: warning: debian/usr/lib/sems/plug-in/session_timer.so 
> shouldn't be linked with libdl.so.2 (it uses none of its symbols).
> dpkg-shlibdeps: warning: debian/usr/lib/sems/plug-in/adpcm.so shouldn't be 
> linked with libdl.so.2 (it uses none of its symbols).
> dpkg-shlibdeps: warning: debian/usr/lib/sems/plug-in/adpcm.so shouldn't be 
> linked with libpthread.so.0 (it uses none of its symbols).
 >...
I would suggest to change to using autotools and ltdl. Maintaining all 
those Makefiles and doing that correctly is just too much work for nothing.

Stefan


> -- juha
> _______________________________________________
> Semsdev mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/semsdev

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to