objc/2713: Most objc tests fail on solaris2 w/missing thread functions

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Wed May 2 15:16:00 GMT 2001


The following reply was made to PR objc/2713; it has been noted by GNATS.

From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
To: ro@TechFak.Uni-Bielefeld.DE
Cc: gcc-gnats@gcc.gnu.org, ovidiu@cup.hp.com, shebs@apple.com
Subject: Re: objc/2713: Most objc tests fail on solaris2 w/missing thread functions
Date: Wed, 2 May 2001 18:10:54 -0400 (EDT)

  > From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  > 
  > ghazi@caip.rutgers.edu writes:
  > 
  > > 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:
  > 
  > I've already posted a patch two months ago:
  > 
  > 	http://gcc.gnu.org/ml/gcc-patches/2001-03/msg00125.html
 
 Thanks Rainer!
 
 Two issues:
 
 1.  I think the following bit:
 
 AC_CHECK_LIB(rt, sched_get_priority_max,, AC_CHECK_LIB(posix4, sched_get_priority_max))
 AC_CHECK_FUNCS(sched_get_priority_max)
 
 might be more concisely implemented using AC_SEARCH_LIBS, e.g.
 
 AC_SEARCH_LIBS(sched_get_priority_max, rt posix4)
 
 You may need to stick AC_DEFINE(HAVE_SCHED_GET_PRIORITY_MAX) in the
 [ACTION-IF-FOUND] field, I can't remember.  LIBS will get either
 nothing or -lrt or -lposix4 as necessary.
 
 
 2.  On a more general note, how does checking for the library at
 configure time get it used when linking with libobjc during the
 testsuite run or later when gcc is installed and used by users?  Is
 that handled magically by libtool?  (I don't know libtool at all.)
 
 		Thanks,
 		--Kaveh
 --
 Kaveh R. Ghazi			Engagement Manager / Project Services
 ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Gcc-prs mailing list