Building Subversion on the Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Subversion on the Mac

Paul Hammant-3
OK, so I can get so far ...

svn co http://svn.apache.org/repos/asf/subversion/trunk subversion
cd subversion
brew install libtool apr
cp /usr/local/Cellar/libtool/2.4.6_1/share/libtool/build-aux/config.sub build/
autoconf
./configure --build=x86_64 --prefix=/usr/local --with-openssl --with-ssl --with-zlib --with-apr=/usr/local/Cellar/apr/1.6.3/ --with-apr-util=/usr/local/Cellar/apr-util/1.6.1/

(Note that I had to config.sub in my Homebrew folders and copy it into the build/ directory - barfs without it)

.. but it barfs after during the configure step:

<snip/>
checking how to use output level for Ruby bindings tests... normal
checking for ctypesgen.py... none
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for stdint.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `subversion/libsvn_*/*.pc.in'

I can't see any files ending in .pc.in in any subversion/libsvn_ prefixed folder (in the checkout). Therefore I'm not surprised the configure step fails when it's looking for those files.

Any advice would be appreciated.

- Paul
Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Paul Hammant-3
Thank you, that allows configure to complete w/o error.  Next up, libtool ....

$ make 
/bin/sh "/scm/oss/subversion/libtool" --tag=CC --silent --mode=compile gcc -std=c90  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10   -Werror=unknown-warning-option -g -O2  -g -O2   -I./subversion/include -I./subversion -I/usr/local/opt/apr/libexec/include/apr-1   -I/usr/local/opt/apr-util/libexec/include/apr-1 -I/usr/local/opt/openssl/include -I/usr/local/Cellar/lz4/1.8.0/include   -o subversion/libsvn_delta/branch.lo -c subversion/libsvn_delta/branch.c
/bin/sh: /scm/oss/subversion/libtool: No such file or directory
make: *** [subversion/libsvn_delta/branch.lo] Error 127

So I can find a /usr/bin/libtool and one in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ but both are binary, and the failing make step is an attempt to hand a shell script to /bin/sh to execute.  This feels like a wrapper-like thing, and I've googled a little, but can't see anything clear like "copy this script to folder/libtool".

- Paul

On Sat, Oct 28, 2017 at 8:07 AM, Troy Curtis Jr <[hidden email]> wrote:


On Sat, Oct 28, 2017, 7:02 AM Paul Hammant <[hidden email]> wrote:
OK, so I can get so far ...

svn co http://svn.apache.org/repos/asf/subversion/trunk subversion
cd subversion
brew install libtool apr
cp /usr/local/Cellar/libtool/2.4.6_1/share/libtool/build-aux/config.sub build/
autoconf
./configure --build=x86_64 --prefix=/usr/local --with-openssl --with-ssl --with-zlib --with-apr=/usr/local/Cellar/apr/1.6.3/ --with-apr-util=/usr/local/Cellar/apr-util/1.6.1/

(Note that I had to config.sub in my Homebrew folders and copy it into the build/ directory - barfs without it)

.. but it barfs after during the configure step:

<snip/>
checking how to use output level for Ruby bindings tests... normal
checking for ctypesgen.py... none
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for stdint.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `subversion/libsvn_*/*.pc.in'

I can't see any files ending in .pc.in in any subversion/libsvn_ prefixed folder (in the checkout). Therefore I'm not surprised the configure step fails when it's looking for those files.

Any advice would be appreciated.

- Paul

Since you are building from a checkout and not from a dist tarball, you need to run "autogen.sh" before configure. 

Troy



--
Paul Hammant DevOps Let me give you a step by step plan to get out of the hell of ClearCase and crazy branching models and into the world of high-throughput CD on DevOps foundations.
Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Paul Hammant-3
Yup, glibtool is needed on the Mac (brew install libtool .... makes /usr/local/bin/glibtool). That and a corresponding shim source:

#!/bin/sh

/usr/local/bin/glibtool "$@"

Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Paul Hammant-3
Yup, that builds through to completion, now. Thanks Troy.
Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Branko Čibej
In reply to this post by Paul Hammant-3
On 28.10.2017 14:02, Paul Hammant wrote:

> OK, so I can get so far ...
>
>     svn co http://svn.apache.org/repos/asf/subversion/trunk subversion
>     cd subversion
>     brew install libtool apr
>     cp
>     /usr/local/Cellar/libtool/2.4.6_1/share/libtool/build-aux/config.sub
>     build/
>     autoconf
>     ./configure --build=x86_64 --prefix=/usr/local --with-openssl
>     --with-ssl --with-zlib --with-apr=/usr/local/Cellar/apr/1.6.3/
>     --with-apr-util=/usr/local/Cellar/apr-util/1.6.1/
>
>
> (Note that I had to config.sub in my Homebrew folders and copy it into
> the build/ directory - barfs without it)
>
> .. but it barfs after during the configure step:
>
>
>     <snip/>
>
>     checking how to use output level for Ruby bindings tests... normal
>     checking for ctypesgen.py... none
>     checking stdbool.h usability... yes
>     checking stdbool.h presence... yes
>     checking for stdbool.h... yes
>     checking for stdint.h... (cached) yes
>     configure: creating ./config.status
>     config.status: creating Makefile
>     config.status: error: cannot find input file:
>     `subversion/libsvn_*/*.pc.in <http://pc.in>'
>
> I can't see any files ending in .pc.in <http://pc.in> in any
> subversion/libsvn_ prefixed folder (in the checkout). Therefore I'm
> not surprised the configure step fails when it's looking for those files.
>
> Any advice would be appreciated.

I sent you my build script for the Mac, that uses Homebrew, a while ago.
Why are you still having problems?

-- Brane

Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Paul Hammant-3
I sent you my build script for the Mac, that uses Homebrew, a while ago.
Why are you still having problems?


You're right, you did. I'll take another look, Brane.

Reply | Threaded
Open this post in threaded view
|

Re: Building Subversion on the Mac

Robert Schwalbe
In reply to this post by Paul Hammant-3
I sent you my build script for the Mac, that uses Homebrew, a while ago.

Why are you still having problems?


You're right, you did. I'll take another look, Brane.

Meanwhile I
wrote: <https://github.com/subsyncit/subsyncit/wiki/Building-Subversion-on-the-Mac>https://github.com/subsyncit/subsyncit/wiki/Building-Subversion-on-the-Mac