BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001549 [buildroot] Architecture Specific block always 10-22-07 14:26 04-24-08 21:51
Reporter Steve Cornett View Status public  
Assigned To buildroot
Priority normal Resolution open  
Status assigned   Product Version
Summary 0001549: 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.
Additional Information
Attached Files  InputAndOutput.tar [^] (20,480 bytes) 10-22-07 14:26
 buildroot-grep.patch [^] (432 bytes) 10-28-07 13:59

- Relationships

- Notes
(0002862)
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.
 
(0002863)
pcwalton
10-28-07 13:59

Attached a proposed patch.
 
(0002864)
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
 
(0007094)
jbruchon
04-24-08 21:51

I'm now getting this error in the most recent snapshot (2008-04-24), as seen below. I have not applied the submitted patch yet; I would have thought that this problem would be fixed in the most recent snapshot but apparently it is still outstanding. This was done on a machine that had no problem building a rootfs a month ago with the most recent snapshot back then.

Tail of console log:

Making all in src
make[3]: Entering directory `/home/user/src/buildroot/build_i486/grep-2.5.1/src'
/home/user/src/buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-gcc -Os -I/home/user/src/buildroot/build_i486/staging_dir/usr/include -I/home/user/src/buildroot/build_i486/staging_dir/include --sysroot=/home/user/src/buildroot/build_i486/staging_dir/ -isysroot /home/user/src/buildroot/build_i486/staging_dir -mtune=i486 -march=i486 -g -O2 -o grep grep.o dfa.o kwset.o search.o grepmat.o ../lib/libgreputils.a
dfa.o: In function `xmalloc':
/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:147: undefined reference to `libintl_gettext'
dfa.o: In function `xrealloc':
/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:158: undefined reference to `libintl_gettext'
dfa.o: In function `xcalloc':
/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:136: undefined reference to `libintl_gettext'
dfa.o: In function `parse_bracket_exp_mb':
/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:489: undefined reference to `libintl_gettext'
/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:604: undefined reference to `libintl_gettext'
dfa.o:/home/user/src/buildroot/build_i486/grep-2.5.1/src/dfa.c:545: more undefined references to `libintl_gettext' follow
collect2: ld returned 1 exit status
make[3]: *** [grep] Error 1
make[3]: Leaving directory `/home/user/src/buildroot/build_i486/grep-2.5.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/src/buildroot/build_i486/grep-2.5.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/src/buildroot/build_i486/grep-2.5.1'
make: *** [/home/user/src/buildroot/build_i486/grep-2.5.1/src/grep] Error 2
 

- 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
04-24-08 21:51 jbruchon Note Added: 0007094
05-20-08 06:17 jonnyro Issue Monitored: jonnyro


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker