You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Derek J. Balling" <dr...@megacity.org> on 2003/11/09 12:30:34 UTC
Problem Compiling on OS X Panther
./configure runs just fine, but when I go to build, I get:
make[3]: Nothing to be done for `local-all'.
Making all in poll/unix
/bin/sh /Users/dredd/subversion-0.32.1/apr/libtool --silent
--mode=compile gcc -g -O2 -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:126: storage size of `pollset' isn't known
poll.c: In function `apr_pollset_create':
poll.c:353: sizeof applied to an incomplete type
poll.c: In function `apr_pollset_add':
poll.c:392: invalid use of undefined type `struct pollfd'
poll.c:392: dereferencing pointer to incomplete type
poll.c:395: invalid use of undefined type `struct pollfd'
poll.c:395: dereferencing pointer to incomplete type
poll.c:398: invalid use of undefined type `struct pollfd'
poll.c:398: dereferencing pointer to incomplete type
poll.c: In function `apr_pollset_remove':
poll.c:468: invalid use of undefined type `struct pollfd'
poll.c:468: dereferencing pointer to incomplete type
poll.c:468: invalid use of undefined type `struct pollfd'
poll.c:468: dereferencing pointer to incomplete type
poll.c: In function `apr_pollset_poll':
poll.c:540: invalid use of undefined type `struct pollfd'
poll.c:540: dereferencing pointer to incomplete type
poll.c:543: invalid use of undefined type `struct pollfd'
poll.c:543: dereferencing pointer to incomplete type
make[3]: *** [poll.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [external-all] Error 1
Drakh:~/subversion-0.32.1 dredd$
Any thoughts on what I need to do differently? or what changes I need
to make to get this to compile?
Cheers,
D
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Problem Compiling on OS X Panther
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Monday, November 10, 2003 7:45 AM -0500 "Derek J. Balling"
<dr...@megacity.org> wrote:
> ld: Undefined symbols:
> _svn_pool_create_ex
> _svn_cmdline_cstring_from_utf8
> _svn_cmdline_cstring_from_utf8_fuzzy
> _svn_cmdline_cstring_to_utf8
> _svn_delta_path_driver
> _svn_io_files_contents_same_p
> _svn_io_set_file_affected_time
> _svn_prop_diffs
> _svn_subst_build_keywords
> _svn_delta_noop_window_handler
> _svn_io_dir_make_hidden
Sounds like you might have an already-installed version of Subversion on the
laptop? The MacOSX linker prefers libraries that are already installed rather
than passed on the command-line. So, you have to remove old SVN versions
before installing. -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Problem Compiling on OS X Panther
Posted by "Derek J. Balling" <dr...@megacity.org>.
On Nov 10, 2003, at 2:23 AM, Justin Erenkrantz wrote:
> % grep POLL apr/include/arch/unix/apr_private.h | grep '^#define'
> #define HAVE_POLL 1
> #define HAVE_POLLIN 1
> #define HAVE_POLL_H 1
> #define HAVE_SYS_POLL_H 1
>
> Do you have the same #define's in apr_private.h (output of autoheader
> in APR)?
OK, this was brain-dead-ness on my part (upgraded laptop to Panther,
didn't upgrade to XCode)
However... my laptop still can't build (even though my desktop can)...
------ completed all in neon
cd subversion/clients/cmdline && /bin/sh
/Users/dredd/subversion-0.32.1/libtool --silent --mode=link gcc -g -O2
-g -O2 -DNEON_ZLIB
-L/Users/dredd/subversion-0.32.1/apr-util/xml/expat/lib -rpath
/usr/local/lib -o svn add-cmd.o blame-cmd.o cat-cmd.o checkout-cmd.o
cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o
export-cmd.o help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o
main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prompt.o
propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o
propset-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o
switch-cmd.o update-cmd.o util.o
../../../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_subr/libsvn_subr-1.la
/Users/dredd/subversion-0.32.1/apr-util/libaprutil-0.la
/Users/dredd/subversion-0.32.1/apr-util/xml/expat/lib/libexpat.la
-liconv /Users/dredd/subversion-0.32.1/apr/libapr-0.la -lresolv
/Users/dredd/subversion-0.32.1/neon/src/libneon.la -L/usr/local/lib
-lz
ld: Undefined symbols:
_svn_pool_create_ex
_svn_cmdline_cstring_from_utf8
_svn_cmdline_cstring_from_utf8_fuzzy
_svn_cmdline_cstring_to_utf8
_svn_delta_path_driver
_svn_io_files_contents_same_p
_svn_io_set_file_affected_time
_svn_prop_diffs
_svn_subst_build_keywords
_svn_delta_noop_window_handler
_svn_io_dir_make_hidden
Any thoughts on this new problem?
D
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Problem Compiling on OS X Panther
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Sunday, November 9, 2003 7:30 AM -0500 "Derek J. Balling"
<dr...@megacity.org> wrote:
> ./configure runs just fine, but when I go to build, I get:
>
> make[3]: Nothing to be done for `local-all'.
> Making all in poll/unix
> /bin/sh /Users/dredd/subversion-0.32.1/apr/libtool --silent --mode=compile
> gcc -g -O2 -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
0.32.1 compiles fine for me on 10.3. (I just tried from the clean tarball.)
% grep POLL apr/include/arch/unix/apr_private.h | grep '^#define'
#define HAVE_POLL 1
#define HAVE_POLLIN 1
#define HAVE_POLL_H 1
#define HAVE_SYS_POLL_H 1
Do you have the same #define's in apr_private.h (output of autoheader in APR)?
Ensure that your /usr/include/poll.h has the struct pollfd defined. Here's an
interesting tidbit from that file:
#ifndef POLL_NO_WARN
#warning "poll() functionality for Mac OS X is implemented via an emulation
layer on top of select(), not in the kernel directly. It is recommended that
programs running under OS X 10.3 prefer select() over poll(). Configure
scripts should look for the _POLL_EMUL_H_ define (instead of _POLL_H_ or
_SYS_POLL_H_) and avoid implementations where poll is not implemented in the
kernel."
#endif
Hmph. Perhaps we should build that logic into APR to avoid poll() on 10.3 in
this case, but regardless it's not breaking for me here.
Anyone else seeing this? -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org