Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: intltool error

  1. #11

    Default Re: intltool error

    done that new message:
    message.cpp:355: error: free was not declared in this scope
    make[1]: *** [message.lo] Error 1
    make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/src'
    make: *** [all-recursive] Error 1
    do i have something wrong with my linux because i have this many errors?
    also where do i get the man pages from? ther not in my repository (in english) theres other languages like spanish and french.

  2. #12
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,488
    Blog Entries
    15

    Default Re: intltool error

    Quote Originally Posted by DrEaMeR23
    done that new message:
    >
    > message.cpp:355: error: free was not declared in this scope
    > make[1]: *** [message.lo] Error 1
    > make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/src'
    > make: *** [all-recursive] Error 1


    do i have something wrong with my linux because i have this many
    errors?
    also where do i get the man pages from? ther not in my repository (in
    english) theres other languages like spanish and french.

    Hi
    I would say you need to add (but I'm sure L R Nix will pipe in if not,
    I'm sure her ears are starting to burn again);

    #include <cstdlib>

    No nothing wrong, it's the new gcc version. Takes a while for the
    developers to catch up :-)

    Most packages include the man pages, else google is your friend

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 1 day 17:48, 2 users, load average: 0.75, 0.22, 0.14
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  3. #13

    Default Re: intltool error

    Guess what... new error a long one this time:

    xml2cpp.cpp: In function void usage(const char*):
    xml2cpp.cpp:58: error: exit was not declared in this scope
    xml2cpp.cpp: In function int char_to_atomic_type(char):
    xml2cpp.cpp:78: error: strchr was not declared in this scope
    xml2cpp.cpp: In function const char* atomic_type_to_string(char):
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:102: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp: In function void _parse_signature(const std::string&, std::string&, unsigned int&):
    xml2cpp.cpp:135: error: exit was not declared in this scope
    xml2cpp.cpp:171: error: exit was not declared in this scope
    xml2cpp.cpp: In function void generate_proxy(DBus:ml:ocument&, const char*):
    xml2cpp.cpp:201: error: exit was not declared in this scope
    xml2cpp.cpp: In function void generate_adaptor(DBus:ml:ocument&, const char*):
    xml2cpp.cpp:504: error: exit was not declared in this scope
    xml2cpp.cpp: In function int main(int, char**):
    xml2cpp.cpp:927: error: strncmp was not declared in this scope
    make[1]: *** [xml2cpp.o] Error 1
    make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    make: *** [all-recursive] Error 1
    how do i work out the code line (#include...)? so i dont have to keep bugging you. is it possible to change it from the .tar.gz to a .rpm? so i dont have all these make problems?

  4. #14
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,488
    Blog Entries
    15

    Default Re: intltool error

    Quote Originally Posted by DrEaMeR23
    Guess what... new error a long one this time:

    > xml2cpp.cpp: In function void usage(const char*):
    > xml2cpp.cpp:58: error: exit was not declared in this scope
    > xml2cpp.cpp: In function int char_to_atomic_type(char):
    > xml2cpp.cpp:78: error: strchr was not declared in this scope
    > xml2cpp.cpp: In function const char* atomic_type_to_string(char):
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:102: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp: In function void _parse_signature(const std::string&,
    > std::string&, unsigned int&):
    > xml2cpp.cpp:135: error: exit was not declared in this scope
    > xml2cpp.cpp:171: error: exit was not declared in this scope
    > xml2cpp.cpp: In function void generate_proxy(DBus:ml:ocument&,
    > const char*):
    > xml2cpp.cpp:201: error: exit was not declared in this scope
    > xml2cpp.cpp: In function void generate_adaptor(DBus:ml:ocument&,
    > const char*):
    > xml2cpp.cpp:504: error: exit was not declared in this scope
    > xml2cpp.cpp: In function int main(int, char**):
    > xml2cpp.cpp:927: error: strncmp was not declared in this scope
    > make[1]: *** [xml2cpp.o] Error 1
    > make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    > make: *** [all-recursive] Error 1


    how do i work out the code line (#include...)? so i dont have to keep
    bugging you. is it possible to change it from the .tar.gz to a .rpm? so
    i dont have all these make problems?
    Hi
    So I see the strcmp error again so that's cstring, cstdlib (maybe) and
    do you have the xml2 devel files installed?

    The only way you can do that is feedback to the developer of all the
    errors

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 1 day 18:29, 2 users, load average: 0.16, 0.19, 0.18
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  5. #15

    Default Re: intltool error

    yes i do have xml2-devel installed. when you say cstdlib do you mean put in #include <cstdlib> like before?

    I have done that and... more errors

    xml2cpp.cpp: In function int char_to_atomic_type(char):
    xml2cpp.cpp:79: error: strchr was not declared in this scope
    xml2cpp.cpp: In function const char* atomic_type_to_string(char):
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp:103: warning: deprecated conversion from string constant to char*
    xml2cpp.cpp: In function int main(int, char**):
    xml2cpp.cpp:928: error: strncmp was not declared in this scope
    make[1]: *** [xml2cpp.o] Error 1
    make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    make: *** [all-recursive] Error 1
    thanks for all the help so far

  6. #16
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,488
    Blog Entries
    15

    Default Re: intltool error

    Quote Originally Posted by DrEaMeR23
    yes i do have xml2-devel installed. when you say cstdlib do you mean put
    in #include <cstdlib> like before?

    I have done that and... more errors

    > xml2cpp.cpp: In function int char_to_atomic_type(char):
    > xml2cpp.cpp:79: error: strchr was not declared in this scope
    > xml2cpp.cpp: In function const char* atomic_type_to_string(char):
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp:103: warning: deprecated conversion from string constant
    > to char*
    > xml2cpp.cpp: In function int main(int, char**):
    > xml2cpp.cpp:928: error: strncmp was not declared in this scope
    > make[1]: *** [xml2cpp.o] Error 1
    > make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    > make: *** [all-recursive] Error 1


    thanks for all the help so far
    Hi
    Yes, same as before, but also the <cstring> as so perfectly described by
    the coding guru L R Nix.

    Code:
    #include <cstdlib>
    #include <cstring>
    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 1 day 21:32, 2 users, load average: 0.08, 0.15, 0.25
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  7. #17
    Join Date
    Jun 2008
    Location
    Oklahoma, US
    Posts
    822

    Default Re: intltool error

    > > to ‘char*’
    > > xml2cpp.cpp:103: warning: deprecated conversion from string constant


    Warnings may be ignored.

    You're doing good, work through the errors as you encounter them. Again,
    these won't occur if you use an older compiler... but the older compilers
    have bugs and problems, so you're better off using the new compiler.

    May I ask... what is it that you're trying to compile? And is it already
    available in YaST?

    Loni

    --
    L R Nix
    lornix@lornix.com
    coding guru now huh?


  8. #18

    Default Re: intltool error

    its still saying the
    xml2cpp.cpp:104: warning: deprecated conversion from string constant to char*
    but then it carries on. new error now.
    introspect.cpp:57: error: strcmp was not declared in this scope
    make[1]: *** [introspect.o] Error 1
    make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    make: *** [all-recursive] Error 1

  9. #19

    Default Re: intltool error

    i used #include <cstdlib> to fix that because its the strncmp thingy. but something else has arisen
    introspect.cpp:59: error: strcmp was not declared in this scope
    make[1]: *** [introspect.o] Error 1
    make[1]: Leaving directory `/home/rory/DLDI/GUI/dbus-c++/tools'
    make: *** [all-recursive] Error 1

  10. #20
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,488
    Blog Entries
    15

    Default Re: intltool error

    Quote Originally Posted by L R Nix
    > > to ‘char*’
    > > xml2cpp.cpp:103: warning: deprecated conversion from string constant


    Warnings may be ignored.

    You're doing good, work through the errors as you encounter them.
    Again, these won't occur if you use an older compiler... but the older
    compilers have bugs and problems, so you're better off using the new
    compiler.

    May I ask... what is it that you're trying to compile? And is it
    already available in YaST?

    Loni
    Hi
    Its a prerequisite to some other app the OP is trying to compile (I had
    a look no rpms...) It finally got the better of me, so I did download
    myself... and have come up with the following on this system;

    Code:
    svn co
    https://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus
    dbus-c++
    
    cd dbus-c++/
    
    cat /usr/share/aclocal/libtool.m4 > aclocal.m4
    
    ../autogen.sh
    Running libtoolize...
    Running aclocal...
    Running autoheader...
    Running automake...
    configure.ac:6: installing `./install-sh'
    configure.ac:6: installing `./missing'
    examples/echo/Makefile.am: installing `./depcomp'
    Running autoconf...
    Autogen done, now you can ./configure
    
    ../configure --enable-glib --prefix=/usr
    
    Error 1
    vi src/object.cpp
    #include <cstring>
    
    Error 2
    vi src/types.cpp
    
    #include <cstring>
    #include <cstdlib>
    
    Error 3
    vi src/message.cpp
    
    #include <cstdlib>
    
    Error 4
    vi src/glib-integration.cpp
    
    #include "eventloop.h"
    #include "dispatcher.h"
    
    Error 5
    vi tools/xml2cpp.cpp
    
    #include <cstdlib>
    #include <cstring>
    Change line 86 static struct { char type; const char* name; } atos[] =
    
    Error 6
    vi tools/introspect.cpp
    #include <cstring>
    
    Error 7
    vi examples/echo/echo-server.cpp
    #include "netdb.h"
    
    make
    
    Left with the following warning;
    
    dispatcher.cpp:69: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is
    deprecated (declared
    at /usr/include/dbus-1.0/dbus/dbus-connection.h:370)
    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 1 day 22:57, 2 users, load average: 0.05, 0.58, 0.57
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •