Re: [Opalvoip-user] ptlib static library problems
Brought to you by:
csoutheren,
rjongbloed
From: Vyacheslav F. <v.f...@or...> - 2009-06-26 15:00:18
|
The following script is OK for me to build t38modem statically against opal/ptlib only (not against system libs): ---------------------- #!/bin/bash export PTLIBDIR=`pwd`/ptlib-2.6.3 export OPALDIR=`pwd`/opal-3.6.3 cd $PTLIBDIR ./configure --disable-shared make optnoshared cd .. cd $OPALDIR ./configure --disable-shared make opt ln -s libopal_s.a lib_linux_x86/libopal.a cd .. cd t38modem-1.1.0 # # Linker option -static allow to build t38modem statically against # system libs too. It was OK with OpenH323 on RH73 but currently it # is fail (Segmentation fault) with OPAL on RHE4 :( # #grep "LDFLAGS+=-static" Makefile || echo "LDFLAGS+=-static" >> Makefile make USE_OPAL=1 USE_UNIX98_PTY=1 USE_LEGACY_PTY=1 optnoshared ---------------------- $ cd t38modem-1.1.0 $ ldd ./obj_linux_x86_opal/t38modem libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00ab2000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00cb5000) libssl.so.4 => /lib/libssl.so.4 (0x0013f000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x05e1b000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00d8c000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00ce0000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00ba4000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00bb9000) libresolv.so.2 => /lib/libresolv.so.2 (0x00d77000) libdl.so.2 => /lib/libdl.so.2 (0x00a75000) libz.so.1 => /usr/lib/libz.so.1 (0x00aa0000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x003b7000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00af3000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00175000) libm.so.6 => /lib/tls/libm.so.6 (0x00a7b000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00de4000) libc.so.6 => /lib/tls/libc.so.6 (0x0094a000) /lib/ld-linux.so.2 (0x00931000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d47000) libltdl.so.3 => /usr/lib/libltdl.so.3 (0x00111000) Giedrius Augys wrote: > Hello, > > I'm trying compile t38modem statically, but I'm receiving warnings: > > g++ -o obj_linux_x86_opal/t38modem -Os -Wall -Wextra -Winit-self > -Wstrict-aliasing=2 -Wfloat-equal -Wno-comment -Wno-missing-field-init > ializers -Wno-unused -fPIC -DPTRACING=1 -D_REENTRANT -fno-exceptions > -I/home/eryx/projects/t38modem/ptlib/include > -I/home/eryx/projects/t38modem/opal/incl > ude -L/home/eryx/projects/t38modem/ptlib/lib_linux_x86 > -L/home/eryx/projects/t38modem/opal/lib_linux_x86 -static > ./obj_linux_x86_opal/pmutils.o ./obj_li > nux_x86_opal/dle.o ./obj_linux_x86_opal/pmodem.o > ./obj_linux_x86_opal/pmodemi.o ./obj_linux_x86_opal/drivers.o > ./obj_linux_x86_opal/t30tone.o ./obj_linu > x_x86_opal/hdlc.o ./obj_linux_x86_opal/t30.o > ./obj_linux_x86_opal/fcs.o ./obj_linux_x86_opal/pmodeme.o > ./obj_linux_x86_opal/enginebase.o ./obj_linux_x86 > _opal/t38engine.o ./obj_linux_x86_opal/audio.o > ./obj_linux_x86_opal/drv_pty.o ./obj_linux_x86_opal/main_process.o > ./obj_linux_x86_opal/ifptranscoder.o . > /obj_linux_x86_opal/ifpmediafmt.o ./obj_linux_x86_opal/opalutils.o > ./obj_linux_x86_opal/modemep.o ./obj_linux_x86_opal/modemstrm.o > ./obj_linux_x86_opal/h > 323cap.o ./obj_linux_x86_opal/h323ep.o ./obj_linux_x86_opal/sipep.o > ./obj_linux_x86_opal/manager.o -lopal -lpt -lpthread -lexpat -lresolv > -ldl -lc > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(udll.o): In > function `PDynaLink::Open(PString const&)': > udll.cxx:(.text+0x2cd): warning: Using 'dlopen' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for li > nking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(tlib.o): In > function `PProcess::GetGroupName() const': > tlib.cxx:(.text+0x2bfe): warning: Using 'getgrgid_r' in statically > linked applications requires at runtime the shared libraries from the > glibc version used f > or linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(tlib.o): In > function `PProcess::SetGroupName(PString const&, bool)': > tlib.cxx:(.text+0x2b57): warning: Using 'getgrnam_r' in statically > linked applications requires at runtime the shared libraries from the > glibc version used f > or linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(tlib.o): In > function `PProcess::SetUserName(PString const&, bool)': > tlib.cxx:(.text+0x32f9): warning: Using 'getpwnam_r' in statically > linked applications requires at runtime the shared libraries from the > glibc version used f > or linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(tlib.o): In > function `PProcess::GetUserName() const': > tlib.cxx:(.text+0x2c76): warning: Using 'getpwuid_r' in statically > linked applications requires at runtime the shared libraries from the > glibc version used f > or linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PIPSocket::Address::FromString(PString const&)': > sockets.cxx:(.text+0x1778): warning: Using 'getaddrinfo' in statically > linked applications requires at runtime the shared libraries from the > glibc version us > ed for linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PHostByAddr::GetHost(PIPSocket::Address const&)': > sockets.cxx:(.text+0x40f9): warning: Using 'gethostbyaddr_r' in > statically linked applications requires at runtime the shared libraries > from the glibc versio > n used for linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PSocket::GetNameByProtocol(unsigned short)': > sockets.cxx:(.text+0x25bd): warning: Using 'getprotobynumber' in > statically linked applications requires at runtime the shared libraries > from the glibc versi > on used for linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PSocket::GetProtocolByName(PString const&)': > sockets.cxx:(.text+0x5543): warning: Using 'getprotobyname' in > statically linked applications requires at runtime the shared libraries > from the glibc version > used for linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PSocket::GetPortByService(char const*, PString const&)': > sockets.cxx:(.text+0x24ef): warning: Using 'getservbyname' in statically > linked applications requires at runtime the shared libraries from the > glibc version > used for linking > /home/eryx/projects/t38modem/ptlib/lib_linux_x86/libpt.a(sockets.o): In > function `PSocket::GetServiceByPort(char const*, unsigned short)': > sockets.cxx:(.text+0x2425): warning: Using 'getservbyport' in statically > linked applications requires at runtime the shared libraries from the > glibc version used for linking > > > Maybe you can help me to solve the problem, thanks > > -- > Pagarbiai / Best Regards, > Giedrius > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Opalvoip-user mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-user ******************************************************************************************************* This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. Orange Business Services shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. ******************************************************************************************************* |