public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Possible Showstopper
@ 1997-12-02 21:17 Mark Mitchell
  1997-12-02 22:54 ` Jeffrey A Law
  1997-12-03  5:14 ` Neal Becker
  0 siblings, 2 replies; 14+ messages in thread
From: Mark Mitchell @ 1997-12-02 21:17 UTC (permalink / raw)
  To: egcs

The new 971201 snapshot did not fix the problem I am having on my
RedHat 5.0 system (i686-pc-linux-gnu).  In particular, make check
fails horribly for many C++ tests, like this:

/mnt/u1/mitchell/projects/egcs/objdir/libraries//libstdc++/libstdc++.so: undefined reference to `_pthread_cleanup_pop_restore'
/mnt/u1/mitchell/projects/egcs/objdir/libraries//libstdc++/libstdc++.so: undefined reference to `_pthread_cleanup_push_defer'
collect2: ld returned 1 exit status

I understand that these functions are defined in libpthread, but if
this library is needed, then egcs should be linking it in by default.
At the very least, something needs to go in the release notes about
this.  More probably, we need to work out a fix.  I don't understand
enough about the way glibc works to know how to fix this, but I'm
happy to answer any questions about my system that might help folks.
My system is a completely stock RedHat 5.0, so we can be sure I won't
be the only one to run into this problem!

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Possible Showstopper
@ 1997-12-04 18:45 G. Sumner Hayes
  1997-12-05  4:21 ` Wolfram Gloger
  1997-12-05  8:27 ` Andreas Jaeger
  0 siblings, 2 replies; 14+ messages in thread
From: G. Sumner Hayes @ 1997-12-04 18:45 UTC (permalink / raw)
  To: egcs

Andreas Jaeger (aj@arthur.rhein-neckar.de) wrote:
> --- /usr/glibc/glibc-2.0.5/glibc-2.0.5c-src/linuxthreads/sysdeps/pthread/libc-lock.h    Mon Aug 18 16:01:50 1997
> +++ linuxthreads/sysdeps/pthread/libc-lock.h    Wed Nov 19 00:47:11 1997
> 
> @@ -166,6 +166,11 @@
>  /* We need portable names for some functions.  E.g., when they are
>     used as argument to __libc_cleanup_region_start.  */
>  # define __libc_mutex_unlock __pthread_mutex_unlock
> +#else
> +# ifdef __ELF__
> +#  pragma weak _pthread_cleanup_push_defer
> +#  pragma weak _pthread_cleanup_pop_restore
> +# endif
>  #endif
>  
>  #endif /* bits/libc-lock.h */

Applying this patch does not fix things here on Red Hat 5.0.  I still
need to link all C++ programs against the pthreads library.

Should egcs and/or glibc be rebuilt after applying this?

-Sumner

-- 
rage, rage against the dying of the light

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1997-12-05  8:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-02 21:17 Possible Showstopper Mark Mitchell
1997-12-02 22:54 ` Jeffrey A Law
1997-12-03 10:46   ` Joe Buck
1997-12-03 12:54     ` Jeffrey A Law
1997-12-03 15:32       ` Mark Mitchell
1997-12-03 16:29       ` genattr Error code 139 Dax Kelson
1997-12-03 20:29         ` Jeffrey A Law
1997-12-04  3:06     ` Possible Showstopper Andreas Jaeger
1997-12-03  5:14 ` Neal Becker
1997-12-04 18:45 G. Sumner Hayes
1997-12-05  4:21 ` Wolfram Gloger
1997-12-05  8:27   ` Paul Henning
1997-12-05  8:27 ` Andreas Jaeger
1997-12-05  8:27   ` G. Sumner Hayes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).