Gsmlib failed to compiled

Nick Hudson nhudson at lunar-linux.org
Sun Apr 4 13:11:55 GMT 2004


Compiler? Kernel version? kernel header version??

Nick



On Sun, 2004-04-04 at 21:49 +0200, Sébastien Cérèze wrote:

> Hi,
> 
> I tried to install gnome-bluetooth but this modules failed to compile.
> I attached the compile log.
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -D_REENTRANT -O3
> -mcpu=athlon-xp -march=athlon-xp -c gsm_util.cc -MT gsm_util.lo -MD -MP
> -MF .deps/gsm_util.TPlo  -fPIC -DPIC -o .libs/gsm_util.lo
> In file included from gsm_util.cc:18:
> ../gsmlib/gsm_sysdep.h:28:1: warning: "alloca" redefined
> In file included from /usr/include/stdlib.h:576,
>                  from /usr/include/c++/3.3.3/cstdlib:52,
>                  from /usr/include/c++/3.3.3/bits/stl_algobase.h:67,
>                  from /usr/include/c++/3.3.3/memory:54,
>                  from /usr/include/c++/3.3.3/string:48,
>                  from ../gsmlib/gsm_util.h:16,
>                  from gsm_util.cc:17:
> /usr/include/alloca.h:36:1: warning: this is the location of the
> previous definition
> In file included from /usr/include/c++/3.3.3/backward/strstream:51,
>                  from gsm_util.cc:23:
> /usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning:
> #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section
> 17.4.1.2 of the C++ standard. Examples include substituting the <X>
> header for the <X.h> header for C++ includes, or <sstream> instead of
> the deprecated header <strstream.h>. To disable this warning use
> -Wno-deprecated.
> gsm_util.cc:35:1: warning: "__USE_GNU" redefined
> In file included from /usr/include/libintl.h:24,
>                  from ../gsmlib/gsm_nls.h:26,
>                  from gsm_util.cc:16:
> /usr/include/features.h:235:1: warning: this is the location of the
> previous definition
> gsm_util.cc:36:1: warning: "_GNU_SOURCE" redefined
> <command line>:5:1: warning: this is the location of the previous
> definition
> gsm_util.cc: In function `std::string
>    gsmlib::gsmToLatin1(std::basic_string<char, std::char_traits<char>,
>    std::allocator<char> >)':
> gsm_util.cc:106: warning: array subscript has type `char'
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -D_REENTRANT -O3
> -mcpu=athlon-xp -march=athlon-xp -c gsm_util.cc -MT gsm_util.lo -MD -MP
> -MF .deps/gsm_util.TPlo -o gsm_util.o >/dev/null 2>&1
> mv -f .libs/gsm_util.lo gsm_util.lo
> source='gsm_unix_serial.cc' object='gsm_unix_serial.lo' libtool=yes \
> depfile='.deps/gsm_unix_serial.Plo'
> tmpdepfile='.deps/gsm_unix_serial.TPlo' \
> depmode=gcc3 /bin/sh ../scripts/depcomp \
> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
> -I..    -Wall -D_REENTRANT -O3 -mcpu=athlon-xp -march=athlon-xp -c -o
> gsm_unix_serial.lo `test -f 'gsm_unix_serial.cc' || echo
> './'`gsm_unix_serial.cc
> rm -f .libs/gsm_unix_serial.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -D_REENTRANT -O3
> -mcpu=athlon-xp -march=athlon-xp -c gsm_unix_serial.cc -MT
> gsm_unix_serial.lo -MD -MP -MF .deps/gsm_unix_serial.TPlo  -fPIC -DPIC
> -o .libs/gsm_unix_serial.lo
> In file included from /usr/include/c++/3.3.3/backward/strstream:51,
>                  from gsm_unix_serial.cc:22:
> /usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning:
> #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section
> 17.4.1.2 of the C++ standard. Examples include substituting the <X>
> header for the <X.h> header for C++ includes, or <sstream> instead of
> the deprecated header <strstream.h>. To disable this warning use
> -Wno-deprecated.
> gsm_unix_serial.cc: In member function `virtual void
>    gsmlib::UnixSerialPort::putBack(unsigned char)':
> gsm_unix_serial.cc:98: error: `assert' undeclared (first use this
> function)
> gsm_unix_serial.cc:98: error: (Each undeclared identifier is reported
> only once
>    for each function it appears in.)
> gsm_unix_serial.cc: In member function `virtual void
>    gsmlib::UnixSerialPort::putLine(std::basic_string<char,
>    std::char_traits<char>, std::allocator<char> >, bool)':
> gsm_unix_serial.cc:372: error: `assert' undeclared (first use this
> function)
> make[2]: *** [gsm_unix_serial.lo] Erreur 1
> make[2]: Leaving directory `/usr/src/gsmlib-1.10/gsmlib'
> make[1]: *** [all-recursive] Erreur 1
> make[1]: Leaving directory `/usr/src/gsmlib-1.10'
> make: *** [all] Erreur 2
> Creating /var/log/lunar/compile/gsmlib-1.10.bz2
> ! Problem detected during BUILD
> 
> 
> Thanks.
> 
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://dbguin.lunar-linux.org/mailman/listinfo/lunar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lunar-linux.org/pipermail/lunar/attachments/20040404/d5142760/attachment.bin


More information about the Lunar mailing list