Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running CentOS 6.3 64bit and DirectAdmin control panel. Currently I have installed Apache Subversion 1.6.19 without any problems.

I have installed expat and expat-devel and neon-devel using yum.

When installing Apache Subversion 1.6.19 this configure command works fine:

./configure --prefix=/usr --with-ssl --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

However when installing Apache Subversion 1.7.7 using the same configure command as above, I get this error after doing commmand "make":

/etc/httpd/lib/ undefined reference to `XML_StopParser'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1

However I found out I can solve that problem by adding this into the configure command:


So it then looks like this:

./configure --prefix=/usr --with-ssl --with-expat=includes:lib_search_dirs:libs --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

However that configure command then give this warning:

configure: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option.

So I want to solve that. I have experimentet alot, but not been able to figure out how to "specifying exact location of Expat" in configure command, and how to find out what the location should be?

However after a lot of searching I found this: - that is a FreeBSD user saying this:

Building Subversion 1.7.x on FreeBSD currently requires a configure flag:


As that is the default location of expat on that platform, it would be nice if configure detected it automatically.

However I am not using FreeBSD, I am running CentOS 6.3 64bit. Also remember I said I have installed expat and expat-devel and neon-devel using yum.

However I tried to use the expat/command path posted by the FreeBSD user, and it seems to work, it does not give errors when running configure command, and does not give errors when running "make". This is what I used then:

./configure --prefix=/usr --with-ssl --with-expat=/usr/local/include:/usr/local/lib:expat --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

But this server is a production server, and therfor I need your help to advice if this is also correct to run on a CentOS server? Is the following path in expat command correct on CentOS?:


If not, please advice what it should be changed to. Thanks in advance for any confirmation or help on this!

I was wrong, the expat location from FreeBSD does not work on CentOS. This:

./configure --prefix=/usr --with-ssl --with-expat=/usr/local/include:/usr/local/lib:expat --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

Give this error after doing "make":

/etc/httpd/lib/ undefined reference to `XML_StopParser'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1

I give up. I do not find any answer about how to specify the expat loacation in above command for CentOS anywhere on the Internet (been searching for over a week after solution), and have posted for help several places.

share|improve this question

closed as off-topic by HopelessN00b Apr 3 '15 at 17:31

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

You have installed the expat-devel package, right?

share|improve this answer
Yes, I have installed the expat-devel package. – ditto Oct 22 '12 at 17:33
Then you should be able to ignore the spurious warning. – Michael Hampton Oct 22 '12 at 17:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.