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

compiling a rainy day

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2000-09-08 10:24:34 CEST

I just pulled down an updated tree.

I have a few minor issues:

* two prototype mistakes in subversion/include/svn_ra.h prevented my gcc to
  compile.
* The previously discussed -pthread "problem"
* No configure script seems to detect solaris' need for -lsocket

If this isn't just my fault, I'm willing to submit a fix for the last issue.
Patch for the first is included.

My system:

% uname -a
SunOS pm1 5.6 Generic_105181-16 sun4u sparc sun4u
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
gcc version 2.8.1

I had to apply this patch to make it even compile:

Index: svn_ra.h
===================================================================
RCS file: /cvs/subversion/subversion/include/svn_ra.h,v
retrieving revision 1.3
diff -c -r1.3 svn_ra.h
*** svn_ra.h 2000/08/31 13:52:28 1.3
--- svn_ra.h 2000/09/08 08:05:20
***************
*** 74,85 ****
                                 int recurse,
                                 const svn_delta_walk_t *walker,
                                 void *walk_baton,
! void *dir_baton,
! apr_pool_t *pool);
  
! svn_error_t * svn_ra_get_commit_walker(const svn_delta_walk_t **walker,
! void **walk_baton,
! ... /* more params */);
  
  svn_error_t * svn_ra_get_update_walker(const svn_delta_walk_t **walker,
                                         void **walk_baton,
--- 74,84 ----
                                 int recurse,
                                 const svn_delta_walk_t *walker,
                                 void *walk_baton,
! void *dir_baton);
  
! svn_error_t * svn_ra_get_commit_walker(svn_ra_session_t *ras,
! const svn_delta_walk_t **walker,
! void **walk_baton);
  
  svn_error_t * svn_ra_get_update_walker(const svn_delta_walk_t **walker,
                                         void **walk_baton,

make[4]: Entering directory `/home/dast/src/subversion/subversion/libsvn_ra_dav/tests'
/bin/sh ../../../libtool --mode=link gcc -pthread -o ra-dav-test ra-dav-test.o ../libsvn_ra_dav.la ../../libsvn_subr/libsvn_subr.la ../../libsvn_string/libsvn_string.la ../../libsvn_wc/libsvn_wc.la ../../libsvn_delta/libsvn_delta.la ../../../expat-lite/libexpat.la ../../../neon/libneon.la ../../../apr/libapr.a
gcc -pthread -o .libs/ra-dav-test ra-dav-test.o ../.libs/libsvn_ra_dav.a ../../libsvn_subr/.libs/libsvn_subr.a ../../libsvn_string/.libs/libsvn_string.a ../../libsvn_wc/.libs/libsvn_wc.a ../../libsvn_delta/.libs/libsvn_delta.a ../../../expat-lite/.libs/libexpat.a ../../../neon/.libs/libneon.so -L. -L/home/dast/src/subversion/expat-lite -lnsl -lexpat ../../../apr/libapr.a -R/usr/local/lib
gcc: unrecognized option `-pthread'
Undefined first referenced
 symbol in file
socket ../../../neon/.libs/libneon.so
recv ../../../neon/.libs/libneon.so
accept ../../../neon/.libs/libneon.so
getservbyname ../../../neon/.libs/libneon.so
connect ../../../neon/.libs/libneon.so
ld: fatal: Symbol referencing errors. No output written to .libs/ra-dav-test
make[4]: *** [ra-dav-test] Error 1
make[4]: Leaving directory `/home/dast/src/subversion/subversion/libsvn_ra_dav/tests'

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Sat Oct 21 14:36:07 2006

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