getopt.hmissing binary operator before token "("
Well that was a retarted post. Anyways...
After ./configure runs successfully I try to make and this is where my problem is.
$ sudo make
make: Entering directory `/home/lithi/shoutcast/binaries/icegenerator-0.5.5-pre2'
Making all in src
make: Entering directory `/home/lithi/shoutcast/binaries/icegenerator-0.5.5-pre2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -ansi -pedantic -pipe -Wall -O3 -pthread -I/usr/local/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
In file included from main.cpp:104:
/usr/include/getopt.h:38:43: missing binary operator before token "("
make: *** [main.o] Error 1
make: Leaving directory `/home/lithi/shoutcast/binaries/icegenerator-0.5.5-pre2/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/lithi/shoutcast/binaries/icegenerator-0.5.5-pre2'
make: *** [all] Error 2
Antonio Di Monaco
Please, try add this row:
(read careful! There're two underscores before THROW!!)
before line 103 in file main.cpp.
Your file will be like that:
Some platforms have a buggy getopt.h, that requires that conditional.
Let me know is something goes wrong.
Thanks Tony Sin,
The #define __THROW worked like a charm.
After compiling I got that libshout.so.3: cannot open shared object file error. I then edited /etc/ld.so.conf and added the line /usr/local/lib then I ran ldconfig as root and icegenerator now runs without error.
Glad to know that.
Relative linking of libshout.so will be fixed in next release of IceG, so patching ld.so.conf will be no more requested.