OpenWrt Forum Archive

Topic: cant run icegenerator

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

i managed to compile and install successfully but got a segmentation fault

ome/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls    --bindir="/bin" --sysconfdir="/etc" --with-id3; fi; )
configure: loading site script /home/nash/Downloads/openwrt/attitude_adjustment/include/site/mips-openwrt-linux-uclibc
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-openwrt-linux-strip... mips-openwrt-linux-uclibc-strip
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mips-openwrt-linux-uclibc-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of mips-openwrt-linux-uclibc-gcc... gcc3
checking for mips-openwrt-linux-gcc... (cached) mips-openwrt-linux-uclibc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mips-openwrt-linux-uclibc-gcc accepts -g... (cached) yes
checking for mips-openwrt-linux-uclibc-gcc option to accept ANSI C... (cached) none needed
checking dependency style of mips-openwrt-linux-uclibc-gcc... (cached) gcc3
checking for mips-openwrt-linux-g++... mips-openwrt-linux-uclibc-g++
checking whether we are using the GNU C++ compiler... yes
checking whether mips-openwrt-linux-uclibc-g++ accepts -g... yes
checking dependency style of mips-openwrt-linux-uclibc-g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking whether mkdir accepts -p... yes


POSIX Threads
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... mips-openwrt-linux-uclibc-gcc
checking how to run the C++ preprocessor... mips-openwrt-linux-uclibc-g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create... yes
checking for pthread_join... yes


I/O functions
checking for ANSI C header files... (cached) yes
checking whether stat file-mode macros are broken... no
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for open... yes
checking for read... yes
checking for write... yes
checking for close... yes
checking for printf... yes
checking for fopen... yes
checking for fprintf... yes
checking for fflush... yes
checking for fclose... yes
checking for sprintf... yes
checking for unlink... yes
checking for fread... yes
checking for fwrite... yes


System log functions
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for openlog... yes
checking for syslog... yes
checking for closelog... yes


Network functions
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for libraries containing socket functions... -lc
checking for socket... yes
checking for bind... yes
checking for listen... yes
checking for accept... yes
checking for connect... yes
checking for htons... yes
checking for htonl... yes
checking for inet_addr... yes
checking for socklen_t... yes


Directory functions
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for opendir... yes
checking for readdir... yes
checking for closedir... yes


String and character functions
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for getopt... yes
checking for memset... yes
checking for strcpy... yes
checking for atoi... yes
checking for strtok... yes
checking for strcat... yes
checking for strlen... yes
checking for toupper... yes
checking for strcmp... yes
checking for strncmp... yes
checking for bzero... (cached) yes


POSIX signal functions
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sigaction... yes
checking for sigemptyset... yes
checking for sigaddset... yes
checking for sigprocmask... yes
checking for kill... yes


POSIX semaphores functions
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking for sem_init in -lrt... yes
checking for sem_init... yes
checking for sem_destroy... yes
checking for sem_wait... yes
checking for sem_post... yes


Other functions
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sleep... yes
checking for time... yes
checking for srand... yes
checking for rand... yes
checking for getpid... yes


SHOUT library
checking for shout >= 2.0... yes
checking SHOUT_CFLAGS... -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include
checking SHOUT_LIBS... -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -lshout -lvorbis -lm -ltheora -logg -lspeex
checking shout/shout.h usability... yes
checking shout/shout.h presence... yes
checking for shout/shout.h... yes
checking for shout_init in -lshout... yes


ID3 library
checking for library containing ID3Tag_Link... -lid3 -lz -lstdc++
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
rm -f /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/.configured_*
touch /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/.configured_
make -C /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2 DESTDIR="/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-install" install
make[3]: Entering directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
Making install in src
make[4]: Entering directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/src'
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp:114:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
circular.cpp: In member function 'cDoubleLinkedItem* cCircularList::Remove()':
circular.cpp:325:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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 mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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 mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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 mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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 mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
config.cpp:63:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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:0:
data_streamer.h:37:0: warning: "INTERNAL_BUF_SIZE" redefined [enabled by default]
circular.h:57:0: note: this is the location of the previous definition
In file included from data_streamer.cpp:51:0:
meta_parser.h:54:0: warning: "INTERNAL_BUF_SIZE" redefined [enabled by default]
data_streamer.h:37:0: note: this is the location of the previous definition
data_streamer.cpp: In function 'void* data_streamer(void*)':
data_streamer.cpp:103:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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 mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include   -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include  -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
mips-openwrt-linux-uclibc-g++  -ansi -pedantic -pipe -Wall -O3 -pthread -pthread -I/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include   -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib    -lrt -L/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -lshout -lvorbis -lm -ltheora -logg -lspeex  -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[5]: Entering directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/src'
test -z "/bin" || mkdir -p -- "/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-install/bin"
  /usr/bin/install -c 'icegenerator' '/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-install/bin/icegenerator'
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/src'
make[4]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/src'
make[4]: Entering directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
make[5]: Entering directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
make[4]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
make[3]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2'
touch /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/.built
mkdir -p /home/nash/Downloads/openwrt/attitude_adjustment/bin/ar71xx/packages /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/CONTROL /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/usr/bin
install -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-install/bin/icegenerator /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/usr/bin/
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/usr/local/etc
cp -fpR /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/usr/local/etc/
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/etc/
cp -fpR /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/etc/icegenerator.conf
find /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="mips-openwrt-linux-uclibc-"  ; NM="mips-openwrt-linux-uclibc-nm" STRIP="/home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/nash/Downloads/openwrt/attitude_adjustment/scripts/strip-kmod.sh" /home/nash/Downloads/openwrt/attitude_adjustment/scripts/rstrip.sh /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator
rstrip.sh: /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/usr/bin/icegenerator:executable
( echo "Package: icegenerator"; echo "Version: 0.5.5-pre2-1"; DEPENDS=''; for depend in libc libshout id3lib libstdcpp librt; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: feeds/packages/multimedia/icegenerator"; echo "Section: multimedia"; echo "Status: unknown ok not-installed"; echo "Essential: no"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: ar71xx"; echo "Installed-Size: 0"; echo -n "Description: "; . /home/nash/Downloads/openwrt/attitude_adjustment/include/shell.sh; getvar V_Package_icegenerator_description | sed -e 's,^[[:space:]]*, ,g'; ) > /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/CONTROL/control
chmod 644 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/CONTROL/control
. /home/nash/Downloads/openwrt/attitude_adjustment/include/shell.sh; (cd /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator/CONTROL;  )
ipkg-build -c -o 0 -g 0 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator /home/nash/Downloads/openwrt/attitude_adjustment/bin/ar71xx/packages
Packaged contents of /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-ar71xx/icegenerator into /home/nash/Downloads/openwrt/attitude_adjustment/bin/ar71xx/packages/icegenerator_0.5.5-pre2-1_ar71xx.ipk
rm -rf /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator
mkdir -p /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/usr/bin
install -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/ipkg-install/bin/icegenerator /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/usr/bin/
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/usr/local/etc
cp -fpR /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/usr/local/etc/
install -d -m0755 /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/etc/
cp -fpR /home/nash/Downloads/openwrt/attitude_adjustment/build_dir/target-mips_r2_uClibc-0.9.33.2/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/etc/icegenerator.conf
SHELL= /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/host/bin/flock /home/nash/Downloads/openwrt/attitude_adjustment/tmp/.root-copy.flock -c 'cp -fpR /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator/. /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/'
rm -rf /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-icegenerator
touch /home/nash/Downloads/openwrt/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp/.icegenerator_installed
make[2]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment/feeds/packages/multimedia/icegenerator'
make[1]: Leaving directory `/home/nash/Downloads/openwrt/attitude_adjustment'

just some general info:

- Attitude Adjustment is old and unsupported
- icegenerator is not part in packages feed (oldpackages)
- provide an openwrt Makefile for users
- test the package with qemu/virtualbox/... on x86/x86_64 targets


some specific info:
- edit Makefile to use openwrts CFLAGS (-Os ... are defaults)
- disable "-O3" compile option ("-O0" etc..)
- edit the source code conforming to some C++ variant
- run some static code analyzer on it
- use a debugger/remote debugger to find out where it crashes

Using a debugger is the only way to find out where it crashes

(Last edited by zloop on 11 Jul 2015, 17:55)

#here is the makefile

##########################################################################################

#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=icegenerator
PKG_VERSION:=0.5.5-pre2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.mirrorservice.org/sites/downloads.sourceforge.net/i/ic/icegenerator/icegenerator/0.5.5-pre2/
PKG_MD5SUM:=71515d79bc43ca53baffc96c4ada946a
#PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/icegenerator
  SECTION:=multimedia
  CATEGORY:=Multimedia
  DEPENDS:=+libshout +id3lib +libstdcpp +librt
  TITLE:=IceGenerator is a direct stream generator for Icecast/Shoutcast
  URL:=http://www.becrux.com/
endef

define Package/icegenerator/description
    IceGenerator is a direct stream generator for Icecast/Shoutcast
    servers. Streams MP3 to an Icecast/Shoutcast server without
    resampling it, saving CPU. Features directories search, ID3,
    M3U/PLS, META dynamic info and telnet interface.
endef

define Build/Configure
    $(call Build/Configure/Default, \
                --bindir="$(PREFIX_ZYX)/bin" \
                --sysconfdir="$(ROOT_ZYX)/etc" \
                --with-id3)
endef

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR) \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        install
endef

define Package/icegenerator/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/icegenerator $(1)/usr/bin/
    $(INSTALL_DIR) $(1)/usr/local/etc
    $(CP) $(BUILD_DIR)/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist $(1)/usr/local/etc/
    $(INSTALL_DIR) $(1)/etc/
    $(CP) $(BUILD_DIR)/icegenerator-0.5.5-pre2/etc/icegenerator.conf.dist $(1)/etc/icegenerator.conf
endef

$(eval $(call BuildPackage,icegenerator))

i was building for a tp-link 3040 router

The discussion might have continued from here.