You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@Fujitsu-Siemens.com> on 2001/01/29 17:03:16 UTC

Where is apr_get_username() in Apache-2.0??

On FreeBSD, I get an unresolved symbol apr_get_username(). It is referenced
both in mod_include.c and mod_rewrite.c

   Martin
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany

Re: Where is apr_get_username() in Apache-2.0??

Posted by Ben Laurie <be...@algroup.co.uk>.
Jeff Trawick wrote:
> 
> Martin Kraemer <Ma...@Fujitsu-Siemens.com> writes:
> 
> > On Mon, Jan 29, 2001 at 08:11:15AM -0800, rbb@covalent.net wrote:
> > >
> > > It lives in srclib/apr/user/unix.
> >
> > Now it complains because no ptototype for apr_pstrdup() is in sight.
> >    Martin
> 
> No, I don't think apr_pstrdup() is what it is complaining about...
> 
> Note that it complains about the call to getgrgid() on line 75.  It
> doesn't have the prototype.  Since it didn't include whatever file is
> needed for the getgrgid() prototype, it doesn't know what struct group
> is either.  The error on line 79 is because it doesn't know struct
> group.
> 
> So see where this stuff is defined on your system.  This module tries
> to include grp.h; maybe it needs to support something else for your
> system.  Or maybe HAVE_GRP_H is not defined in your
> include/arch/unix/apr_private.h but should be.

This bit me - forgetting to do a buildconf is the cause.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Re: Where is apr_get_username() in Apache-2.0??

Posted by Jeff Trawick <tr...@bellsouth.net>.
Martin Kraemer <Ma...@Fujitsu-Siemens.com> writes:

> On Mon, Jan 29, 2001 at 08:11:15AM -0800, rbb@covalent.net wrote:
> > 
> > It lives in srclib/apr/user/unix.
> 
> Now it complains because no ptototype for apr_pstrdup() is in sight.
>    Martin

No, I don't think apr_pstrdup() is what it is complaining about...

Note that it complains about the call to getgrgid() on line 75.  It
doesn't have the prototype.  Since it didn't include whatever file is
needed for the getgrgid() prototype, it doesn't know what struct group
is either.  The error on line 79 is because it doesn't know struct
group.

So see where this stuff is defined on your system.  This module tries
to include grp.h; maybe it needs to support something else for your
system.  Or maybe HAVE_GRP_H is not defined in your
include/arch/unix/apr_private.h but should be.

Have fun, 

Jeff

> 
> Make[1]: Entering directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
> /bin/sh /home/com5/martin/pgtm0035/apachen/X/apr/libtool --mode=compile --silent gcc -g -O2  -I../../include -I../../include/arch/unix -c groupinfo.c && touch groupinfo.lo
> groupinfo.c: In function `apr_get_groupname':
> groupinfo.c:75: warning: assignment makes pointer from integer without a cast
> groupinfo.c:79: dereferencing pointer to incomplete type
> Make[1]: *** [groupinfo.lo] Error 1
> Make[1]: Leaving directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
> Make: *** [all-recursive] Error 1

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: Where is apr_get_username() in Apache-2.0??

Posted by rb...@covalent.net.
That can be found in apr_strings.h.

I swear this stuff all compiled for me on Linux on Saturday, but I didn't
write the code, I was just trying to keep it compiling.  :-)

Ryan

On Mon, 29 Jan 2001, Martin Kraemer wrote:

> On Mon, Jan 29, 2001 at 08:11:15AM -0800, rbb@covalent.net wrote:
> > 
> > It lives in srclib/apr/user/unix.
> 
> Now it complains because no ptototype for apr_pstrdup() is in sight.
>    Martin
> 
> Make[1]: Entering directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
> /bin/sh /home/com5/martin/pgtm0035/apachen/X/apr/libtool --mode=compile --silent gcc -g -O2  -I../../include -I../../include/arch/unix -c groupinfo.c && touch groupinfo.lo
> groupinfo.c: In function `apr_get_groupname':
> groupinfo.c:75: warning: assignment makes pointer from integer without a cast
> groupinfo.c:79: dereferencing pointer to incomplete type
> Make[1]: *** [groupinfo.lo] Error 1
> Make[1]: Leaving directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
> Make: *** [all-recursive] Error 1
> -- 
> <Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
>        <ma...@apache.org>              |   81730  Munich,  Germany
> 
> 


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Re: Where is apr_get_username() in Apache-2.0??

Posted by Martin Kraemer <Ma...@Fujitsu-Siemens.com>.
On Mon, Jan 29, 2001 at 08:11:15AM -0800, rbb@covalent.net wrote:
> 
> It lives in srclib/apr/user/unix.

Now it complains because no ptototype for apr_pstrdup() is in sight.
   Martin

Make[1]: Entering directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
/bin/sh /home/com5/martin/pgtm0035/apachen/X/apr/libtool --mode=compile --silent gcc -g -O2  -I../../include -I../../include/arch/unix -c groupinfo.c && touch groupinfo.lo
groupinfo.c: In function `apr_get_groupname':
groupinfo.c:75: warning: assignment makes pointer from integer without a cast
groupinfo.c:79: dereferencing pointer to incomplete type
Make[1]: *** [groupinfo.lo] Error 1
Make[1]: Leaving directory `/home/com5/martin/pgtm0035/apachen/X/apr/user/unix'
Make: *** [all-recursive] Error 1
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany

Re: Where is apr_get_username() in Apache-2.0??

Posted by Martin Kraemer <Ma...@Fujitsu-Siemens.com>.
On Mon, Jan 29, 2001 at 08:11:15AM -0800, rbb@covalent.net wrote:
> 
> It lives in srclib/apr/user/unix.
> 
> It was added wither Friday night or Saturday morning.  Are you sure you
> updated APR?

Oops - thanks - found.

   Martin
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany

Re: Where is apr_get_username() in Apache-2.0??

Posted by rb...@covalent.net.
It lives in srclib/apr/user/unix.

It was added wither Friday night or Saturday morning.  Are you sure you
updated APR?

Ryan

On Mon, 29 Jan 2001, Martin Kraemer wrote:

> On FreeBSD, I get an unresolved symbol apr_get_username(). It is referenced
> both in mod_include.c and mod_rewrite.c
> 
>    Martin
> -- 
> <Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
>        <ma...@apache.org>              |   81730  Munich,  Germany
> 
> 


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------