You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hasson Yehudit <Ye...@comverse.com> on 2006/09/18 17:32:56 UTC

[users@httpd] compilation problem

Hi

I have a compilation problem while trying to compile the apache second
time with different configuration:

My steps are:

1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-disk-cache
2)   make 
3)  make install 
4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-mem-cache
5) make 

I gets the following error:

.....
  exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined here
exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here
exports.c:2564: redefinition of `ap_hack_apr_xml_parser_geterror'
exports.c:1143: `ap_hack_apr_xml_parser_geterror' previously defined
here
exports.c:2565: redefinition of `ap_hack_apr_xml_to_text'
exports.c:1144: `ap_hack_apr_xml_to_text' previously defined here
exports.c:2566: redefinition of `ap_hack_apr_xml_empty_elem'
exports.c:1145: `ap_hack_apr_xml_empty_elem' previously defined here
exports.c:2567: redefinition of `ap_hack_apr_xml_quote_string'
exports.c:1146: `ap_hack_apr_xml_quote_string' previously defined here
exports.c:2568: redefinition of `ap_hack_apr_xml_quote_elem'
exports.c:1147: `ap_hack_apr_xml_quote_elem' previously defined here
exports.c:2569: redefinition of `ap_hack_apr_xml_insert_uri'
exports.c:1148: `ap_hack_apr_xml_insert_uri' previously defined here
exports.c:2578: redefinition of `ap_hack_apu_version'
exports.c:1157: `ap_hack_apu_version' previously defined here
exports.c:2579: redefinition of `ap_hack_apu_version_string'
exports.c:1158: `ap_hack_apu_version_string' previously defined here
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/usr/apache/httpd-2.2.3/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/apache/httpd-2.2.3/server'
make: *** [all-recursive] Error 1
[root@mogli httpd-2.2.3]#

---------------------------------------------------------------------
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] compilation problem

Posted by Tal Cohen <ta...@exenge.com>.
 
Have you tried doing a "make clean" or "make distclean" in-between "make
install"s:
	./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-disk-cache
	make
	make install
	make clean (or try make distclean)
	./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-mem-cache
	make

Tal

-----Original Message-----
From: Hasson Yehudit [mailto:Yehudit.Hasson@comverse.com] 
Sent: Tuesday, September 19, 2006 2:08 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] compilation problem

Thanks 

-----Original Message-----
From: Ben [mailto:ben@redsnapper.net]
Sent: Monday, September 18, 2006 6:48 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] compilation problem

I've seen this error before.
It's because the current /usr/apache directory is causing some sort of
config problem

Try this -

mv /usr/apache /usr/apache.x
./configure --prefix=/usr/apache  --enable-proxy --enable-cache --
enable-disk-cache make mv  /usr/apache.x /usr/apache make install


-- should sort you out.


On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:

> Hi
>
> I have a compilation problem while trying to compile the apache second 
> time with different configuration:
>
> My steps are:
>
> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
> --enable-disk-cache
> 2)   make
> 3)  make install
> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
> --enable-mem-cache
> 5) make
>
> I gets the following error:
>
> .....
>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined 
> here
> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.5/450 - Release Date: 9/18/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: 9/19/2006
 


---------------------------------------------------------------------
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] compilation problem

Posted by Hasson Yehudit <Ye...@comverse.com>.
Ben and Tal 

Thanks for your comments, 
I tried your both suggestions:

1) 	./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-disk-cache
	make
	make install
	make clean 
	make distclean
	make extraclean  --->  error: not exist such a rule although it
is defined in the rules and in the makefile
	./configure --prefix=/usr/apache  --enable-proxy --enable-cache
--enable-mem-cache
	make
	make install --->   error: exports.c:2563: redefinition of
`ap_hack_apr_xml_parser_done'

2) 	clean download: created new instance of apache directory under
~/httpd223test.

Actually I use clean download every time I want to change configuration,
but I don't think it is the best way to work.
I want an option to change the current configuration and not create a
new one.

How do I do it?

Yehudit




-----Original Message-----
From: Ben [mailto:ben@redsnapper.net] 
Sent: Wednesday, September 20, 2006 6:14 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] compilation problem

Hi Hasson , as Tal mentions, one must do a make clean, or work with a
clean download..

Try the following - which uses a clean download:

mkdir -p /usr/apache                                  # may need sudo
mkdir -p ~/httpd223test
cd ~/httpd223test;
wget http://apache.rmplc.co.uk/httpd/httpd-2.2.3.tar.gz
tar -xzf httpd-2.2.3.tar.gz
cd httpd-2.2.3
HP_SRC=`pwd`
mv /usr/apache /usr/apache.x                     # may need sudo
./configure -q --prefix=/usr/apache  --enable-proxy --enable-cache --
enable-disk-cache
make                                                               #  
good time to make coffee, ring mum etc.
mv /usr/apache.x /usr/apache                    # may need sudo
make install                                                    #may  
need sudo
ldconfig -vn /usr/apache/lib                         #not sure if  
this is necessary

If it fails, let me know where - and how/why!
Of course, if it succeeds, it would be nice to know that too..
	-b

On 20 Sep 2006, at 15:23, Hasson Yehudit wrote:

> I tried it, but it didn't work (I got the same error while compiling).
> Maybe do you have another suggestion?
>
>
> -----Original Message-----
> From: Ben [mailto:ben@redsnapper.net]
> Sent: Monday, September 18, 2006 6:48 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] compilation problem
>
> I've seen this error before.
> It's because the current /usr/apache directory is causing some sort of

> config problem
>
> Try this -
>
> mv /usr/apache /usr/apache.x
> ./configure --prefix=/usr/apache  --enable-proxy --enable-cache -- 
> enable-disk-cache make mv  /usr/apache.x /usr/apache make install
>
>
> -- should sort you out.
>
>
> On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:
>
>> Hi
>>
>> I have a compilation problem while trying to compile the apache 
>> second
>
>> time with different configuration:
>>
>> My steps are:
>>
>> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
>> --enable-disk-cache
>> 2)   make
>> 3)  make install
>> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
>> --enable-mem-cache
>> 5) make
>>
>> I gets the following error:
>>
>> .....
>>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined 
>> here
>> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
>> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here
>
>
> ---------------------------------------------------------------------
> 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
>
> ---------------------------------------------------------------------
> 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
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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] compilation problem

Posted by Ben <be...@redsnapper.net>.
Hi Hasson , as Tal mentions, one must do a make clean, or work with a  
clean download..

Try the following - which uses a clean download:

mkdir -p /usr/apache                                  # may need sudo
mkdir -p ~/httpd223test
cd ~/httpd223test;
wget http://apache.rmplc.co.uk/httpd/httpd-2.2.3.tar.gz
tar -xzf httpd-2.2.3.tar.gz
cd httpd-2.2.3
HP_SRC=`pwd`
mv /usr/apache /usr/apache.x                     # may need sudo
./configure -q --prefix=/usr/apache  --enable-proxy --enable-cache -- 
enable-disk-cache
make                                                               #  
good time to make coffee, ring mum etc.
mv /usr/apache.x /usr/apache                    # may need sudo
make install                                                    #may  
need sudo
ldconfig -vn /usr/apache/lib                         #not sure if  
this is necessary

If it fails, let me know where - and how/why!
Of course, if it succeeds, it would be nice to know that too..
	-b

On 20 Sep 2006, at 15:23, Hasson Yehudit wrote:

> I tried it, but it didn't work (I got the same error while compiling).
> Maybe do you have another suggestion?
>
>
> -----Original Message-----
> From: Ben [mailto:ben@redsnapper.net]
> Sent: Monday, September 18, 2006 6:48 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] compilation problem
>
> I've seen this error before.
> It's because the current /usr/apache directory is causing some sort of
> config problem
>
> Try this -
>
> mv /usr/apache /usr/apache.x
> ./configure --prefix=/usr/apache  --enable-proxy --enable-cache --
> enable-disk-cache make mv  /usr/apache.x /usr/apache make install
>
>
> -- should sort you out.
>
>
> On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:
>
>> Hi
>>
>> I have a compilation problem while trying to compile the apache  
>> second
>
>> time with different configuration:
>>
>> My steps are:
>>
>> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
>> --enable-disk-cache
>> 2)   make
>> 3)  make install
>> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
>> --enable-mem-cache
>> 5) make
>>
>> I gets the following error:
>>
>> .....
>>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined
>> here
>> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
>> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here
>
>
> ---------------------------------------------------------------------
> 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
>
> ---------------------------------------------------------------------
> 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
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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] compilation problem

Posted by Hasson Yehudit <Ye...@comverse.com>.
I tried it, but it didn't work (I got the same error while compiling).
Maybe do you have another suggestion?


-----Original Message-----
From: Ben [mailto:ben@redsnapper.net]
Sent: Monday, September 18, 2006 6:48 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] compilation problem

I've seen this error before.
It's because the current /usr/apache directory is causing some sort of
config problem

Try this -

mv /usr/apache /usr/apache.x
./configure --prefix=/usr/apache  --enable-proxy --enable-cache --
enable-disk-cache make mv  /usr/apache.x /usr/apache make install


-- should sort you out.


On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:

> Hi
>
> I have a compilation problem while trying to compile the apache second

> time with different configuration:
>
> My steps are:
>
> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
> --enable-disk-cache
> 2)   make
> 3)  make install
> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache 
> --enable-mem-cache
> 5) make
>
> I gets the following error:
>
> .....
>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined 
> here
> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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

---------------------------------------------------------------------
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] compilation problem

Posted by Hasson Yehudit <Ye...@comverse.com>.
Thanks 

-----Original Message-----
From: Ben [mailto:ben@redsnapper.net] 
Sent: Monday, September 18, 2006 6:48 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] compilation problem

I've seen this error before.
It's because the current /usr/apache directory is causing some sort of
config problem

Try this -

mv /usr/apache /usr/apache.x
./configure --prefix=/usr/apache  --enable-proxy --enable-cache --
enable-disk-cache make mv  /usr/apache.x /usr/apache make install


-- should sort you out.


On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:

> Hi
>
> I have a compilation problem while trying to compile the apache second
> time with different configuration:
>
> My steps are:
>
> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
> --enable-disk-cache
> 2)   make
> 3)  make install
> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
> --enable-mem-cache
> 5) make
>
> I gets the following error:
>
> .....
>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined  
> here
> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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] compilation problem

Posted by Ben <be...@redsnapper.net>.
I've seen this error before.
It's because the current /usr/apache directory is causing some sort  
of config problem

Try this -

mv /usr/apache /usr/apache.x
./configure --prefix=/usr/apache  --enable-proxy --enable-cache -- 
enable-disk-cache
make
mv  /usr/apache.x /usr/apache
make install


-- should sort you out.


On 18 Sep 2006, at 16:32, Hasson Yehudit wrote:

> Hi
>
> I have a compilation problem while trying to compile the apache second
> time with different configuration:
>
> My steps are:
>
> 1)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
> --enable-disk-cache
> 2)   make
> 3)  make install
> 4)  ./configure --prefix=/usr/apache  --enable-proxy --enable-cache
> --enable-mem-cache
> 5) make
>
> I gets the following error:
>
> .....
>   exports.c:1141: `ap_hack_apr_xml_parser_feed' previously defined  
> here
> exports.c:2563: redefinition of `ap_hack_apr_xml_parser_done'
> exports.c:1142: `ap_hack_apr_xml_parser_done' previously defined here


---------------------------------------------------------------------
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