Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198720 - sci-mathematics/gretl-1.6.5 build failure with USE="-nls"
Summary: sci-mathematics/gretl-1.6.5 build failure with USE="-nls"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-10 17:46 UTC by vfgnt2007
Modified: 2007-11-22 00:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vfgnt2007 2007-11-10 17:46:23 UTC
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.
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2007-11-12 18:29:25 UTC
fixed in cvs. thanks.
Comment 2 vfgnt2007 2007-11-20 19:52:56 UTC
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.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2007-11-22 00:26:35 UTC
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.