Skip to contentSkip to conversation

New: build fails on ltp-testsuite-20101031/testcases/kernel/fs/ftest/ftest04.c:146: undefined reference to `sigset'

Buildroot bugzilla at busybox.net 1 participant 2 messages Mar 8, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=4892

Summary: build fails on
ltp-testsuite-20101031/testcases/kernel/fs/ftest/ftest 04.c:146: undefined reference to `sigset'
Product: buildroot
Version: 2012.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: austinenglish at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 4112
--> https://bugs.busybox.net/attachment.cgi?id=4112
.config used

/home/austin/buildroot-2012.02/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-L../../../../lib ftest04.o libftest.o -lltp -o ftest04
ftest04.o: In function `setup':
/home/austin/buildroot-2012.02/output/build/ltp-testsuite-20101031/testcases/kernel/fs/ftest/ftest04.c:146:
undefined reference to `sigset'

not sure what other info is useful. Running on 32-bit gentoo linux. I've attached the .config file.

Please let me know what other information would be useful:
austin at aw25 ~/buildroot-2012.02 $ gcc --version
gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

austin at aw25 ~/buildroot-2012.02 $ uname -a
Linux aw25 2.6.37 #1 SMP Thu Apr 21 17:36:51 PDT 2011 i686 Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz GenuineIntel GNU/Linux

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 4892] build fails on ltp-testsuite-20101031/testcases/kernel/fs/ftest/ftest04.c:146: undefined reference to `sigset'

https://bugs.busybox.net/show_bug.cgi?id=4892

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Thomas Petazzoni <[email protected]> 2012-03-08 08:24:59 UTC --- Thanks for your bug report.

The help text of the ltp-testsuite package says:

"""
The LTP testsuite uses several functions that are considered obsolete, such as sigset() and others. Therefore, the LTP testsuite does not build with Buildroot's default uClibc configuration, and options such as UCLIBC_HAS_OBSOLETE_BSD_SIGNAL are needed.
"""

So, it is well-known that ltp-testsuite doesn't build with our default uClibc configuration. You must add the uCLIBC_HAS_OBSOLETE_BSD_SIGNAL option to it. So you should do:

make clean
make uclibc-menuconfig

# add the UCLIBC_HAS_OBSOLETE_BSD_SIGNAL option
make

and then it should work.

A good improvement would be to adapt ltp-testsuite so that if sigset() isn't available, it doesn't try to use it.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.