You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Tim Bray <Ti...@Sun.COM> on 2008/09/11 21:52:43 UTC

Unable to build for some stupid reason

Wanted to refresh apr & httpd, grabbed tarballs of both, did this:

Build apr

   614  CFLAGS=-g ./configure --prefix=/usr/local/apr
   615  make
   616  sudo make install

build httpd

   636  CFLAGS=-g ./configure --with-apr=/usr/local/apr --prefix=/usr/ 
local/apache2
   637  make

lots of stuff compiles, then...

Kaboom!

gawk -f /Users/twbray/dev/apache/build/make_exports.awk `cat  
export_files` > exports.c
/usr/local/apr/build-1/libtool --silent --mode=compile gcc   -g  - 
DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp    -I/Users/ 
twbray/dev/apache/srclib/pcre -I. -I/Users/twbray/dev/apache/os/unix - 
I/Users/twbray/dev/apache/server/mpm/prefork -I/Users/twbray/dev/ 
apache/modules/http -I/Users/twbray/dev/apache/modules/filters -I/ 
Users/twbray/dev/apache/modules/proxy -I/Users/twbray/dev/apache/ 
include -I/Users/twbray/dev/apache/modules/generators -I/Users/twbray/ 
dev/apache/modules/mappers -I/Users/twbray/dev/apache/modules/database  
-I/usr/local/apr/include/apr-1 -I/usr/include/apr-1 -I/Users/twbray/ 
dev/apache/modules/proxy/../generators -I/Users/twbray/dev/apache/ 
modules/ssl -I/Users/twbray/dev/apache/modules/dav/main  -prefer-non- 
pic -static -c exports.c && touch exports.lo
exports.c:1636: error: redefinition of 'ap_hack_apr_allocator_create'
exports.c:722: error: previous definition of  
'ap_hack_apr_allocator_create' was here
exports.c:1637: error: redefinition of 'ap_hack_apr_allocator_destroy'
exports.c:723: error: previous definition of  
'ap_hack_apr_allocator_destroy' was here

... thousands more errors ...

Quite likely I did something stupid, any suggestions?  -T

Re: Unable to build for some stupid reason

Posted by Sander Temme <sc...@apache.org>.
On Sep 11, 2008, at 12:52 PM, Tim Bray wrote:

> Wanted to refresh apr & httpd, grabbed tarballs of both, did this:

Should be fine, especially from tarballs.

> exports.c:1636: error: redefinition of 'ap_hack_apr_allocator_create'
> exports.c:722: error: previous definition of  
> 'ap_hack_apr_allocator_create' was here
> exports.c:1637: error: redefinition of 'ap_hack_apr_allocator_destroy'
> exports.c:723: error: previous definition of  
> 'ap_hack_apr_allocator_destroy' was here

Check that exports.c file, around those lines and see if the comments  
above the stanzas where these symbols are defined differ.  I have seen  
something like this happen by running ./buildconf --with-apr=/path/to/ 
apr/source/ (with trailing slash) or somesuch.

> ... thousands more errors ...
>
> Quite likely I did something stupid, any suggestions?  -T


In which case, the scripts are stupid, not yourself.

S.

-- 
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




Re: Unable to build for some stupid reason

Posted by Tim Bray <Ti...@Sun.COM>.
On the other hand, this works:

~/dev/apache/ 663> CFLAGS=-g ./configure --with-included-apr

Which reminds me that this isn't the first time I've had trouble  
trying to juggle from-source apr and httpd.    Actually I think that  
for httpd & module devs, this is a very sensible option and maybe the  
INSTALL should highlight it.  -Tim


On Sep 11, 2008, at 12:52 PM, Tim Bray wrote:

> Wanted to refresh apr & httpd, grabbed tarballs of both, did this:
>
> Build apr
>
>  614  CFLAGS=-g ./configure --prefix=/usr/local/apr
>  615  make
>  616  sudo make install
>
> build httpd
>
>  636  CFLAGS=-g ./configure --with-apr=/usr/local/apr --prefix=/usr/ 
> local/apache2
>  637  make
>
> lots of stuff compiles, then...
>
> Kaboom!
>
> gawk -f /Users/twbray/dev/apache/build/make_exports.awk `cat  
> export_files` > exports.c
> /usr/local/apr/build-1/libtool --silent --mode=compile gcc   -g  - 
> DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp    -I/Users/ 
> twbray/dev/apache/srclib/pcre -I. -I/Users/twbray/dev/apache/os/unix  
> -I/Users/twbray/dev/apache/server/mpm/prefork -I/Users/twbray/dev/ 
> apache/modules/http -I/Users/twbray/dev/apache/modules/filters -I/ 
> Users/twbray/dev/apache/modules/proxy -I/Users/twbray/dev/apache/ 
> include -I/Users/twbray/dev/apache/modules/generators -I/Users/ 
> twbray/dev/apache/modules/mappers -I/Users/twbray/dev/apache/modules/ 
> database -I/usr/local/apr/include/apr-1 -I/usr/include/apr-1 -I/ 
> Users/twbray/dev/apache/modules/proxy/../generators -I/Users/twbray/ 
> dev/apache/modules/ssl -I/Users/twbray/dev/apache/modules/dav/main  - 
> prefer-non-pic -static -c exports.c && touch exports.lo
> exports.c:1636: error: redefinition of 'ap_hack_apr_allocator_create'
> exports.c:722: error: previous definition of  
> 'ap_hack_apr_allocator_create' was here
> exports.c:1637: error: redefinition of 'ap_hack_apr_allocator_destroy'
> exports.c:723: error: previous definition of  
> 'ap_hack_apr_allocator_destroy' was here
>
> ... thousands more errors ...
>
> Quite likely I did something stupid, any suggestions?  -T


Re: Unable to build for some stupid reason

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Tim Bray wrote:
> 
>   636  CFLAGS=-g ./configure --with-apr=/usr/local/apr 
> --prefix=/usr/local/apache2
>   637  make

--with-apr-util=???