First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 198720
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Mathematics related packages <sci-mathematics@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: vfgnt2007@arcor.de
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 198720 depends on: Show dependency tree
Show dependency graph
Bug 198720 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-11-10 17:46 0000
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 From Sébastien Fabbro 2007-11-12 18:29:25 0000 -------
fixed in cvs. thanks.

------- Comment #2 From vfgnt2007@arcor.de 2007-11-20 19:52:56 0000 -------
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 From Sébastien Fabbro 2007-11-22 00:26:35 0000 -------
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.

First Last Prev Next    No search results available      Search page      Enter new bug