Skip to contentSkip to conversation

: buildroot/build_i386/grep-2.5.1/src/dfa.c:147: undefined reference to `libintl_gettext'

Buildroot bugs at busybox.net 1 participant 1 message Oct 28, 2007

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=1549
======================================================================

Reported By:                Steve Cornett
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1549
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-22-2007 14:26 PDT
Last Modified:              10-28-2007 14:28 PDT

======================================================================
Summary: buildroot/build_i386/grep-2.5.1/src/dfa.c:147:
undefined reference to `libintl_gettext'
Description:
Configure for i386. Build ends with:

dfa.o: In function `xmalloc':
/home/test/buildroot/build_i386/grep-2.5.1/src/dfa.c:147: undefined reference to `libintl_gettext'

Input and log attached.
======================================================================

----------------------------------------------------------------------
pcwalton - 10-26-07 19:33
----------------------------------------------------------------------
I'm getting this too. Workaround was to copy the configure line that the buildroot makefile spits out, add LDFLAGS="-lintl" to the front of it, and reconfigure and make manually.

----------------------------------------------------------------------
pcwalton - 10-28-07 13:59
----------------------------------------------------------------------
Attached a proposed patch.

----------------------------------------------------------------------
vanokuten - 10-28-07 14:28
----------------------------------------------------------------------
Can you post your part of config.log file?

I have arm configuration and it works without applying your patch. -lintl is added on configure step when checking for gettext:
configure:7201: checking for GNU gettext in libintl

/opt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -Os -pipe -I/opt/buildroot/build_arm/staging_dir/usr/include -I/opt/buildroot/build_arm/staging_dir/include --sysroot=/opt/buildroot/build_arm/staging_dir/ -isysroot /opt/buildroot/build_arm/staging_dir -mtune=arm920t -msoft-float -g -O2 -o grep grep.o dfa.o kwset.o search.o grepmat.o -lintl ../lib/libgreputils.a

Regards,
Ivan

Issue History
Date Modified Username Field Change
======================================================================

10-22-07 14:26  Steve Cornett  New Issue                                    
10-22-07 14:26  Steve Cornett  Status                   new => assigned     
10-22-07 14:26  Steve Cornett  Assigned To               => buildroot       
10-22-07 14:26  Steve Cornett  File Added: InputAndOutput.tar                   
10-26-07 19:33  pcwalton       Note Added: 0002862                          
10-28-07 13:59  pcwalton       File Added: buildroot-grep.patch                 
10-28-07 13:59  pcwalton       Note Added: 0002863                          
10-28-07 14:28  vanokuten      Note Added: 0002864                          

======================================================================