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

Re: questions building svn under OS X w/o fink

From: Hamilton Link <helink_at_sandia.gov>
Date: 2002-07-30 00:39:15 CEST

Thanks for your time on this, I've spent a good solid two or three
*days* building and rebuilding everything with slightly different
configurations and directory layouts. The svn INSTALL file is, I think,
improvable -- I don't think the list of build requirements is complete
for an OS X system, for one thing.

Does the following detail help?

Philip Martin writes:

> "Hamilton Link" <helink@sandia.gov> writes:
>
> > I've read all the install files and run through the process a number
> > of times, but I still can't quite complete the whole svn build.
>
> It's hard to diagnose problems without being given explicit error
> messages.
>

Understood: maximum verbosity. For apache, buildconf works, and
configure successfully configures apr, apr-util, expat, and pcre. Make
gives the following groups of warnings, and make install works fine
afterwards. (This is long, and after all the apache warnings there is
more email about neon. Sorry.)
--------
<apache make warnings>
"/bin/sh /Users/helink/archives/subversion/httpd-2.0/srclib/apr/libtool
--silent --mode=compile cc -g -O2 -Wall -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -DHAVE_CONFIG_H -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I../../include
-I../../include/arch/unix -I../../include/arch/unix -c poll.c && touch
poll.lo
poll.c: In function `apr_poll':
poll.c:178: warning: `fd' might be used uninitialized in this function
poll.c:226: warning: `fd' might be used uninitialized in this function
",
"cc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -I./include -I../include export_vars.h | sed -e
's/^\#[^!]*//' | sed -e '/^$/d' >> apr.exp
export_vars.h:1: undefined type, found `apr_month_snames'
export_vars.h:2: illegal external declaration, missing `;' after
`apr_day_snames'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
",
"cc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp
-I/Users/helink/archives/subversion/httpd-2.0/srclib/apr-util/include
-I/Users/helink/archives/subversion/httpd-2.0/srclib/apr-
util/include/private
-I/Users/helink/archives/subversion/httpd-2.0/srclib/apr/include
-I/usr/local/BerkeleyDB.4.0/include
-I/Users/helink/archives/subversion/httpd-2.0/srclib/apr-
util/xml/expat/lib export_vars.h | sed -e 's/^\#[^!]*//' | sed -e
'/^$/d' >> aprutil.exp
export_vars.h:1: undefined type, found `apr_bucket_type_flush'
export_vars.h:2: illegal external declaration, missing `;' after
`apr_bucket_type_eos'
export_vars.h:4: illegal external declaration, missing `;' after
`apr_bucket_type_heap'
export_vars.h:9: illegal external declaration, missing `;' after
`apr_bucket_type_pipe'
export_vars.h:11: illegal external declaration, missing `;' after
`apr_bucket_type_transient'
export_vars.h:17: illegal external declaration, missing `;' after
`apr_global_hook_pool'
export_vars.h:19: illegal external declaration, missing `;' after
`apr_hook_debug_enabled'
export_vars.h:21: illegal external declaration, missing `;' after
`apr_hook_debug_current'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
",
"/helink/archives/subversion/httpd-2.0/include
-I/Users/helink/archives/subversion/httpd-2.0/modules/dav/main
export_vars.h | grep -v apr_ | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >>
httpd.exp
export_vars.h:1: undefined type, found `ap_listeners'
export_vars.h:2: illegal external declaration, missing `;' after
`ap_top_module'
export_vars.h:4: illegal external declaration, missing `;' after
`ap_preloaded_modules'
export_vars.h:6: illegal external declaration, missing `;' after
`core_module'
export_vars.h:8: illegal external declaration, missing `;' after
`ap_core_output_filter_handle'
export_vars.h:10: illegal external declaration, missing `;' after
`ap_net_time_filter_handle'
export_vars.h:12: illegal external declaration, missing `;' after
`ap_server_argv0'
export_vars.h:14: illegal external declaration, missing `;' after
`ap_server_pre_read_config'
export_vars.h:16: illegal external declaration, missing `;' after
`ap_server_config_defines'
export_vars.h:18: illegal external declaration, missing `;' after
`ap_bucket_type_error'
export_vars.h:20: illegal external declaration, missing `;' after
`ap_scoreboard_fname'
export_vars.h:22: illegal external declaration, missing `;' after
`ap_my_generation'
export_vars.h:24: illegal external declaration, missing `;' after
`unixd_config'
export_vars.h:26: illegal external declaration, missing `;' after
`apr_day_snames'
export_vars.h:28: illegal external declaration, missing `;' after
`apr_bucket_type_eos'
export_vars.h:30: illegal external declaration, missing `;' after
`apr_bucket_type_heap'
export_vars.h:35: illegal external declaration, missing `;' after
`apr_bucket_type_pipe'
export_vars.h:37: illegal external declaration, missing `;' after
`apr_bucket_type_transient'
export_vars.h:43: illegal external declaration, missing `;' after
`apr_global_hook_pool'
export_vars.h:45: illegal external declaration, missing `;' after
`apr_hook_debug_enabled'
export_vars.h:47: illegal external declaration, missing `;' after
`apr_hook_debug_current'
export_vars.h:49: illegal external declaration, missing `;' after
`ap_http_input_filter_handle'
export_vars.h:51: illegal external declaration, missing `;' after
`ap_chunk_filter_handle'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
",
"/usr/bin/ld: warning multiple definitions of symbol _regcomp
/Users/helink/archives/subversion/httpd-2.0/srclib/pcre/.libs/libpcre.al(pcreposix.
lo) definition of _regcomp in section (__TEXT,__text)
/usr/lib/libm.dylib(regcomp.o) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
/Users/helink/archives/subversion/httpd-2.0/srclib/pcre/.libs/libpcre.al(pcreposix.
lo) definition of _regexec in section (__TEXT,__text)
/usr/lib/libm.dylib(regexec.o) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
/Users/helink/archives/subversion/httpd-2.0/srclib/pcre/.libs/libpcre.al(pcreposix.
lo) definition of _regfree in section (__TEXT,__text)
/usr/lib/libm.dylib(regfree.o) definition of _regfree
/usr/bin/ld: warning unused multiple definitions of symbol _regerror
/Users/helink/archives/subversion/httpd-2.0/srclib/pcre/.libs/libpcre.al(pcreposix.
lo) definition of _regerror in section (__TEXT,__text)
/usr/lib/libm.dylib(regerror.o) unused definition of _regerror
"
</apache make warnings>
--------

> > - When I build svn, do I need to supply more information than --with-
> > apr=/usr/local/apache2 and --with-apr-util=/usr/local/apache2 to make
> > this work?
>
> That should be sufficient. Given --with-apr=<foo> the script looks for
> the file <foo>/bin/apr-config, does this file exist? Can you run
>
> $ <foo>/bin/apr-config --libs

% /usr/local/apache2/bin/apr-config --libs
  -lm
% ./apu-config --libs
  -ldb /Users/helink/archives/subversion/httpd-2.0/srclib/apr-
util/xml/expat/lib/libexpat.la

> Do you have any other apr-config files in your PATH?

No. Actually I don't have *any* apr-config files in my path --
/usr/local/apache2/bin isn't in my path. The above libexpat.la file does
exist.

> You don't have to build neon within the subversion tree. Can you
> configure, build and install neon directly? Is the problem that you
> cannot configure neon in the subversion tree, or that you cannot
> configure neon at all?

OK, this may be indicative -- I can't build neon outside of svn:

If I try running the autogen script, I get this:
% sh ./autogen.sh
aclocal... ./autogen.sh: command not found: aclocal [5]
(plus, neon's aclocal.m4 and ltmain.sh files disappear!)

If I unpack neon again and just try autoconf, I get this:
% autoconf
configure.in:3: error: Autoconf version 2.53 or higher is required for
this script
configure.in:3: the top level
(which stinks, because the version of autoconf that I can get to work is
0.52, and the version fink knows about is also 0.52 as far as I can
tell, and svn/INSTALL says 0.50 or higher is needed...)

> > Then I ran "sh ./autogen.sh", cd ../obj, "./svn/configure --with-
> > apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
> > --with-berkeley-db=/usr/local/BerkeleyDB.4.0
> > --enable-maintainer-mode", and make clean, make, and make
> > install. (I'm building in a separate directory as per the instructions
> > so I can start over repeatedly)
>
> A typo? I assume "./svn/configure" should be "../svn/configure". Add
> --with-neon=<foo> if you build and install neon first.

Sorry, yes. A typo.

I haven't included the failures caused by an absence of makeinfo, once I
get working versions of makeinfo and neon I'll worry about that some
more (if it still happens).

thanks,
hamilton

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 30 00:35:27 2002

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.