Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Can not seem to compile

Help
lppa2006
2010-11-18
2013-04-30
  • lppa2006
    lppa2006
    2010-11-18

    I have build-essentials, all of the latest updates for ubuntu server (10.04), and for some reason I just can not seem to compile and install icegen (or anything it seems). All i get when i run "Make" is:

    Whats really frustrating is i had no problem installing it the first time around, now that i decided to reinstall ubuntu it wont work.. it worked with ubuntu 10.10… then i reinstalled 10.10 and it didnt work so decided to try 10.04, with no luck obviously.

    make  all-recursive
    make[1]: Entering directory `/storage/icegenerator-0.5.5-pre2'
    Making all in src
    make[2]: Entering directory `/storage/icegenerator-0.5.5-pre2/src'
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT circular.o -MD -MP -MF ".deps/circular.Tpo" -c -o circular.o circular.cpp; \
            then mv -f ".deps/circular.Tpo" ".deps/circular.Po"; else rm -f ".deps/circular.Tpo"; exit 1; fi
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp:114: warning: deprecated conversion from string constant to âchar*â
    circular.cpp: In member function âcDoubleLinkedItem* cCircularList::Remove()â:
    circular.cpp:325: warning: suggest explicit braces to avoid ambiguous âelseâ
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.cpp; \
            then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; fi
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT streamer.o -MD -MP -MF ".deps/streamer.Tpo" -c -o streamer.o streamer.cpp; \
            then mv -f ".deps/streamer.Tpo" ".deps/streamer.Po"; else rm -f ".deps/streamer.Tpo"; exit 1; fi
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT sgnl_handler.o -MD -MP -MF ".deps/sgnl_handler.Tpo" -c -o sgnl_handler.o sgnl_handler.cpp; \
            then mv -f ".deps/sgnl_handler.Tpo" ".deps/sgnl_handler.Po"; else rm -f ".deps/sgnl_handler.Tpo"; exit 1; fi
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT synch.o -MD -MP -MF ".deps/synch.Tpo" -c -o synch.o synch.cpp; \
            then mv -f ".deps/synch.Tpo" ".deps/synch.Po"; else rm -f ".deps/synch.Tpo"; exit 1; fi
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT config.o -MD -MP -MF ".deps/config.Tpo" -c -o config.o config.cpp; \
            then mv -f ".deps/config.Tpo" ".deps/config.Po"; else rm -f ".deps/config.Tpo"; exit 1; fi
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    config.cpp:63: warning: deprecated conversion from string constant to âchar*â
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \
            then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
    main.cpp: In function âint main(int, char**)â:
    main.cpp:284: warning: ignoring return value of âint chdir(const char*)â, declared with attribute warn_unused_result
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT selector.o -MD -MP -MF ".deps/selector.Tpo" -c -o selector.o selector.cpp; \
            then mv -f ".deps/selector.Tpo" ".deps/selector.Po"; else rm -f ".deps/selector.Tpo"; exit 1; fi
    selector.cpp: In function âvoid* selector(void*)â:
    selector.cpp:90: warning: suggest explicit braces to avoid ambiguous âelseâ
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT data_streamer.o -MD -MP -MF ".deps/data_streamer.Tpo" -c -o data_streamer.o data_streamer.cpp; \
            then mv -f ".deps/data_streamer.Tpo" ".deps/data_streamer.Po"; else rm -f ".deps/data_streamer.Tpo"; exit 1; fi
    In file included from data_streamer.cpp:50:
    data_streamer.h:37:1: warning: "INTERNAL_BUF_SIZE" redefined
    In file included from globals.h:40,
                     from data_streamer.cpp:49:
    circular.h:57:1: warning: this is the location of the previous definition
    In file included from data_streamer.cpp:51:
    meta_parser.h:54:1: warning: "INTERNAL_BUF_SIZE" redefined
    In file included from data_streamer.cpp:50:
    data_streamer.h:37:1: warning: this is the location of the previous definition
    data_streamer.cpp: In function âvoid* data_streamer(void*)â:
    data_streamer.cpp:103: warning: suggest parentheses around assignment used as truth value
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT data_server.o -MD -MP -MF ".deps/data_server.Tpo" -c -o data_server.o data_server.cpp; \
            then mv -f ".deps/data_server.Tpo" ".deps/data_server.Po"; else rm -f ".deps/data_server.Tpo"; exit 1; fi
    data_server.cpp: In function âvoid* data_server(void*)â:
    data_server.cpp:128: warning: suggest explicit braces to avoid ambiguous âelseâ
    data_server.cpp:189: warning: ignoring return value of âssize_t write(int, const void*, size_t)â, declared with attribute warn_unused_result
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT player.o -MD -MP -MF ".deps/player.Tpo" -c -o player.o player.cpp; \
            then mv -f ".deps/player.Tpo" ".deps/player.Po"; else rm -f ".deps/player.Tpo"; exit 1; fi
    if g++ -DHAVE_CONFIG_H -I. -I. -I..     -ansi -pedantic -pipe -Wall -O3 -pthread -pthread   -MT meta_parser.o -MD -MP -MF ".deps/meta_parser.Tpo" -c -o meta_parser.o meta_parser.cpp; \
            then mv -f ".deps/meta_parser.Tpo" ".deps/meta_parser.Po"; else rm -f ".deps/meta_parser.Tpo"; exit 1; fi
    g++  -ansi -pedantic -pipe -Wall -O3 -pthread -pthread    -lrt -lshout   -lid3 -lz -lstdc++ -o icegenerator  circular.o log.o streamer.o sgnl_handler.o synch.o config.o main.o selector.o data_streamer.o data_server.o player.o meta_parser.o  -lid3 -lz -lstdc++
    make[2]: Leaving directory `/storage/icegenerator-0.5.5-pre2/src'
    make[2]: Entering directory `/storage/icegenerator-0.5.5-pre2'
    make[2]: Leaving directory `/storage/icegenerator-0.5.5-pre2'
    make[1]: Leaving directory `/storage/icegenerator-0.5.5-pre2'
    
     
  • Actually this output shows that the compilation has succeeded.
    What is the problem?

     
  • Hi,

    sorry for my late answer, it was not possible for me to answer in past days.

    Everything is fine with your build … the problem is that IceG sources are very old, and the newest versions of GCC complain about not "properly clean" code. That's all.

    Tony.

     
  • lppa2006
    lppa2006
    2010-11-26

    hehe yeah i had finally figured it out, im kind of new to linux so when compile errors and warnings start popping up i automatically assume the worst. Luckily though, I have at least one friend who is a NIX guy and he looked things over and said i was good to go. Silly me never bothered to even start the program and just test it if it worked, done basically the same thing earlier when i thought icegen wasn't loading my playlists, lol so i gave up on it and used the "pth" option, until one day i tried it again and it was working. Although in my defense some of the play lists weren't loading because my playlist maker converted files names in the playlist to lower case and i never noticed it when i was comparing play lists between machines, and the only thing i completely despise in Linux is the case sensitivity for file names.

    Anyway thank you for the reply, even if it was a little bit late on timing,