<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>198720</bug_id>
          
          <creation_ts>2007-11-10 17:46 0000</creation_ts>
          <short_desc>sci-mathematics/gretl-1.6.5 build failure with USE=&quot;-nls&quot;</short_desc>
          <delta_ts>2007-11-22 00:26:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vfgnt2007@arcor.de</reporter>
          <assigned_to>sci-mathematics@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>vfgnt2007@arcor.de</who>
            <bug_when>2007-11-10 17:46:23 0000</bug_when>
            <thetext>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 &apos;parseopt&apos;:
../lib/src/interact.c:2450: error: expected expression before &apos;else&apos;
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&apos;
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 &apos;src_compile&apos;
 *            ebuild.sh, line   44:  Called src_compile
 *   gretl-1.6.5.ebuild, line   67:  Called die
 * The specific snippet of code:
 *      emake || die &quot;emake failed&quot;
 *  The die message:
 *   emake failed

The code in interact.c looks like:

#ifdef ENABLE_NLS
        if (!strcmp(s, &quot;-e&quot;) || !strncmp(s, &quot;--english&quot;, 9)) {
            *force_lang = ENGLISH;
        } else if (!strcmp(s, &quot;-q&quot;) || !strncmp(s, &quot;--basque&quot;, 8)) {
            *force_lang = BASQUE;
        }
#endif
        else if (!strcmp(s, &quot;-b&quot;) || !strncmp(s, &quot;--batch&quot;, 7)) {
            opt = OPT_BATCH;

This obviously fails if ENABLE_NLS is undefined.


Reproducible: Always

Steps to Reproduce:
1.emerge gretl
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2007-11-12 18:29:25 0000</bug_when>
            <thetext>fixed in cvs. thanks.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vfgnt2007@arcor.de</who>
            <bug_when>2007-11-20 19:52:56 0000</bug_when>
            <thetext>Sorry, now it&apos;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&apos;
../lib/.libs/libgretl-1.0.so: undefined reference to `get_month_name&apos;
../lib/.libs/libgretl-1.0.so: undefined reference to `console_off&apos;
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&apos;
make: *** [cli] Error 2

These functions are missing from gretl_intl.c due to ENABLE_NLS being undefined.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2007-11-22 00:26:35 0000</bug_when>
            <thetext>
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.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>