x86_64-pc-linux-gnu-gcc -c -pipe -O2 -march=athlon64 -fomit-frame-pointer -I.. -I.. -I../lib/src -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DHAVE_CONFIG_H ../lib/src/interact.c -fPIC -DPIC -o .libs/interact.o ../lib/src/interact.c: In function 'parseopt': ../lib/src/interact.c:2450: error: expected expression before 'else' make[1]: *** [interact.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/gretl-1.6.5/work/gretl-1.6.5/lib' make: *** [lib] Error 2 * * ERROR: sci-mathematics/gretl-1.6.5 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * gretl-1.6.5.ebuild, line 67: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed The code in interact.c looks like: #ifdef ENABLE_NLS if (!strcmp(s, "-e") || !strncmp(s, "--english", 9)) { *force_lang = ENGLISH; } else if (!strcmp(s, "-q") || !strncmp(s, "--basque", 8)) { *force_lang = BASQUE; } #endif else if (!strcmp(s, "-b") || !strncmp(s, "--batch", 7)) { opt = OPT_BATCH; This obviously fails if ENABLE_NLS is undefined. Reproducible: Always Steps to Reproduce: 1.emerge gretl 2. 3.
fixed in cvs. thanks.
Sorry, now it's failing with: ../libtool --mode=link x86_64-pc-linux-gnu-gcc -o gretlcli gretlcli.o complete.o ../lib/libgretl-1.0.la -lreadline -lcurses mkdir .libs x86_64-pc-linux-gnu-gcc -o .libs/gretlcli gretlcli.o complete.o ../lib/.libs/libgretl-1.0.so -L/usr/lib -llapack -lblas /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgfortran.so -L/usr/local/lib /usr/lib64/libxml2.so -ldl -lz /usr/lib64/libglib-2.0.so /usr/lib64/libgmp.so /usr/lib64/libfftw3.so -lm -lreadline -lcurses ../lib/.libs/libgretl-1.0.so: undefined reference to `check_for_console' ../lib/.libs/libgretl-1.0.so: undefined reference to `get_month_name' ../lib/.libs/libgretl-1.0.so: undefined reference to `console_off' collect2: ld returned 1 exit status make[1]: *** [gretlcli] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/gretl-1.6.5/work/gretl-1.6.5/cli' make: *** [cli] Error 2 These functions are missing from gretl_intl.c due to ENABLE_NLS being undefined.
I took a deeper look at the sources, and there is much to fix to allow full nls disability. As it seems to be fixed in upstream cvs, I will wait for a future version to allow nls. I commited a gretl version that force nls and removed the flag. Re-open the bug if you see this as a real inconvenience. Thanks.