On Thu, Jan 15, 2004 at 06:13:36PM +0000, Patrick Welche wrote:
> On Thu, Jan 15, 2004 at 05:19:34PM +0000, Joe Orton wrote:
> > On Thu, Jan 15, 2004 at 05:16:35PM +0000, Patrick Welche wrote:
> > > libtool: link: libtool library `mod_authn_file.la' must begin with `lib'
> > 
> > Yeah, you have to switch to using static convenience libraries...  Can
> > you try the attached patch (requires a full re-./buildconf etc)?
> 
> One good thing is that the .a files in modules/*/.libs aren't empty. Now
> I get (libtool .. --mode=link .. -o httpd .. -export-dynamic .. libauthn_file.la .. )
> 
> modules.o(.data+0x0): undefined reference to `core_module'
> modules.o(.data+0x34): undefined reference to `mpm_prefork_module'
> modules.o(.data+0x80): undefined reference to `core_module'
> modules.o(.data+0xb4): undefined reference to `mpm_prefork_module'
> modules/aaa/.libs/libauthn_file.a(mod_authn_file.o)(.text+0xc8): In function 
> `check_password':
> /usr/src/local/httpd-2.0/modules/aaa/mod_authn_file.c:129: undefined reference to 
> `ap_pcfg_openfile'
> modules/aaa/.libs/libauthn_file.a(mod_authn_file.o)(.text+0xee):/usr/src/local/httpd-2.0/modules/aaa/mod_authn_file.c:137:
>  undefined reference to `ap_cfg_getline
> '
> modules/aaa/.libs/libauthn_file.a(mod_authn_file.o)(.text+0x11a):/usr/src/local/httpd-2.0/modules/aaa/mod_authn_file.c:146:
>  undefined reference to `ap_getword' 

What's the complete link line libtool invokes gcc with in this case?
Technically this is still violating the library handling guidelines in
the libtool manual, but I'm not sure it should fail like this. If you
add -static in the build/libraries.mk link line the rebuild libmain.la
and libprefork.la I'd guess it will work.

> I also had a bit of buildconf fun, and repeated your patch - this bit is
> even stranger than in apr though, as even a sed isn't needed..

Yeah, I fixed that on HEAD already too, thanks.

joe

Reply via email to