You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Patrick May <pa...@mac.com> on 2013/03/23 22:28:53 UTC

Problem building on OS X Lion

	I downloaded the subversion-1.7.8 tar ball and attempted to build it on OS X 10.8.3 with the latest version of Xcode installed.  After "configure --prefix=/usr/local", running make gives the errors attached below.  Is there something wrong with my build environment?

Thanks,

Patrick

cd subversion/svn && /bin/sh /Users/Patrick/packages/subversion-1.7.8/libtool --tag=CC --silent --mode=link gcc  -g -O2    -Werror=implicit-function-declaration   -rpath /usr/local/lib  -o svn  add-cmd.lo blame-cmd.lo cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo commit-cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo diff-cmd.lo export-cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-cmd.lo main.lo merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo notify.lo patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-conflicts.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo ../../subversion/libsvn_client/libsvn_client-1.la ../../subversion/libsvn_wc/libsvn_wc-1.la ../../subversion/libsvn_ra/libsvn_ra-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_diff/libsvn_diff-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1 -L/usr/local/lib -lneon -lz -L/opt/local/lib -lssl -lcrypto -dynamic -Wl,-search_paths_first -lkrb5 -lexpat -framework Security -framework CoreFoundation -framework CoreServices
ld: warning: ignoring file /usr/local/lib/libaprutil-1.dylib, missing required architecture x86_64 in file /usr/local/lib/libaprutil-1.dylib (2 slices)
ld: warning: ignoring file /usr/local/lib/libapr-1.dylib, missing required architecture x86_64 in file /usr/local/lib/libapr-1.dylib (2 slices)
ld: warning: ignoring file /usr/local/lib/libz.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/lib/libz.a
ld: warning: ignoring file /usr/local/lib/libexpat.dylib, missing required architecture x86_64 in file /usr/local/lib/libexpat.dylib (2 slices)
Undefined symbols for architecture x86_64:
  "_apr_allocator_create", referenced from:
      _main in main.o
  "_apr_allocator_max_free_set", referenced from:
      _main in main.o
  "_apr_allocator_owner_set", referenced from:
      _main in main.o
  "_apr_array_make", referenced from:
      _svn_cl__add in add-cmd.o
      _svn_cl__cat in cat-cmd.o
      _svn_cl__changelist in changelist-cmd.o
      _svn_cl__copy in copy-cmd.o
      svn_cl(double, int, float, float)in diff-cmd.o
      _svn_cl__log in log-cmd.o
      _main in main.o
      ...
  "_apr_array_pop", referenced from:
      _svn_cl__checkout in checkout-cmd.o
      _svn_cl__copy in copy-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      _log_entry_receiver in log-cmd.o
      _svn_cl__move in move-cmd.o
  "_apr_array_push", referenced from:
      _svn_cl__copy in copy-cmd.o
      svn_cl(double, int, float, float)in diff-cmd.o
      _svn_cl__log in log-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      _log_entry_receiver in log-cmd.o
      _main in main.o
      _svn_cl__merge in merge-cmd.o
      ...
  "_apr_env_get", referenced from:
      _svn_cl__merge_file_externally in util.o
  "_apr_file_close", referenced from:
      _svn_cl__edit_string_externally in util.o
  "_apr_file_mtime_set", referenced from:
      _svn_cl__edit_string_externally in util.o
  "_apr_file_open_stderr", referenced from:
      svn_cl(double, int, float, float)in diff-cmd.o
      _log_entry_receiver in log-cmd.o
  "_apr_file_open_stdout", referenced from:
      svn_cl(double, int, float, float)in diff-cmd.o
      _log_entry_receiver in log-cmd.o
  "_apr_file_write_full", referenced from:
      _svn_cl__edit_string_externally in util.o
  "_apr_filepath_get", referenced from:
      _svn_cl__edit_string_externally in util.o
      _svn_cl__merge_file_externally in util.o
      _svn_cl__edit_file_externally in util.o
  "_apr_filepath_set", referenced from:
      _svn_cl__edit_string_externally in util.o
      _svn_cl__edit_file_externally in util.o
  "_apr_getopt_long", referenced from:
      _main in main.o
  "_apr_hash_count", referenced from:
      _svn_cl__log in log-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      _svn_cl__propget in propget-cmd.o
      _svn_cl__status in status-cmd.o
  "_apr_hash_first", referenced from:
      _svn_cl__log in log-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      _svn_cl__status in status-cmd.o
  "_apr_hash_get", referenced from:
      _svn_cl__commit in commit-cmd.o
      _log_entry_receiver in log-cmd.o
      _main in main.o
      _svn_cl__propedit in propedit-cmd.o
      _print_status in status-cmd.o
      _svn_cl__make_log_msg_baton in util.o
      _find_editor_binary in util.o
      ...
  "_apr_hash_make", referenced from:
      _main in main.o
      _svn_cl__propget in propget-cmd.o
      _svn_cl__status in status-cmd.o
      _svn_cl__print_status_xml in status.o
      _add_conflict_version_xml in tree-conflicts.o
      _svn_cl__append_tree_conflict_info_xml in tree-conflicts.o
  "_apr_hash_next", referenced from:
      _svn_cl__log in log-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      _svn_cl__status in status-cmd.o
  "_apr_hash_set", referenced from:
      _main in main.o
      _svn_cl__propget in propget-cmd.o
      _print_status in status-cmd.o
      _svn_cl__print_status_xml in status.o
      _add_conflict_version_xml in tree-conflicts.o
      _svn_cl__append_tree_conflict_info_xml in tree-conflicts.o
  "_apr_ltoa", referenced from:
      _add_conflict_version_xml in tree-conflicts.o
  "_apr_palloc", referenced from:
      _svn_cl__conflict_baton_make in conflict-callbacks.o
      _svn_cl__copy in copy-cmd.o
      _main in main.o
      _svn_cl__merge in merge-cmd.o
      _svn_cl__get_notifier in notify.o
      _print_status in status-cmd.o
      _svn_cl__make_log_msg_baton in util.o
      ...
  "_apr_pool_clear", referenced from:
      _svn_cl__add in add-cmd.o
      _svn_cl__blame in blame-cmd.o
      _svn_cl__cat in cat-cmd.o
      _svn_cl__checkout in checkout-cmd.o
      _svn_cl__cleanup in cleanup-cmd.o
      _svn_cl__conflict_handler in conflict-callbacks.o
      svn_cl(double, int, float, float)in diff-cmd.o
      ...
  "_apr_pool_destroy", referenced from:
      _svn_cl__add in add-cmd.o
      _svn_cl__blame in blame-cmd.o
      _svn_cl__cat in cat-cmd.o
      _svn_cl__checkout in checkout-cmd.o
      _svn_cl__cleanup in cleanup-cmd.o
      _svn_cl__conflict_handler in conflict-callbacks.o
      svn_cl(double, int, float, float)in diff-cmd.o
      ...
  "_apr_psprintf", referenced from:
      _blame_receiver_xml in blame-cmd.o
      _print_line_info in blame-cmd.o
      _svn_cl__help in help-cmd.o
      _print_info_xml in info-cmd.o
      _print_dirent_xml in list-cmd.o
      _print_dirent in list-cmd.o
      _log_entry_receiver_xml in log-cmd.o
      ...
  "_apr_pstrcat", referenced from:
      _svn_cl__conflict_handler in conflict-callbacks.o
      _notify in notify.o
  "_apr_pstrdup", referenced from:
      _svn_cl__commit in commit-cmd.o
      _svn_cl__conflict_handler in conflict-callbacks.o
      _print_info_xml in info-cmd.o
      _main in main.o
      _print_status in status-cmd.o
      _changelist_receiver in util.o
      _svn_cl__get_log_message in util.o
      ...
  "_apr_signal", referenced from:
      _signal_handler in main.o
      _main in main.o
  "_apr_stat$INODE64", referenced from:
      _main in main.o
      _svn_cl__edit_string_externally in util.o
  "_apr_strftime", referenced from:
      _print_dirent in list-cmd.o
  "_apr_time_exp_lt", referenced from:
      _print_dirent in list-cmd.o
  "_apr_time_now", referenced from:
      _print_dirent in list-cmd.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1




Re: Problem building on OS X Lion

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
For sqlite you can use the amalgamtion to statically link sqlite into svn.

./get-deps.sh sqlite

might do the trick (if it fails, just see INSTALL for the longhand way).

Patrick May wrote on Sun, Mar 24, 2013 at 10:56:53 -0400:
> 	Thanks for the reply.  I just tried setting CFLAGS and CPPFLAGS to -m32, but then I get errors about linking to sqlite libraries compiled with a different version.  I tried reinstalling apr and apr-util but that didn't solve the problem.  Do you know where I can get the correct libraries?
> 
> Thanks,
> 
> Patrick
> 
> On Mar 23, 2013, at 10:38 PM, Bert Huijben <be...@qqmail.nl> wrote:
> 
> > 
> > 
> >> -----Original Message-----
> >> From: Patrick May [mailto:patrick.may@mac.com]
> >> Sent: zaterdag 23 maart 2013 14:29
> >> To: users@subversion.apache.org
> >> Subject: Problem building on OS X Lion
> >> 
> >> 	I downloaded the subversion-1.7.8 tar ball and attempted to build it
> >> on OS X 10.8.3 with the latest version of Xcode installed.  After
> > "configure --
> >> prefix=/usr/local", running make gives the errors attached below.  Is
> > there
> >> something wrong with my build environment?
> >> 
> >> Thanks,
> >> 
> >> Patrick
> >> 
> >> cd subversion/svn && /bin/sh /Users/Patrick/packages/subversion-
> >> 1.7.8/libtool --tag=CC --silent --mode=link gcc  -g -O2
> > -Werror=implicit-
> >> function-declaration   -rpath /usr/local/lib  -o svn  add-cmd.lo
> > blame-cmd.lo
> >> cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo commit-
> >> cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo diff-cmd.lo export-
> >> cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-
> >> cmd.lo main.lo merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo
> >> notify.lo patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo
> >> proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo
> >> resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-
> >> conflicts.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo
> >> ../../subversion/libsvn_client/libsvn_client-1.la
> >> ../../subversion/libsvn_wc/libsvn_wc-1.la
> >> ../../subversion/libsvn_ra/libsvn_ra-1.la
> >> ../../subversion/libsvn_delta/libsvn_delta-1.la
> >> ../../subversion/libsvn_diff/libsvn_diff-1.la
> >> ../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1
> > -L/usr/local/lib
> >> -lneon -lz -L/opt/local/lib -lssl -lcrypto -dynamic
> > -Wl,-search_paths_first -
> >> lkrb5 -lexpat -framework Security -framework CoreFoundation -framework
> >> CoreServices
> >> ld: warning: ignoring file /usr/local/lib/libaprutil-1.dylib, missing
> > required
> >> architecture x86_64 in file /usr/local/lib/libaprutil-1.dylib (2 slices)
> >> ld: warning: ignoring file /usr/local/lib/libapr-1.dylib, missing required
> >> architecture x86_64 in file /usr/local/lib/libapr-1.dylib (2 slices)
> >> ld: warning: ignoring file /usr/local/lib/libz.a, file was built for
> > archive which is
> >> not the architecture being linked (x86_64): /usr/local/lib/libz.a
> >> ld: warning: ignoring file /usr/local/lib/libexpat.dylib, missing required
> >> architecture x86_64 in file /usr/local/lib/libexpat.dylib (2 slices)
> >> Undefined symbols for architecture x86_64:
> > 
> > It looks like you're trying to buil dan x64 version of subversion, but you
> > only have a x86 version of the required dependency apr.
> > 
> > You should either install a x64 apr first, or build subversion as x86.
> > (I would recommend doing whatever is easier for you, as the result will be
> > virtually the same. Subversion doesn't need that much memory)
> > 
> > 	Bert
> > 
> 

Re: Problem building on OS X Lion

Posted by Patrick May <pa...@mac.com>.
	Thanks for the reply.  I just tried setting CFLAGS and CPPFLAGS to -m32, but then I get errors about linking to sqlite libraries compiled with a different version.  I tried reinstalling apr and apr-util but that didn't solve the problem.  Do you know where I can get the correct libraries?

Thanks,

Patrick

On Mar 23, 2013, at 10:38 PM, Bert Huijben <be...@qqmail.nl> wrote:

> 
> 
>> -----Original Message-----
>> From: Patrick May [mailto:patrick.may@mac.com]
>> Sent: zaterdag 23 maart 2013 14:29
>> To: users@subversion.apache.org
>> Subject: Problem building on OS X Lion
>> 
>> 	I downloaded the subversion-1.7.8 tar ball and attempted to build it
>> on OS X 10.8.3 with the latest version of Xcode installed.  After
> "configure --
>> prefix=/usr/local", running make gives the errors attached below.  Is
> there
>> something wrong with my build environment?
>> 
>> Thanks,
>> 
>> Patrick
>> 
>> cd subversion/svn && /bin/sh /Users/Patrick/packages/subversion-
>> 1.7.8/libtool --tag=CC --silent --mode=link gcc  -g -O2
> -Werror=implicit-
>> function-declaration   -rpath /usr/local/lib  -o svn  add-cmd.lo
> blame-cmd.lo
>> cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo commit-
>> cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo diff-cmd.lo export-
>> cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-
>> cmd.lo main.lo merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo
>> notify.lo patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo
>> proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo
>> resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-
>> conflicts.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo
>> ../../subversion/libsvn_client/libsvn_client-1.la
>> ../../subversion/libsvn_wc/libsvn_wc-1.la
>> ../../subversion/libsvn_ra/libsvn_ra-1.la
>> ../../subversion/libsvn_delta/libsvn_delta-1.la
>> ../../subversion/libsvn_diff/libsvn_diff-1.la
>> ../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1
> -L/usr/local/lib
>> -lneon -lz -L/opt/local/lib -lssl -lcrypto -dynamic
> -Wl,-search_paths_first -
>> lkrb5 -lexpat -framework Security -framework CoreFoundation -framework
>> CoreServices
>> ld: warning: ignoring file /usr/local/lib/libaprutil-1.dylib, missing
> required
>> architecture x86_64 in file /usr/local/lib/libaprutil-1.dylib (2 slices)
>> ld: warning: ignoring file /usr/local/lib/libapr-1.dylib, missing required
>> architecture x86_64 in file /usr/local/lib/libapr-1.dylib (2 slices)
>> ld: warning: ignoring file /usr/local/lib/libz.a, file was built for
> archive which is
>> not the architecture being linked (x86_64): /usr/local/lib/libz.a
>> ld: warning: ignoring file /usr/local/lib/libexpat.dylib, missing required
>> architecture x86_64 in file /usr/local/lib/libexpat.dylib (2 slices)
>> Undefined symbols for architecture x86_64:
> 
> It looks like you're trying to buil dan x64 version of subversion, but you
> only have a x86 version of the required dependency apr.
> 
> You should either install a x64 apr first, or build subversion as x86.
> (I would recommend doing whatever is easier for you, as the result will be
> virtually the same. Subversion doesn't need that much memory)
> 
> 	Bert
> 


RE: Problem building on OS X Lion

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Patrick May [mailto:patrick.may@mac.com]
> Sent: zaterdag 23 maart 2013 14:29
> To: users@subversion.apache.org
> Subject: Problem building on OS X Lion
> 
> 	I downloaded the subversion-1.7.8 tar ball and attempted to build it
> on OS X 10.8.3 with the latest version of Xcode installed.  After
"configure --
> prefix=/usr/local", running make gives the errors attached below.  Is
there
> something wrong with my build environment?
> 
> Thanks,
> 
> Patrick
> 
> cd subversion/svn && /bin/sh /Users/Patrick/packages/subversion-
> 1.7.8/libtool --tag=CC --silent --mode=link gcc  -g -O2
-Werror=implicit-
> function-declaration   -rpath /usr/local/lib  -o svn  add-cmd.lo
blame-cmd.lo
> cat-cmd.lo changelist-cmd.lo checkout-cmd.lo cleanup-cmd.lo commit-
> cmd.lo conflict-callbacks.lo copy-cmd.lo delete-cmd.lo diff-cmd.lo export-
> cmd.lo help-cmd.lo import-cmd.lo info-cmd.lo list-cmd.lo lock-cmd.lo log-
> cmd.lo main.lo merge-cmd.lo mergeinfo-cmd.lo mkdir-cmd.lo move-cmd.lo
> notify.lo patch-cmd.lo propdel-cmd.lo propedit-cmd.lo propget-cmd.lo
> proplist-cmd.lo props.lo propset-cmd.lo relocate-cmd.lo resolve-cmd.lo
> resolved-cmd.lo revert-cmd.lo status-cmd.lo status.lo switch-cmd.lo tree-
> conflicts.lo unlock-cmd.lo update-cmd.lo upgrade-cmd.lo util.lo
> ../../subversion/libsvn_client/libsvn_client-1.la
> ../../subversion/libsvn_wc/libsvn_wc-1.la
> ../../subversion/libsvn_ra/libsvn_ra-1.la
> ../../subversion/libsvn_delta/libsvn_delta-1.la
> ../../subversion/libsvn_diff/libsvn_diff-1.la
> ../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1
-L/usr/local/lib
> -lneon -lz -L/opt/local/lib -lssl -lcrypto -dynamic
-Wl,-search_paths_first -
> lkrb5 -lexpat -framework Security -framework CoreFoundation -framework
> CoreServices
> ld: warning: ignoring file /usr/local/lib/libaprutil-1.dylib, missing
required
> architecture x86_64 in file /usr/local/lib/libaprutil-1.dylib (2 slices)
> ld: warning: ignoring file /usr/local/lib/libapr-1.dylib, missing required
> architecture x86_64 in file /usr/local/lib/libapr-1.dylib (2 slices)
> ld: warning: ignoring file /usr/local/lib/libz.a, file was built for
archive which is
> not the architecture being linked (x86_64): /usr/local/lib/libz.a
> ld: warning: ignoring file /usr/local/lib/libexpat.dylib, missing required
> architecture x86_64 in file /usr/local/lib/libexpat.dylib (2 slices)
> Undefined symbols for architecture x86_64:

It looks like you're trying to buil dan x64 version of subversion, but you
only have a x86 version of the required dependency apr.

You should either install a x64 apr first, or build subversion as x86.
(I would recommend doing whatever is easier for you, as the result will be
virtually the same. Subversion doesn't need that much memory)

	Bert