This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
objc/2713: Most objc tests fail on solaris2 w/missing thread functions
- To: gcc-gnats at gcc dot gnu dot org
- Subject: objc/2713: Most objc tests fail on solaris2 w/missing thread functions
- From: ghazi at caip dot rutgers dot edu
- Date: 2 May 2001 15:47:36 -0000
- Cc: shebs at apple dot com, ovidiu at cup dot hp dot com
- Reply-To: ghazi at caip dot rutgers dot edu
>Number: 2713
>Category: objc
>Synopsis: Most objc tests fail on solaris2 w/missing thread functions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 02 08:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Kaveh Ghazi
>Release: 3.0 20010501 (prerelease)
>Organization:
>Environment:
sparc-sun-solaris2.7
>Description:
Most of the objc testsuite entries fail on solaris2 as shown
in the following URLs:
http://gcc.gnu.org/ml/gcc-testresults/2001-05/msg00016.html
http://gcc.gnu.org/ml/gcc-testresults/2001-05/msg00007.html
http://gcc.gnu.org/ml/gcc-testresults/2001-05/msg00005.html
=== objc Summary for unix ===
# of expected passes 10
# of unexpected failures 68
# of untested testcases 68
The problem for all of the failures on my platform are of
this form:
Undefined first referenced
symbol in file
sched_get_priority_max /teal/caip5/ghazi/gcc-testing/build/sparc-sun-solaris2.7/libobjc/.libs/libobjc.a(thr-objc.o)
sched_get_priority_min /teal/caip5/ghazi/gcc-testing/build/sparc-sun-solaris2.7/libobjc/.libs/libobjc.a(thr-objc.o)
These functions are called from libobjc/thr-posix.c.
>How-To-Repeat:
Bootstrap on solaris2 and run the objc testsuite
>Fix:
According to the man page, the sched_get_priority_{min,max}
functions are available when linking with -lrt. The man
page also says solaris2.6 was the first release to fully
support them. Prior to that they always returned -1 and set
errno to ENOSYS.
I think the proper fix would be to have -lrt passed to all
the objc tests on solaris2.6 (or greater). I verified this
works by running one of the failing testsuite compilations
by hand and adding that library link. Although I'm not
sure how to do that via the testsuite for just solaris2.6
or greater. I'm also not sure what to do for versions of
solaris prior to 2.6. However since only 2.7 is a "primary"
platform, solving the problem for >=2.6 would be a good
step forward IMHO.
>Release-Note:
>Audit-Trail:
>Unformatted: