You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Christian Schaffner <sc...@artclip.ch> on 2002/07/24 12:33:10 UTC

svn 0.14.0: compiling fails on MacOS X

Dear svn developers

I am trying to pack subversion 0.14.0 for fink 
(http://fink.sourceforge.net), the package manager for MacOS X. But 
the build fails.

The configure was run as:
-----------------------
./configure --prefix=/sw 
--mandir=/sw/src/root-svn-client-0.14.0-1/sw/share/man 
--infodir=/sw/src/root-svn-client-0.14.0-1/sw/share/info 
--with-neon=/sw --with-expat=/sw --with-berkeley-db=/sw 
--enable-maintainer-mode --disable-shared
-----------------------

The error messages are:
-----------------------
...
Making all in network_io/unix
/bin/sh /sw/src/svn-client-0.14.0-1/subversion-r2667/apr/libtool 
--silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes 
-Wstrict-prototypes -Wmissing-declarations   -DHAVE_CONFIG_H -DDARWIN 
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/sw/include/db4 
-I/sw/include -I../../include -I../../include/arch/unix 
-I../../include/arch/unix  -c sendrecv.c && touch sendrecv.lo
sendrecv.c: In function `apr_sendfile':
sendrecv.c:873: `sendfilevec_t' undeclared (first use in this function)
sendrecv.c:873: (Each undeclared identifier is reported only once
sendrecv.c:873: for each function it appears in.)
sendrecv.c:873: `sfv' undeclared (first use in this function)
sendrecv.c:873: warning: statement with no effect
sendrecv.c:874: parse error before `int'
sendrecv.c:885: `vecs' undeclared (first use in this function)
sendrecv.c:888: `curvec' undeclared (first use in this function)
sendrecv.c:891: `i' undeclared (first use in this function)
sendrecv.c:891: warning: left-hand operand of comma expression has no effect
sendrecv.c:892: `SFV_FD_SELF' undeclared (first use in this function)
sendrecv.c:896: `requested_len' undeclared (first use in this function)
sendrecv.c:914: warning: left-hand operand of comma expression has no effect
sendrecv.c:947: `repeat' undeclared (first use in this function)
sendrecv.c:950: warning: implicit declaration of function `sendfilev'
make[3]: *** [sendrecv.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [external-all] Error 1
### execution of  failed, exit code 2
-----------------------

Any ideas? Any help or tips would be very much appreciated!

Chris.

PS:
MacOS 10.1.5, with April 2002 Dev Tools

- neon 0.21.2
- db4 4.0.14
- expat 1.95.3
all installed as fink packages.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn 0.14.0: compiling fails on MacOS X

Posted by Christian Schaffner <sc...@artclip.ch>.
Hi Nicholas and List

thank you for your reply.

At 7:56 Uhr -0500 24.7.2002, Nicholas Riley wrote:
>On Wed, Jul 24, 2002 at 02:33:10PM +0200, Christian Schaffner wrote:
>>  Any ideas? Any help or tips would be very much appreciated!
>
>I didn't run into this problem compiling.  The two problems I ran
>into, building on Mac OS X with Fink, were that apr-config and
>apu-config, --link-ld return the wrong answers:
>
>[p7:5005] ~%apr-config --link-ld
>  -L/usr/local/bin -lapr
>[p7:5007] ~%apu-config --link-ld
>  -L/usr/local/bin -laprutil

I got the following:
% ./apr-config --link-ld
  -L/sw/src/svn-client-0.14.0-1/subversion-r2667/apr -lapr

This seems correct to me. Am I right?

>and Subversion's configure script (though not Apache's configure
>script) does not recognize db4 includes in .../include/db4, so you
>need to set CPPFLAGS specifically.

Yes, I know. I used:

% printenv CPPFLAGS
-I/sw/include/db4 -I/sw/include

and

% printenv LDFLAGS
-flat_namespace -undefined suppress -L/sw/lib

>Have you tried building APR separately from Subversion?

Yes, I did it today. Result: Same error messages:

% sudo ./configure --prefix=/sw 
--mandir=/sw/src/root-svn-client-0.14.0-1/sw/share/man 
--infodir=/sw/src/root-svn-client-0.14.0-1/sw/share/info 
--with-neon=/sw --with-expat=/sw --with-dbm=db4 
--with-berkeley-db=/sw/include/db4:/sw/lib --enable-maintainer-mode 
--disable-shared --cache-file=/dev/null 
--srcdir=/sw/src/svn-client-0.14.0-1/subversion-r2667/apr

then

% sudo make

which gives:


Making all in network_io/unix
/bin/sh /sw/src/svn-client-0.14.0-1/subversion-r2667/apr/libtool 
--silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes 
-Wstrict-prototypes -Wmissing-declarations   -DHAVE_CONFIG_H -DDARWIN 
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/sw/include/db4 
-I/sw/include -I../../include -I../../include/arch/unix 
-I../../include/arch/unix  -c sendrecv.c && touch sendrecv.lo
sendrecv.c: In function `apr_sendfile':
sendrecv.c:873: `sendfilevec_t' undeclared (first use in this function)
sendrecv.c:873: (Each undeclared identifier is reported only once
sendrecv.c:873: for each function it appears in.)
sendrecv.c:873: `sfv' undeclared (first use in this function)
sendrecv.c:873: warning: statement with no effect
sendrecv.c:874: parse error before `int'
sendrecv.c:885: `vecs' undeclared (first use in this function)
sendrecv.c:888: `curvec' undeclared (first use in this function)
sendrecv.c:891: `i' undeclared (first use in this function)
sendrecv.c:891: warning: left-hand operand of comma expression has no effect
sendrecv.c:892: `SFV_FD_SELF' undeclared (first use in this function)
sendrecv.c:896: `requested_len' undeclared (first use in this function)
sendrecv.c:914: warning: left-hand operand of comma expression has no effect
sendrecv.c:947: `repeat' undeclared (first use in this function)
sendrecv.c:950: warning: implicit declaration of function `sendfilev'
make[2]: *** [sendrecv.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


Any ideas? It would be really great, if somebody could help me here...

Chris.

PS: In response to Ben:

At 8:03 Uhr -0500 24.7.2002, Ben Collins-Sussman wrote:
>Also, do you have older versions of apr-config and apu-config lying
>around your system, like in /usr/local/bin?

No, I couldn't find any other apr-config or apu-config.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn 0.14.0: compiling fails on MacOS X

Posted by Ben Collins-Sussman <su...@collab.net>.
Nicholas Riley <nj...@uiuc.edu> writes:

> On Wed, Jul 24, 2002 at 02:33:10PM +0200, Christian Schaffner wrote:
> > Any ideas? Any help or tips would be very much appreciated!
> 
> I didn't run into this problem compiling.  The two problems I ran
> into, building on Mac OS X with Fink, were that apr-config and
> apu-config, --link-ld return the wrong answers:
> 
> [p7:5005] ~%apr-config --link-ld
>  -L/usr/local/bin -lapr
> [p7:5007] ~%apu-config --link-ld
>  -L/usr/local/bin -laprutil
> 
> and Subversion's configure script (though not Apache's configure
> script) does not recognize db4 includes in .../include/db4, so you
> need to set CPPFLAGS specifically.
> 
> Have you tried building APR separately from Subversion?

Also, do you have older versions of apr-config and apu-config lying
around your system, like in /usr/local/bin?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: svn 0.14.0: compiling fails on MacOS X

Posted by Sander Striker <st...@apache.org>.
> From: Branko Cibej [mailto:brane@xbc.nu]
> Sent: 24 July 2002 18:22

> Sander Striker wrote:
>>Just doing:
>>
>>$ CPPFLAGS=-I/sw/include/db4 ./configure --with-dbm=db4 --with-berkeley-db=/sw/lib ...
>>
>>will store your adjusted CPPFLAGS in config.nice aswell IIRC.

> Unfortunately not ... Apache's configure knows how to put those flags 
> into config.noce; Subversion's doesn't. I vote we fix that.

Indeedy.  +1 on fixing it.

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn 0.14.0: compiling fails on MacOS X

Posted by Branko Čibej <br...@xbc.nu>.
Sander Striker wrote:

>>From: William Uther [mailto:will+@cs.cmu.edu]
>>Sent: 24 July 2002 17:34
>>    
>>
>
>  
>
>>On 24/7/02 8:56 AM, "Nicholas Riley" <nj...@uiuc.edu> wrote:
>>
>>    
>>
>>>and Subversion's configure script (though not Apache's configure
>>>script) does not recognize db4 includes in .../include/db4, so you
>>>need to set CPPFLAGS specifically.
>>>      
>>>
>>I've been using the configure args:
>>    --with-dbm=db4 --with-berkeley-db=/sw/include/db4:/sw/lib
>>For just this reason.  Saves changing CPPFLAGS and they're stored in
>>config.nice for the next build.
>>
>>\x/ill          :-}
>>    
>>
>
>Just doing:
>
>$ CPPFLAGS=-I/sw/include/db4 ./configure --with-dbm=db4 --with-berkeley-db=/sw/lib ...
>
>will store your adjusted CPPFLAGS in config.nice aswell IIRC.
>  
>

Unfortunately not ... Apache's configure knows how to put those flags 
into config.noce; Subversion's doesn't. I vote we fix that.


-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: svn 0.14.0: compiling fails on MacOS X

Posted by Sander Striker <st...@apache.org>.
> From: William Uther [mailto:will+@cs.cmu.edu]
> Sent: 24 July 2002 17:34

> On 24/7/02 8:56 AM, "Nicholas Riley" <nj...@uiuc.edu> wrote:
> 
> > and Subversion's configure script (though not Apache's configure
> > script) does not recognize db4 includes in .../include/db4, so you
> > need to set CPPFLAGS specifically.
> 
> I've been using the configure args:
>     --with-dbm=db4 --with-berkeley-db=/sw/include/db4:/sw/lib
> For just this reason.  Saves changing CPPFLAGS and they're stored in
> config.nice for the next build.
> 
> \x/ill          :-}

Just doing:

$ CPPFLAGS=-I/sw/include/db4 ./configure --with-dbm=db4 --with-berkeley-db=/sw/lib ...

will store your adjusted CPPFLAGS in config.nice aswell IIRC.


Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn 0.14.0: compiling fails on MacOS X

Posted by William Uther <wi...@cs.cmu.edu>.
On 24/7/02 8:56 AM, "Nicholas Riley" <nj...@uiuc.edu> wrote:

> and Subversion's configure script (though not Apache's configure
> script) does not recognize db4 includes in .../include/db4, so you
> need to set CPPFLAGS specifically.

I've been using the configure args:
    --with-dbm=db4 --with-berkeley-db=/sw/include/db4:/sw/lib
For just this reason.  Saves changing CPPFLAGS and they're stored in
config.nice for the next build.

\x/ill          :-}


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn 0.14.0: compiling fails on MacOS X

Posted by Nicholas Riley <nj...@uiuc.edu>.
On Wed, Jul 24, 2002 at 02:33:10PM +0200, Christian Schaffner wrote:
> Any ideas? Any help or tips would be very much appreciated!

I didn't run into this problem compiling.  The two problems I ran
into, building on Mac OS X with Fink, were that apr-config and
apu-config, --link-ld return the wrong answers:

[p7:5005] ~%apr-config --link-ld
 -L/usr/local/bin -lapr
[p7:5007] ~%apu-config --link-ld
 -L/usr/local/bin -laprutil

and Subversion's configure script (though not Apache's configure
script) does not recognize db4 includes in .../include/db4, so you
need to set CPPFLAGS specifically.

Have you tried building APR separately from Subversion?

-- 
=Nicholas Riley <nj...@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org