Bug 52262 - Undefined symbol nanosleep
Summary: Undefined symbol nanosleep
Status: NEEDINFO
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: SPARC Solaris
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 11:00 UTC by Rob.McMahon
Modified: 2014-10-09 11:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Rob.McMahon 2012-07-19 11:00:13 UTC
p11-kit-0.13
Solaris 10, cc: Sun C 5.11 SunOS_sparc 2010/08/13

Compilation fails with

  CCLD   test-init
Undefined                       first referenced
 symbol                             in file
nanosleep                           test_init-test-init.o
ld: fatal: Symbol referencing errors. No output written to test-init
make[2]: *** [test-init] Error 2
make[2]: Leaving directory `/home/unit/cu/dcv/src/local/p11-kit-0.13/tests'

"nanosleep" lives in -lrt on Solaris 10.  Needs LIBS to include -lrt to compile this test:

> make V=1 LIBS='-lintl -lpthread -lrt'
make[2]: Entering directory `/home/unit/cu/dcv/src/local/p11-kit-0.13/tests'
/bin/bash ../libtool  --tag=CC   --mode=link cc  -O -g   -o test-init test_init-test-init.o test_init-CuTest.o test_init-mock-module.o ../p11-kit/libp11-kit-testable.la  -lintl -lpthread -lrt
libtool: link: cc -O -g -o test-init test_init-test-init.o test_init-CuTest.o test_init-mock-module.o  ../p11-kit/.libs/libp11-kit-testable.a -lintl -lpthread -lrt
/bin/bash ../libtool  --tag=CC   --mode=link cc  -O -g   -o test-modules test-modules.o CuTest.o ../p11-kit/libp11-kit-testable.la  -lintl -lpthread -lrt
libtool: link: cc -O -g -o test-modules test-modules.o CuTest.o  ../p11-kit/.libs/libp11-kit-testable.a -lintl -lpthread -lrt
make[2]: Leaving directory `/home/unit/cu/dcv/src/local/p11-kit-0.13/tests'
>
Comment 1 Stef Walter 2012-07-19 11:02:20 UTC
Thanks for the bug report. I don't have a Solaris system at my disposal right now. Could you include a patch which fixes this problem for you?


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.