"Schuh, Michael (ARC-AA)" <michael.sc...@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

Reply via email to