bugGNU Typist - Bugs: bug #37180, Building 2.9.1 fails due to not...

 
 

bug #37180: Building 2.9.1 fails due to not properly linking with libiconv

Submitter:  Brandon Invergo <brandon>
Submitted:  Fri 24 Aug 2012 10:13:05 AM UTC
   
 
Severity:  3 - Normal Priority:  5 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  edam Open/Closed:  * Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 18 Aug 2013 02:39:12 PM UTC, comment #3: 

Ahh, this might be fixed by this:

http://git.savannah.gnu.org/cgit/gtypist.git/commit/?id=abea89ac6ea32275e00740cfcec3458531cb3062

The AM_GNU_GETTEXT macro (in configure.ac) should have been AM_GNU_GETTEXT(external), to specify that libintl was an external requirement (no local intl subdirectory exists).

Tim Marston <edam>
Group administrator
Sun 18 Aug 2013 01:38:49 PM UTC, comment #2: 

Closing, due to lack of information.  :o(

Tim Marston <edam>
Group administrator
Wed 22 May 2013 08:49:55 PM UTC, comment #1: 

Hi Brandon,

Thanks for the report!  It looks like you submitted this and missed off some information at the end, though!  I looked in to it, but I'm not entirely sure what the problem is.

I am not an expert on GNU autoconf/automake but the docs[1] seem to say that the AM_GNU_GETTEXT macro (in configure.ac) should add linker options to link against libiconv when it isn't already part of glibc.  Is this not the case on your system?

[1] http://www.gnu.org/software/gettext/manual/html_node/AM_005fGNU_005fGETTEXT.html

Tim Marston <edam>
Group administrator
Fri 24 Aug 2012 10:13:05 AM UTC, original submission:  

The standard gtypist build system, as is, does not properly link to libiconv.

Relevant part of configure output:

checking for iconv... yes
checking how to link with libiconv... /home/brandon/gnu/lib/libiconv.so -Wl,-rpath -Wl,/home/brandon/gnu/lib
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
-verbatim

Relevant build output:
+verbatim+
Making all in src
make[3]: Entering directory `/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1/src'
gcc  -g -O2  -L/home/brandon/gnu/lib -o gtypist gtypist.o cursmenu.o script.o error.o getopt.o getopt1.o utf8.o  -lncursesw
utf8.o: In function `convertUTF8ToCurrentEncoding':
/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1/src/utf8.c:69: undefined reference to `libiconv_open'
/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1/src/utf8.c:80: undefined reference to `libiconv'
/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1/src/utf8.c:99: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
make[3]: *** [gtypist] Error 1
make[3]: Leaving directory `/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/brandon/Projects/gsrc/gsrc/trunk/gnu/gtypist/work/gtypist-2.9.1'
make: *** [build-work/gtypist-2.9.1/Makefile] Error 2


Explicitly adding -liconv to LDFLAGS fixes the build error. I've found others having the same problem here: https://github.com/mxcl/homebrew/issues/12803

Brandon Invergo <brandon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by edam (Posted a comment)
  • -email is unavailable- added by brandon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-18 edam StatusNeed Info Fixed
        Assigned toNone edam
    2013-08-18 edam StatusNone Need Info
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code