You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Aurel <be...@gmail.com> on 2008/07/30 14:25:52 UTC

[users@httpd] error when MAKE Apache 2.2.*: exports.c : error: previous definition of '...' was here

hi

I already tried to install several versions of apache on mac os x
leopard and always get a load of errors:

....
gawk -f /temp/httpd-2.2.2/build/make_exports.awk `cat export_files` > exports.c
/opt/local/share/apr-1/build/libtool --silent --mode=compile
/usr/bin/gcc-4.0     -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp    -I/temp/httpd-2.2.2/srclib/pcre -I.
-I/temp/httpd-2.2.2/os/unix -I/temp/httpd-2.2.2/server/mpm/prefork
-I/temp/httpd-2.2.2/modules/http -I/temp/httpd-2.2.2/modules/filters
-I/temp/httpd-2.2.2/modules/proxy -I/temp/httpd-2.2.2/include
-I/temp/httpd-2.2.2/modules/generators
-I/temp/httpd-2.2.2/modules/mappers
-I/temp/httpd-2.2.2/modules/database -I/opt/local/include/apr-1
-I/usr/include/apr-1 -I/temp/httpd-2.2.2/modules/proxy/../generators
-I/temp/httpd-2.2.2/modules/ssl -I/temp/httpd-2.2.2/modules/dav/main
-prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:1306: error: redefinition of 'ap_hack_apr_allocator_create'
exports.c:152: error: previous definition of
'ap_hack_apr_allocator_create' was here
exports.c:1307: error: redefinition of 'ap_hack_apr_allocator_destroy'
exports.c:153: error: previous definition of
'ap_hack_apr_allocator_destroy' was here
exports.c:1308: error: redefinition of 'ap_hack_apr_allocator_alloc'
exports.c:154: error: previous definition of
'ap_hack_apr_allocator_alloc' was here
exports.c:1309: error: redefinition of 'ap_hack_apr_allocator_free'
exports.c:155: error: previous definition of
'ap_hack_apr_allocator_free' was here
....

1. I work in a non symlinked path directly under root: "/temp"./

2. I've cleaned everything:
     sudo find /temp -iname "apache*" -exec rm -rf {} \;
   sudo find /usr -iname "apache*" -exec rm -rf {} \;
   sudo find /usr -iname "httpd*" -exec rm -rf {} \;

3. I already tried it with several versions 2.8, 2.7, 2.2, but always
the same errors. I didnt configure something special. Just plain
"./configure" - no options.

thanks for any help
ben

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] error when MAKE Apache 2.2.*: exports.c : error: previous definition of '...' was here

Posted by Ben Aurel <be...@gmail.com>.
I've just checked server/exports.c and scanned it for a few of the many 
(hundreds) of errors. The declarations are fine and the files exists on 
the system.

But I noticed something else.

When I look at on of those numerous errormessages:
> exports.c:1309: error: redefinition of 'ap_hack_apr_allocator_free'
> exports.c:155: error: previous definition of
> 'ap_hack_apr_allocator_free' was here

It seems like there is a duplication of declarations. And I think thats 
indeed the case when I have a look for "ap_hack_apr_allocator_free" in 
server/exports.c

First declaration on line 1309
=====================
1304  * /usr/include/apr-1/apr_allocator.h
1305  */
1306 const void *ap_hack_apr_allocator_create = (const void 
*)apr_allocator_create;
1307 const void *ap_hack_apr_allocator_destroy = (const void 
*)apr_allocator_destroy;
1308 const void *ap_hack_apr_allocator_alloc = (const void 
*)apr_allocator_alloc;
1309 const void *ap_hack_apr_allocator_free = (const void 
*)apr_allocator_free;


First declaration on line 155
=====================
 
 150  * /opt/local/include/apr-1/apr_allocator.h
 151  */
 152 const void *ap_hack_apr_allocator_create = (const void 
*)apr_allocator_create;
 153 const void *ap_hack_apr_allocator_destroy = (const void 
*)apr_allocator_destroy;
 154 const void *ap_hack_apr_allocator_alloc = (const void 
*)apr_allocator_alloc;
 155 const void *ap_hack_apr_allocator_free = (const void 
*)apr_allocator_free;


Maybe this is a problem?

ben




Sander Temme wrote:
>
> On Jul 30, 2008, at 5:25 AM, Ben Aurel wrote:
>
>> exports.c:1309: error: redefinition of 'ap_hack_apr_allocator_free'
>> exports.c:155: error: previous definition of
>> 'ap_hack_apr_allocator_free' was here
>
>
> Could you cast a glance at those areas of server/exports.c and see if 
> you notice anything weird about the paths in the comments above the 
> declarations?  I have seen stuff like this happen when I called 
> buildconf in the various spots around httpd and APR with inconsistent 
> --with-apr* parameters, with trailing slashes on the directory name 
> and without.
>
> This *should* not affect you if you just run ./configure && make as 
> you described, and I see you force --with-included-apr so you're 
> building the package as you got it.
>
> But it'd still be a good idea to see what's going on with those 
> declarations.
>
> S.
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] error when MAKE Apache 2.2.*: exports.c : error: previous definition of '...' was here

Posted by Sander Temme <sc...@apache.org>.
On Jul 30, 2008, at 5:25 AM, Ben Aurel wrote:

> exports.c:1309: error: redefinition of 'ap_hack_apr_allocator_free'
> exports.c:155: error: previous definition of
> 'ap_hack_apr_allocator_free' was here


Could you cast a glance at those areas of server/exports.c and see if  
you notice anything weird about the paths in the comments above the  
declarations?  I have seen stuff like this happen when I called  
buildconf in the various spots around httpd and APR with inconsistent  
--with-apr* parameters, with trailing slashes on the directory name  
and without.

This *should* not affect you if you just run ./configure && make as  
you described, and I see you force --with-included-apr so you're  
building the package as you got it.

But it'd still be a good idea to see what's going on with those  
declarations.

S.

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