Menu

#51 Fix for Sun C 5.5 compiler

open
None
5
2003-12-21
2003-11-28
No

This is the patch for item

[ 790485 ] Fix for Sun C 5.5 compiler

Discussion

  • Richard van den Berg

    Patch to make id3lib compile using the Sun Compiler

     
  • Richard van den Berg

    Logged In: YES
    user_id=330646

    After applying this patch, libid3.so is created. But still
    cannot be used:

    Undefined first referenced
    symbol in file
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char>
    >&std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >::assign(const
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >&,unsigned,unsigned)
    ../src/.libs/libid3.so
    __type_1
    std::copy<ID3_Field**,ID3_Field**>(__type_0,__type_0,__type_1)
    ../src/.libs/libid3.so
    __rwstd::__string_ref<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >*std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::__getRep(unsigned,unsigned) ../src/.libs/libid3.so
    const __type_0&dami::min<int>(const __type_0&,const
    __type_0&) ../src/.libs/libid3.so
    void std::list<ID3_Frame*,std::allocator<ID3_Frame*>
    >::__deallocate_buffers() ../src/.libs/libid3.so
    const __type_0&dami::mid<unsigned>(const __type_0&,const
    __type_0&,const __type_0&) ../src/.libs/libid3.so
    void std::vector<ID3_Field*,std::allocator<ID3_Field*>
    >::__insert_aux(ID3_Field**,ID3_Field*const&)
    ../src/.libs/libid3.so
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >::__nullref
    ../src/.libs/libid3.so
    [Hint: static member std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::__nullref must be defined in the program]

    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char>
    >&std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char>
    >::replace(unsigned,unsigned,unsigned,unsigned char)
    ../src/.libs/libid3.so
    std::list<ID3_Frame*,std::allocator<ID3_Frame*> >::iterator
    std::list<ID3_Frame*,std::allocator<ID3_Frame*>
    >::erase(std::list<ID3_Frame*,std::allocator<ID3_Frame*>
    >::iterator,std::list<ID3_Frame*,std::allocator<ID3_Frame*>
    >::iterator) ../src/.libs/libid3.so
    unsigned char*std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::replace(unsigned,unsigned,const unsigned
    char*,unsigned,unsigned,unsigned) ../src/.libs/libid3.so
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char>
    >&std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >::operator=(const
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >&) ../src/.libs/libid3.so
    void std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::__clone(unsigned) ../src/.libs/libid3.so
    const __type_0&dami::min<unsigned>(const __type_0&,const
    __type_0&) ../src/.libs/libid3.so
    void std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::__clone() ../src/.libs/libid3.so
    std::basic_string<unsigned char,std::char_traits<unsigned
    char>,std::allocator<unsigned char> >::basic_string(const
    unsigned char*,unsigned,const std::allocator<unsigned
    char>&) ../src/.libs/libid3.so
    unsigned std::basic_string<unsigned
    char,std::char_traits<unsigned char>,std::allocator<unsigned
    char> >::copy(unsigned char*,unsigned,unsigned)const
    ../src/.libs/libid3.so
    ld: fatal: Symbol referencing errors. No output written to
    .libs/id3info

     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-21
    • assigned_to: nobody --> t1mpy
     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-22

    Logged In: YES
    user_id=564388

    The removal of -Wall i would do using configure..
    Is there a standard test for this compiler?
    As for the semicolons, i will test if this patch works for other
    compilers as well.

    The problem in the followup is when you use id3lib in a test
    program? Or in one of the programs using id3lib listed on
    http://www.id3lib.org/?

     
  • Richard van den Berg

    Logged In: YES
    user_id=330646

    The problem is with linking the id3info program that comes
    with the id3lib source.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.