Results 1 to 14 of 14

Thread: Weird compiler errors

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Weird compiler errors

    Quote Originally Posted by jacek
    Which are those lines number 651 and 653?
    Line 44 is line 651 in code. Please help!!!
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird compiler errors

    Qt Code:
    1. openssladapter.cc:651: error: invalid conversion from `unsigned char**` to `const unsigned char**`
    2. [COLOR=#666666][/COLOR]
    To copy to clipboard, switch view to plain text mode 
    What sounds very weird is not the code, it's the message outputted by gcc! AFAIK there is no need of any cast to convert T** to const T**... Looks like troubles are coming from your compiler...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Weird compiler errors

    Quote Originally Posted by fullmetalcoder
    Qt Code:
    1. openssladapter.cc:651: error: invalid conversion from `unsigned char**` to `const unsigned char**`
    To copy to clipboard, switch view to plain text mode 
    What sounds very weird is not the code, it's the message outputted by gcc! AFAIK there is no need of any cast to convert T** to const T**... Looks like troubles are coming from your compiler...
    I am aware of that, are there any guidelines/ideas, what could be wrong???
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird compiler errors

    I guess it's the problem with g++ 3.3.6. Following program compiles without any problems on g++ 4.1.2:
    Qt Code:
    1. void func( const unsigned char **c )
    2. {
    3. }
    4.  
    5. int main()
    6. {
    7. unsigned char *a = 0;
    8. func( &a );
    9. return 0;
    10. }
    To copy to clipboard, switch view to plain text mode 
    while g++ 3.3.6 reports the same error as in libjingle code.

    Read this:https://sourceforge.net/tracker/inde...94&atid=794428

  5. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Weird compiler errors

    Where did you get 4.1.2 version? I cannot find it anywhere. I downloaded the latest version of gcc, same shit.
    Qt 5.3 Opensource & Creator 3.1.2

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird compiler errors

    Quote Originally Posted by MarkoSan
    Where did you get 4.1.2 version?
    It might be a snapshot, not an official release, but it's the default compiler in the Th release of PLD Linux (actually Th is still under development).

    I downloaded the latest version of gcc, same shit.
    Try g++ 3.3.5 or patch libjingle sources.

  7. #7
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Weird compiler errors

    I've downloaded tha patch file for libjingle, how do I now pach the libjingle source in the source tree?
    Qt 5.3 Opensource & Creator 3.1.2

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird compiler errors

    Quote Originally Posted by MarkoSan
    I've downloaded tha patch file for libjingle, how do I now pach the libjingle source in the source tree?
    See `man patch`.

    In short: Make sure that the main directory of libjingle sources is the current one and type:
    patch -p1 < /path/to/patch/something.patch

  9. #9
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Weird compiler errors

    I've upgraded to gcc ver 4.1.1., now I got this shit:
    Qt Code:
    1. make[4]: Entering directory `/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/services/gtalk/libjingle-0.3.0/talk/base'
    2. if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/work/include -DPOSIX -g -O2 -MT openssladapter.lo -MD -MP -MF ".deps/openssladapter.Tpo" -c -o openssladapter.lo openssladapter.cc; \
    3. then mv -f ".deps/openssladapter.Tpo" ".deps/openssladapter.Plo"; else rm -f ".deps/openssladapter.Tpo"; exit 1; fi
    4. ../../talk/base/stringutils.h:258: error: extra qualification 'cricket::Traits<char>::' on member 'empty_str'
    5. openssladapter.cc: In member function 'bool cricket::OpenSSLAdapter::SSLPostConnectionCheck(SSL*, const char*)':
    6. openssladapter.cc:651: error: invalid conversion from 'unsigned char**' to 'const unsigned char**'
    7. openssladapter.cc:651: error: initializing argument 2 of 'ASN1_VALUE* ASN1_item_d2i(ASN1_VALUE**, const unsigned char**, long int, const ASN1_ITEM*)'
    8. openssladapter.cc:653: error: invalid conversion from 'unsigned char**' to 'const unsigned char**'
    9. openssladapter.cc: In static member function 'static SSL_CTX* cricket::OpenSSLAdapter::SetupSSLContext()':
    10. openssladapter.cc:775: error: invalid conversion from 'unsigned char**' to 'const unsigned char**'
    11. openssladapter.cc:775: error: initializing argument 2 of 'X509* d2i_X509(X509**, const unsigned char**, long int)'
    12. make[4]: *** [openssladapter.lo] Error 1
    13. make[4]: Leaving directory `/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/services/gtalk/libjingle-0.3.0/talk/base'
    14. make[3]: *** [all-recursive] Error 1
    15. make[3]: Leaving directory `/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/services/gtalk/libjingle-0.3.0/talk'
    16. make[2]: *** [all-recursive] Error 1
    17. make[2]: Leaving directory `/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/services/gtalk/libjingle-0.3.0'
    18. make[1]: *** [all] Error 2
    19. make[1]: Leaving directory `/home/frelihm/projects/Qtopia/PopupMenu/source/fonav/services/gtalk/libjingle-0.3.0'
    20. make: *** [libjingle] Error 1
    To copy to clipboard, switch view to plain text mode 

    I am desperate!!!!
    Qt 5.3 Opensource & Creator 3.1.2

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Weird compiler errors

    Apply that patch or downgrade to gcc 3.3.5.

Similar Threads

  1. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30
  2. Qt 4.1.0 - static examples run with errors!
    By Elder Orb in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2006, 09:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.