You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@devsys.jaguNET.com> on 1999/12/23 23:05:40 UTC

-lc_r as LDFLAGS ?

Hmmmmm... Shouldn't that be setup as LIBS?

In any case, it works (as far as it compiling) but we'll need to clean
it up:

gcc -g -O2 -lc_r -o apache modules.o buildmark.o modules/standard/.libs/libapachemod_env.a -lc_r modules/standard/.libs/libapachemod_log_config.a -lc_r modules/standard/.libs/libapachemod_mime.a -lc_r modules/standard/.libs/libapachemod_negotiation.a -lc_r modules/standard/.libs/libapachemod_include.a -lc_r modules/standard/.libs/libapachemod_autoindex.a -lc_r modules/standard/.libs/libapachemod_dir.a -lc_r modules/standard/.libs/libapachemod_cgi.a -lc_r modules/standard/.libs/libapachemod_asis.a -lc_r modules/standard/.libs/libapachemod_imap.a -lc_r modules/standard/.libs/libapachemod_actions.a -lc_r modules/standard/.libs/libapachemod_userdir.a -lc_r modules/standard/.libs/libapachemod_alias.a -lc_r modules/standard/.libs/libapachemod_access.a -lc_r modules/standard/.libs/libapachemod_auth.a -lc_r modules/standard/.libs/libapachemod_setenvif.a -lc_r modules/standard/.libs/libapachemod_echo.a -lc_r modules/mpm/mpmt_pthread/.libs/libmpmt_pthread.a -lc_r main/.libs/libmain.a -l!
c_r os/unix/.libs/libos.a -lc_r ap/.libs/libap.a -lc_r lib/apr/libapr.a regex/.libs/libregex.a -lc_r -lcrypt

Kudos!

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
                "Are you suggesting coconuts migrate??"

Re: -lc_r as LDFLAGS ?

Posted by Greg Stein <gs...@lyra.org>.
On Mon, 27 Dec 1999, Sascha Schumann wrote:
> On Mon, Dec 27, 1999 at 10:01:18AM -0500, Jim Jagielski wrote:
> > 
> > But I _think_ it's because the reentrant version of readdir is
> > _called_ readdir in libc_r...
> 
>     Jim, the point here is that linking directly against libc_r
>     does not work, no matter what libc_r contains (yes, it
>     contains a symbol named readdir, but we do not need to care).
>     Cannot we agree on using something which works and which is
>     the recommened way to use Pthreads on FreeBSD?

Exactly... why are we trying to find another scheme rather than following
Sascha's recommendations for FreeBSD handling?

Happy Holidays,
-g

-- 
Greg Stein, http://www.lyra.org/


Re: -lc_r as LDFLAGS ?

Posted by Sascha Schumann <sa...@schumann.cx>.
On Mon, Dec 27, 1999 at 10:01:18AM -0500, Jim Jagielski wrote:
> 
> But I _think_ it's because the reentrant version of readdir is
> _called_ readdir in libc_r...

    Jim, the point here is that linking directly against libc_r
    does not work, no matter what libc_r contains (yes, it
    contains a symbol named readdir, but we do not need to care).
    Cannot we agree on using something which works and which is
    the recommened way to use Pthreads on FreeBSD?

-- 

          Regards,

                            Sascha Schumann
                                 Consultant

Re: -lc_r as LDFLAGS ?

Posted by Ryan Bloom <rb...@raleigh.ibm.com>.
> > 
> > Hmmm... I have to look through my notes. I think that somewhere
> > I read/found-out that the readdir in libc_r is munged or something.
> 
>     Don't you consider searching for a non-reentrant function in
>     the reentrancy library at least a little bit strange? :)
> 
>     Did I mention that linking against -lc_r on FreeBSD creates
>     problems? :)

I was under the impression that the check for readdir in c_r was for a BSD
system.  I don't remember exactly when it was added or by whom, but check
the CVS log for sometime around mid September or late October.

Ryan

_______________________________________________________________________
Ryan Bloom		rbb@raleigh.ibm.com
4205 S Miami Blvd	
RTP, NC 27709		

Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>



Re: -lc_r as LDFLAGS ?

Posted by Sascha Schumann <sa...@schumann.cx>.
On Sun, Dec 26, 1999 at 11:33:36PM -0500, Jim Jagielski wrote:
> Sascha Schumann wrote:
> > 
> >     There is another check for readdir in -lc_r which also should
> >     be removed, unless there is some quirky platform which really
> >     needs it. 
> > 
> 
> Hmmm... I have to look through my notes. I think that somewhere
> I read/found-out that the readdir in libc_r is munged or something.

    Don't you consider searching for a non-reentrant function in
    the reentrancy library at least a little bit strange? :)

    Did I mention that linking against -lc_r on FreeBSD creates
    problems? :)

-- 

          Regards,

                            Sascha Schumann
                                 Consultant

Re: -lc_r as LDFLAGS ?

Posted by Sascha Schumann <sa...@schumann.cx>.
On Thu, Dec 23, 1999 at 05:05:40PM -0500, Jim Jagielski wrote:
> Hmmmmm... Shouldn't that be setup as LIBS?

    I intend to look at this later, because it is currently
    broken on FreeBSD (it builds with a few relocation warnings
    on -current, but immediately segfaults).

    There is another check for readdir in -lc_r which also should
    be removed, unless there is some quirky platform which really
    needs it. 

-- 

          Regards,

                            Sascha Schumann
                                 Consultant