[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Trouble compiling using "--with-serf=/home/myUserName/local"

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 23 Jul 2013 16:48:42 +0100

"Schuh, Michael (ARC-AA)" <michael.schuh_at_nasa.gov> writes:

> I looked in the config.log file and found
>
> configure:5202: checking for serf_context_create in -lserf-1
> configure:5227: gcc -o conftest -g -O2 -pthread -I/home/mschuh/local/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 - I/home/mschuh/local//include/serf-1 -L/home/mschuh/local/lib -L/home/mschuh/local//lib conftest.c -lserf-1 -laprutil-1 -lapr-1 -lz >&5
> /home/mschuh/local/lib/libserf-1.so: undefined reference to `apr_sockaddr_ip_getbuf'
> collect2: ld returned 1 exit status
>

> Any suggestions on what to do next? Am I close or way far from
> succesfully compiling Subversion? Is there an older version of
> subversion that might with the older apr library? I want to run "svn
> co https://svn.xxx.com/repository" and such.

The simplest thing to do is to edit the serf code so that it doesn't
call apr_sockaddr_ip_getbuf:

Index: buckets/buckets.c
===================================================================
--- buckets/buckets.c (revision 1991)
+++ buckets/buckets.c (working copy)
@@ -589,6 +589,7 @@
         if (skt) {
             /* Log local and remote ip address:port */
             fprintf(stderr, "[l:");
+#if 0
             if (apr_socket_addr_get(&sa, APR_LOCAL, skt) == APR_SUCCESS) {
                 char buf[32];
                 apr_sockaddr_ip_getbuf(buf, 32, sa);
@@ -600,6 +601,7 @@
                 apr_sockaddr_ip_getbuf(buf, 32, sa);
                 fprintf(stderr, "%s:%d", buf, sa->port);
             }
+#endif
             fprintf(stderr, "] ");
         }
 
It's only used in a rarely seen error message.

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data
Received on 2013-07-23 17:49:24 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.