Compiling Subversion

2015-05-20 Thread Chandra, Ramesh H.S. IN BLR STS


Hello,



The OS is "Ubuntu 14.04 LTS Server".



I have download subversion-1.8.13 tar.gz package. After that, using 
the "alien" CLI, I converted the tar package to .deb package. I placed this 
.deb package under /var/cache/apt/archives and using dpkg -i <.deb package 
name> the package got installed under /subversion-1.8.13 directory. But the 
exes (svn, svnadmin) were not present.



I have gcc-4.9 compiler on this machine. BTW, I copied gcc-4.9 as 
"gcc".



I am trying to build the sources. When I execute ./configure from 
the subversion directory, it is giving me the following error:



root@INBLRKUN1001:/subversion-1.8.13# ./configure

configure: Configuring Subversion 1.8.13

configure: creating config.nice

checking for gcc... gcc

checking whether the C compiler works... no

configure: error: in `/subversion-1.8.13':

configure: error: C compiler cannot create executables

See `config.log' for more details

root@INBLRKUN1001:/subversion-1.8.13#



So, how do I build subversion and get all the executables?



NOTE : In our company, there is a policy that internet access will 
not be given to machines having Ubuntu OS. So, I cannot use "apt-get install 
" .



Please let me know how to proceed.



Thanks and Regards,
Ramesh Chandra





Compiling subversion 1.6.16

2011-03-16 Thread Ruiyuan Jiang
Hi, all

I am trying to compile subversion 1.6.16. autogen.sh does not report any 
problem. I then run configure:

# ./configure --with-apxs=$APACHE/bin/apxs --with-apr=$APACHE/bin/ 
--with-apr-util=$APACHE/bin/ --with-zlib=/usr/local

.
checking whether to look for SASL... yes
configure: Looking in default locations
checking sasl/sasl.h usability... no
checking sasl/sasl.h presence... yes
configure: WARNING: sasl/sasl.h: present but cannot be compiled
configure: WARNING: sasl/sasl.h: check for missing prerequisite headers?
configure: WARNING: sasl/sasl.h: see the Autoconf documentation
configure: WARNING: sasl/sasl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sasl/sasl.h: proceeding with the compiler's result
configure: WARNING: ##  ##
configure: WARNING: ## Report this to http://subversion.tigris.org/ ##
configure: WARNING: ##  ##
checking for sasl/sasl.h... no
checking for sasl/sasl.h... (cached) no
checking for availability of Cyrus SASL v2... no
checking for Mac OS KeyChain Services... no
checking whether APR has support for DSOs... yes
checking whether to look for GNOME Keyring... no
checking for msgfmt... /usr/local/bin/msgfmt
checking for msgmerge... /usr/local/bin/msgmerge
checking for xgettext... /usr/local/bin/xgettext
checking for library containing bindtextdomain... no
checking for library containing bindtextdomain... no
configure: WARNING: bindtextdomain() not found.  Disabling NLS.
checking whether to look for KWallet... no
checking for ANSI C header files... (cached) no
checking for an ANSI C-conforming const... no
checking for size_t... no
checking for working memcmp... no
checking for vprintf... no
checking for symlink... no
checking for readlink... no
configure: zlib library configuration
checking zlib.h usability... no
checking zlib.h presence... yes
configure: WARNING: zlib.h: present but cannot be compiled
configure: WARNING: zlib.h: check for missing prerequisite headers?
configure: WARNING: zlib.h: see the Autoconf documentation
configure: WARNING: zlib.h: section "Present But Cannot Be Compiled"
configure: WARNING: zlib.h: proceeding with the compiler's result
configure: WARNING: ##  ##
configure: WARNING: ## Report this to http://subversion.tigris.org/ ##
configure: WARNING: ##  ##
checking for zlib.h... no
configure: error: subversion requires zlib

The SASL (v2.1.23) and zlib (v1.2.5) are installed at default location 
(/usr/local).
I read the "autoconf" document at mentioned web site but don't know how to make 
a header file change. Can anyone help me? Thanks in advance.

Ryan Jiang



This message (including any attachments) is intended
solely for the specific individual(s) or entity(ies) named
above, and may contain legally privileged and
confidential information. If you are not the intended 
recipient, please notify the sender immediately by 
replying to this message and then delete it.
Any disclosure, copying, or distribution of this message,
or the taking of any action based on it, by other than the
intended recipient, is strictly prohibited.



Re: Compiling Subversion

2015-05-20 Thread Kris Deugau
Chandra, Ramesh H.S. IN BLR STS wrote:

> I am trying to build the sources. When I execute ./configure
> from the subversion directory, it is giving me the following error:

> root@INBLRKUN1001:/subversion-1.8.13# ./configure
> configure: Configuring Subversion 1.8.13
> configure: creating config.nice
> checking for gcc... gcc
> checking whether the C compiler works... no

You do not have a complete software build environment.  Your compiler is
missing key pieces (or not installed at all).

> So, how do I build subversion and get all the executables?

> NOTE : In our company, there is a policy that internet
> access will not be given to machines having Ubuntu OS. So, I cannot use
> “apt-get install ” .

You're going to have to spend a long time working around this
restriction to download the many packages necessary to support building
a complex package like Subversion.  "apt-get build-essential" would
normally get you started, and that covers a bare minimum ~20+ packages
just for doing general package-building.  I just checked a recent Debian
(Ubuntu is mostly Debian, so the package dependencies are usually almost
identical), and Subversion's own build requirements add another 124
packages.  Also note that this was on a VM I periodically do custom PHP
builds on, so there are probably as many as 30 -dev packages that
overlap with the full set necessary for building Subversion, already
installed.

Or you're going to have to spend quite a bit less time working around
this restriction to download prebuild Subversion packages and the
handful of dependencies it needs to run.

-kgd


Re: Compiling Subversion

2015-05-21 Thread Nico Kadel-Garcia
On Wed, May 20, 2015 at 7:21 AM, Chandra, Ramesh H.S. IN BLR STS
 wrote:

> NOTE : In our company, there is a policy that internet access
> will not be given to machines having Ubuntu OS. So, I cannot use “apt-get
> install ” .

You need to talk to your admins about setting up an internal Ubuntu
apt mirror. It requires some internal disk space, and say 100 Gig to
mirror a few versions of designated Ubuntu repositories, and a regular
cron job to update the mirror. I publish some for Scientific Linux and
EPEL repositories at https://github.com/nkadel/nkadel-rsync-scripts,
and I'd welcome updates to support Ubuntu.


>
>
>
> Please let me know how to proceed.
>
>
>
> Thanks and Regards,
> Ramesh Chandra
>
>


Compiling Subversion on Windows

2012-03-12 Thread Mark Raymond
Hi,

I've been attempting to compile Subversion on Windows (64-bit). I've been
able to solve most of the issues I had when compiling, but there's just one
file left that is refusing to compile - libsvn_ra-1.dll.
The build environment is Visual Studio 2008 on Windows 7 64-bit, using the
x64 Cross Tools Command Prompt.

I get the following error at the link stage:

libneon.lib(ne_openssl.obj) : error LNK2019: unresolved external symbol
SSL_SESSION_cmp referenced in function ne__negotiate_ssl
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_GetCurrentLineNumber referenced in function ne_xml_currentline
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_ErrorString referenced in function ne_xml_parse
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_GetErrorCode referenced in function ne_xml_parse
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_Parse referenced in function ne_xml_parse
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_ParserFree referenced in function ne_xml_destroy
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_SetXmlDeclHandler referenced in function ne_xml_create
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_SetUserData referenced in function ne_xml_create
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_SetCharacterDataHandler referenced in function ne_xml_create
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_SetElementHandler referenced in function ne_xml_create
libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
__imp_XML_ParserCreate referenced in function ne_xml_create
..\..\..\Release\subversion\libsvn_ra\libsvn_ra-1.dll : fatal error LNK1120:
11 unresolved externals

I've checked xml.lib (from expat, in apr-util), which is where I think these
symbols should be, and it contains the symbols but without the __imp_ at the
beginning.
I guess this is some issue with name mangling, but I don't really know how
to approach solving it!

Thanks,
Mark.



Compiling Subversion on AIX

2010-04-22 Thread Robert Cooper
Hello,

I'm trying to compile subversion 1.6.11 source on AIX 6.1 TL3 using gcc
4.2.0-3.
I have already compiled apache httpd 2.2.15 and have it working. (with ldap,
dav, and authnz)

My end goal is to have subversion running on AIX with apache and LDAP
authentication to a Tivoli Directory Server.

I have tried following these procedures with no success:
http://www.tek-tips.com/viewthread.cfm?qid=1372779&page=8

Here is what I used for configure:
CC="gcc" ./configure -C --prefix=/usr/local/svn --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util
--with-apache-libexecdir=/usr/local/apache2/modules

My problem is that subversion fails during the make process.

Here is the error that I get:
 /usr/local/apr/build-1/libtool --silent --mode=link gcc -Wl,-brtl
-L/opt/IBM/ldap/V6.1/lib -rpath /usr/local/svn/lib -o libserf-0.la
/usr/local/apr-util/lib/libaprutil-1.la -libmldapn -lexpat -liconv
/usr/local/apr/lib/libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]
[-X{32|64|32_64|d64|any}] [--] File ...
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2
-pthread -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -I.
-I/usr/local/apr/include/apr-1   -I/usr/local/apr-util/include/apr-1
-I/opt/IBM/ldap/V6.1/include   -c -o test/serf_get.lo test/serf_get.c &&
touch test/serf_get.lo
/usr/local/apr/build-1/libtool --silent --mode=link gcc -Wl,-brtl
-L/opt/IBM/ldap/V6.1/lib -static -o test/serf_get  /usr/local/apr-util/lib/
libaprutil-1.la -libmldapn -lexpat -liconv  /usr/local/apr/lib/
libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.

I'm thinking there might be an issue with openssl but I'm not sure where the
error is and any help or direction would be greatly appreciated.

Thanks,
Robert


Problem compiling subversion 1.6.11

2010-04-27 Thread pierre42d
# make
-- making all in apr
make[1]: Entering directory `/tmp/subversion-1.6.11/apr'
make[2]: Entering directory `/tmp/subversion-1.6.11/apr'
make[2]: Nothing to be done for `local-all'.
make[2]: Leaving directory `/tmp/subversion-1.6.11/apr'
make[1]: Leaving directory `/tmp/subversion-1.6.11/apr'
-- completed all in apr
-- making all in apr-util
make[1]: Entering directory `/tmp/subversion-1.6.11/apr-util'
make[2]: Entering directory `/tmp/subversion-1.6.11/apr-util'
make[2]: Nothing to be done for `local-all'.
make[2]: Leaving directory `/tmp/subversion-1.6.11/apr-util'
make[1]: Leaving directory `/tmp/subversion-1.6.11/apr-util'
-- completed all in apr-util
-- making all in neon
make[1]: Entering directory `/tmp/subversion-1.6.11/neon'
make[2]: Entering directory `/tmp/subversion-1.6.11/neon/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/subversion-1.6.11/neon/src'
make[1]: Leaving directory `/tmp/subversion-1.6.11/neon'
-- completed all in neon
-- making all in serf
make[1]: Entering directory `/tmp/subversion-1.6.11/serf'
/tmp/subversion-1.6.11/apr/libtool --silent --mode=link gcc  -rpath 
/usr/local/serf/lib -o libserf-0.la buckets/aggregate_buckets.lo 
buckets/request_buckets.lo context.lo buckets/buckets.lo 
buckets/simple_buckets.lo buckets/file_buckets.lo buckets/mmap_buckets.lo 
buckets/socket_buckets.lo buckets/response_buckets.lo 
buckets/headers_buckets.lo buckets/allocator.lo buckets/dechunk_buckets.lo 
buckets/deflate_buckets.lo buckets/limit_buckets.lo buckets/ssl_buckets.lo 
buckets/barrier_buckets.lo buckets/chunk_buckets.lo 
/tmp/subversion-1.6.11/apr-util/libaprutil-1.la -lexpat -liconv  
/tmp/subversion-1.6.11/apr/libapr-1.la -lrt -lcrypt  -lpthread -ldl -lm  -lz 
-lssl -lcrypto
/usr/local/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld:
 cannot find -lssl
collect2: ld returned 1 exit status
make[1]: *** [libserf-0.la] Error 1
make[1]: Leaving directory `/tmp/subversion-1.6.11/serf'
make: *** [external-all] Error 1






Compiling subversion on Ubuntu 10.10

2011-01-14 Thread Daniel Becroft
Hi,

I've had some issues compiling Subversion and APR in my Ubuntu environment
(the below output is done from /trunk - I haven't tried a 1.6.x branch yet).

Running ./autogen.sh and ./configure work correctly, however I get the
following error when running 'make':

-- making all in apr
make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr'
make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr'
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed 's,^\(apr_build.*=\).*$,\1/usr/local/apr/build-1,' <
build/apr_rules.mk> build/apr_rules.out
make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
-- completed all in apr
-- making all in apr-util
make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
Making all in xml/expat
make[2]: Entering directory
`/home/djcbecroft/dev/subversion/apr-util/xml/expat'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/djcbecroft/dev/subversion/apr-util/xml/expat'
make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
/bin/bash /libtool --silent --mode=compile gcc -g -O2 -pthread
-DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-I/home/djcbecroft/dev/subversion/apr-util/include
-I/home/djcbecroft/dev/subversion/apr-util/include/private
-I/home/djcbecroft/dev/subversion/apr/include
-I/home/djcbecroft/dev/subversion/apr-util/xml/expat/lib  -o
buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch
buckets/apr_brigade.lo
/bin/bash: /libtool: No such file or directory
make[2]: *** [buckets/apr_brigade.lo] Error 127
make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
make: *** [external-all] Error 1

After investigation, it seems that the path for LIBTOOL was defined
incorrectly. I had to change apr-util/build/rules.mk:38 from:

LIBTOOL=$(SHELL) $(top_builddir)/libtool
to
LIBTOOL=$(SHELL) $(apr_builddir)/libtool

I'm unfamiliar with how the configure scripts work, so I'm not sure if this
is a problem with the SVN scripts, APR scripts, or my system itself. If it's
one of the first two, then I'll report it to the appropriate list. Can
anyone provide any guidance?
---
Daniel Becroft


Re: Compiling Subversion on Windows

2012-03-12 Thread kmradke
Mark,

> I've been attempting to compile Subversion on Windows (64-bit). I've 
been
> able to solve most of the issues I had when compiling, but there's just 
one
> file left that is refusing to compile - libsvn_ra-1.dll.
> The build environment is Visual Studio 2008 on Windows 7 64-bit, using 
the
> x64 Cross Tools Command Prompt.

You might want to check out the forums at http://www.apachehaus.com
They build x64 versions of the subversion libraries with VS 2008.

Looks like they ran into similar problems:

http://www.apachehaus.com/forum/index.php?topic=143.0

Adding /D XML_STATUS to EXPAT_FLAGS in neon\neon.mak line 57
is what helped get rid of those import errors.

Kevin R.


RE: Compiling Subversion on Windows

2012-03-12 Thread Brad Lemings

The __imp_ prefixes mean that the linker is looking for a DLL.  For static 
linking, the XML_STATIC macro has to be defined in the code that links to Expat.

My solution for this problem: configure with the --without-neon option.  :)

> -Original Message-
> From: Mark Raymond [mailto:ma...@raymonds.org.uk]
> Sent: Monday, March 12, 2012 12:51 PM
> To: users@subversion.apache.org
> Subject: Compiling Subversion on Windows
> 
> Hi,
> 
> I've been attempting to compile Subversion on Windows (64-bit). I've been
> able to solve most of the issues I had when compiling, but there's just one
> file left that is refusing to compile - libsvn_ra-1.dll.
> The build environment is Visual Studio 2008 on Windows 7 64-bit, using the
> x64 Cross Tools Command Prompt.
> 
> I get the following error at the link stage:
> 
> libneon.lib(ne_openssl.obj) : error LNK2019: unresolved external symbol
> SSL_SESSION_cmp referenced in function ne__negotiate_ssl
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_GetCurrentLineNumber referenced in function
> ne_xml_currentline
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_ErrorString referenced in function ne_xml_parse
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_GetErrorCode referenced in function ne_xml_parse
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_Parse referenced in function ne_xml_parse
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_ParserFree referenced in function ne_xml_destroy
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_SetXmlDeclHandler referenced in function ne_xml_create
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_SetUserData referenced in function ne_xml_create
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_SetCharacterDataHandler referenced in function
> ne_xml_create
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_SetElementHandler referenced in function ne_xml_create
> libneon.lib(ne_xml.obj) : error LNK2019: unresolved external symbol
> __imp_XML_ParserCreate referenced in function ne_xml_create
> ..\..\..\Release\subversion\libsvn_ra\libsvn_ra-1.dll : fatal error LNK1120:
> 11 unresolved externals
> 
> I've checked xml.lib (from expat, in apr-util), which is where I think these
> symbols should be, and it contains the symbols but without the __imp_ at
> the beginning.
> I guess this is some issue with name mangling, but I don't really know how to
> approach solving it!
> 
> Thanks,
> Mark.



RE: Compiling Subversion on Windows

2012-03-12 Thread Mark Raymond
Thank you! This solved the XML linking issue.
The SSL_SESSION_cmd issue was solved by going back to openssl-0.9.8, as that
function was removed in openssl-1.0.0.
Mark.

From: kmra...@rockwellcollins.com [mailto:kmra...@rockwellcollins.com] 
Sent: 12 March 2012 19:55
To: Mark Raymond
Cc: users@subversion.apache.org
Subject: Re: Compiling Subversion on Windows

Mark, 

> I've been attempting to compile Subversion on Windows (64-bit). I've been
> able to solve most of the issues I had when compiling, but there's just
one
> file left that is refusing to compile - libsvn_ra-1.dll.
> The build environment is Visual Studio 2008 on Windows 7 64-bit, using the
> x64 Cross Tools Command Prompt.

You might want to check out the forums at http://www.apachehaus.com 
They build x64 versions of the subversion libraries with VS 2008. 

Looks like they ran into similar problems: 

http://www.apachehaus.com/forum/index.php?topic=143.0 

Adding /D XML_STATUS to EXPAT_FLAGS in neon\neon.mak line 57 
is what helped get rid of those import errors. 

Kevin R.



RE: Compiling Subversion on AIX

2010-04-22 Thread Giulio Troccoli




Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851VAT Reg No 778499447





From: dig1tal.coo...@gmail.com [mailto:dig1tal.coo...@gmail.com] On 
Behalf Of Robert Cooper
Sent: 22 April 2010 14:45
To: users@subversion.apache.org
Subject: Compiling Subversion on AIX


Hello,

I'm trying to compile subversion 1.6.11 source on AIX 6.1 TL3 using gcc 
4.2.0-3.
I have already compiled apache httpd 2.2.15 and have it working. (with 
ldap, dav, and authnz)

My end goal is to have subversion running on AIX with apache and LDAP 
authentication to a Tivoli Directory Server.

I have tried following these procedures with no success:
http://www.tek-tips.com/viewthread.cfm?qid=1372779&page=8

Here is what I used for configure:
CC="gcc" ./configure -C --prefix=/usr/local/svn 
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util 
--with-apache-libexecdir=/usr/local/apache2/modules

My problem is that subversion fails during the make process.

Here is the error that I get:
 /usr/local/apr/build-1/libtool --silent --mode=link gcc -Wl,-brtl 
-L/opt/IBM/ldap/V6.1/lib -rpath /usr/local/svn/lib -o libserf-0.la  
/usr/local/apr-util/lib/libaprutil-1.la -libmldapn -lexpat -liconv  
/usr/local/apr/lib/libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]
[-X{32|64|32_64|d64|any}] [--] File ...
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -g 
-O2 -pthread -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -I.  
-I/usr/local/apr/include/apr-1   -I/usr/local/apr-util/include/apr-1 
-I/opt/IBM/ldap/V6.1/include   -c -o test/serf_get.lo test/serf_get.c && touch 
test/serf_get.lo
/usr/local/apr/build-1/libtool --silent --mode=link gcc 
-Wl,-brtl -L/opt/IBM/ldap/V6.1/lib -static -o test/serf_get  
/usr/local/apr-util/lib/libaprutil-1.la -libmldapn -lexpat -liconv  
/usr/local/apr/lib/libapr-1.la -lpthread -lm  -lz -lssl -lcrypto
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.

I'm thinking there might be an issue with openssl but I'm not sure 
where the error is and any help or direction would be greatly appreciated.

Thanks,
Robert



I don't know if this is going to help, but I succesfully build 1.6.9 on AIX 
5.3. I did have some troubles and my final config was

CC="/usr/vac/bin/cc" \
CFLAGS="-qmaxmem=-1 -O2 -qlanglvl=extended" \
CPPFLAGS="-I/usr/local/include" \
LDFLAGS="-L/usr/local/lib" \
./configure \
--disable-shared \
--without-ssl \
--without-berkeley-db \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--without-apxs \
--with-neon=/usr/local \
--without-serf

Of course, change the options to configure as you desire, I only wanted to 
point out the CC, CFLAGS, etc.

Oh, please try and post in text only, no HTML :-)

Giulio


Re: Problem compiling subversion 1.6.11

2010-04-27 Thread Erik Andersson
You probably want a package named openssl-devel on Fedora (openssl-dev on
Debian)?

Cheers / Erik

On Tue, Apr 27, 2010 at 1:22 PM,  wrote:

> # make
> -- making all in apr
> make[1]: Entering directory `/tmp/subversion-1.6.11/apr'
> make[2]: Entering directory `/tmp/subversion-1.6.11/apr'
> make[2]: Nothing to be done for `local-all'.
> make[2]: Leaving directory `/tmp/subversion-1.6.11/apr'
> make[1]: Leaving directory `/tmp/subversion-1.6.11/apr'
> -- completed all in apr
> -- making all in apr-util
> make[1]: Entering directory `/tmp/subversion-1.6.11/apr-util'
> make[2]: Entering directory `/tmp/subversion-1.6.11/apr-util'
> make[2]: Nothing to be done for `local-all'.
> make[2]: Leaving directory `/tmp/subversion-1.6.11/apr-util'
> make[1]: Leaving directory `/tmp/subversion-1.6.11/apr-util'
> -- completed all in apr-util
> -- making all in neon
> make[1]: Entering directory `/tmp/subversion-1.6.11/neon'
> make[2]: Entering directory `/tmp/subversion-1.6.11/neon/src'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/tmp/subversion-1.6.11/neon/src'
> make[1]: Leaving directory `/tmp/subversion-1.6.11/neon'
> -- completed all in neon
> -- making all in serf
> make[1]: Entering directory `/tmp/subversion-1.6.11/serf'
> /tmp/subversion-1.6.11/apr/libtool --silent --mode=link gcc  -rpath
> /usr/local/serf/lib -o libserf-0.la buckets/aggregate_buckets.lo
> buckets/request_buckets.lo context.lo buckets/buckets.lo
> buckets/simple_buckets.lo buckets/file_buckets.lo buckets/mmap_buckets.lo
> buckets/socket_buckets.lo buckets/response_buckets.lo
> buckets/headers_buckets.lo buckets/allocator.lo buckets/dechunk_buckets.lo
> buckets/deflate_buckets.lo buckets/limit_buckets.lo buckets/ssl_buckets.lo
> buckets/barrier_buckets.lo buckets/chunk_buckets.lo
> /tmp/subversion-1.6.11/apr-util/libaprutil-1.la -lexpat -liconv
> /tmp/subversion-1.6.11/apr/libapr-1.la -lrt -lcrypt  -lpthread -ldl -lm
> -lz -lssl -lcrypto
> /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld:
> cannot find -lssl
> collect2: ld returned 1 exit status
> make[1]: *** [libserf-0.la] Error 1
> make[1]: Leaving directory `/tmp/subversion-1.6.11/serf'
> make: *** [external-all] Error 1
>
>
>
>
>


Re: Problem compiling subversion 1.6.11

2010-04-27 Thread Daniel Shahaf
pierre...@9online.fr wrote on Tue, 27 Apr 2010 at 13:22 +0200:
> -- making all in serf
> make[1]: Entering directory `/tmp/subversion-1.6.11/serf'
> /tmp/subversion-1.6.11/apr/libtool --silent --mode=link gcc  -rpath 
> /usr/local/serf/lib -o libserf-0.la buckets/aggregate_buckets.lo 
> buckets/request_buckets.lo context.lo buckets/buckets.lo 
> buckets/simple_buckets.lo buckets/file_buckets.lo buckets/mmap_buckets.lo 
> buckets/socket_buckets.lo buckets/response_buckets.lo 
> buckets/headers_buckets.lo buckets/allocator.lo buckets/dechunk_buckets.lo 
> buckets/deflate_buckets.lo buckets/limit_buckets.lo buckets/ssl_buckets.lo 
> buckets/barrier_buckets.lo buckets/chunk_buckets.lo 
> /tmp/subversion-1.6.11/apr-util/libaprutil-1.la -lexpat -liconv  
> /tmp/subversion-1.6.11/apr/libapr-1.la -lrt -lcrypt  -lpthread -ldl -lm  -lz 
> -lssl -lcrypto
> /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld:
>  cannot find -lssl
> collect2: ld returned 1 exit status
> make[1]: *** [libserf-0.la] Error 1
> make[1]: Leaving directory `/tmp/subversion-1.6.11/serf'
> make: *** [external-all] Error 1

This part builds serf.  You could try --without-serf (if you have neon),
or you could try to build serf manually (not as part of Subversion's
build) and/or ask on the serf mailing lists for help.

Re: Compiling Subversion on AIX

2010-04-28 Thread Robert Cooper
Thanks for the help Giulio.  Using that configure statement (with gcc):
CC="gcc" LDFLAGS="-L/usr/local/lib" ./configure -C --disable-shared
--without-ssl \
 --without-berkeley-db
--prefix=/usr/local/svn--with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util \
--without-apxs --without-serf --disable-nls

 helped me get to the make install but now I'm getting the following error:
/usr/svn/subversion-1.6.11/build/install-sh -c -m 644
./subversion/svnsync/svnsync.1 /usr/local/svn/share/man/man1/svnsync.1
/usr/svn/subversion-1.6.11/build/install-sh -c -m 644
./subversion/svnversion/svnversion.1
/usr/local/svn/share/man/man1/svnver
sion.1
    subversion/svnversion/svnversion . /repos/svn/trunk >
/usr/local/svn/include/subversion-1/svn-revision.txt
Could not load program
/usr/svn/subversion-1.6.11/subversion/svnversion/.libs/lt-svnversion:
Could not load module
/usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn_subr-1.so.
    Dependent module
/usr/local/apr-util/lib/libexpat.a(libexpat.so.1) could not be loaded.
    Member libexpat.so.1 is not found in archive
Could not load module lt-svnversion.
    Dependent module
/usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn_subr-1.so
could not be loaded.
Could not load module .
make: The error code from the last command is 255.
Stop.


Any ideas on what might be stopping the install?  expat?

Thanks,
Robert


RE: Compiling Subversion on AIX

2010-04-28 Thread Giulio Troccoli
>


Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851VAT Reg No 778499447

-Original Message-


> From: dig1tal.coo...@gmail.com
> [mailto:dig1tal.coo...@gmail.com] On Behalf Of Robert Cooper
> Sent: 28 April 2010 15:23
> To: Giulio Troccoli; users@subversion.apache.org
> Subject: Re: Compiling Subversion on AIX
>
> Thanks for the help Giulio.  Using that configure statement
> (with gcc):
> CC="gcc" LDFLAGS="-L/usr/local/lib" ./configure -C
> --disable-shared --without-ssl \
>  --without-berkeley-db
> --prefix=/usr/local/svn--with-apr=/usr/local/apr
> --with-apr-util=/usr/local/apr-util \
> --without-apxs --without-serf --disable-nls
>
>  helped me get to the make install but now I'm getting the
> following error:
> /usr/svn/subversion-1.6.11/build/install-sh -c -m 644
> ./subversion/svnsync/svnsync.1 /usr/local/svn/share/man/man1/svnsync.1
> /usr/svn/subversion-1.6.11/build/install-sh -c -m 644
> ./subversion/svnversion/svnversion.1
> /usr/local/svn/share/man/man1/svnver
> sion.1
> subversion/svnversion/svnversion . /repos/svn/trunk >
> /usr/local/svn/include/subversion-1/svn-revision.txt
> Could not load program
> /usr/svn/subversion-1.6.11/subversion/svnversion/.libs/lt-svnversion:
> Could not load module
> /usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn
> _subr-1.so.
> Dependent module
> /usr/local/apr-util/lib/libexpat.a(libexpat.so.1) could not be loaded.
> Member libexpat.so.1 is not found in archive Could
> not load module lt-svnversion.
> Dependent module
> /usr/svn/subversion-1.6.11/subversion/libsvn_subr/.libs/libsvn
> _subr-1.so
> could not be loaded.
> Could not load module .
> make: The error code from the last command is 255.
> Stop.
>
>
> Any ideas on what might be stopping the install?  expat?

Did you use my exact configure? Because that was just the last part of a 
process where I built other things manually, e.g. expat that in your case make 
can't find.

I was only suggesting to use CC, CFLAGS, etc. to specify another compiler and 
options.

G


Re: Compiling subversion on Ubuntu 10.10

2011-01-14 Thread Daniel Becroft
Apologies, I also had to make the same change to apr/build/apr_rules.mk:38.

---
Daniel Becroft


On Sat, Jan 15, 2011 at 8:45 AM, Daniel Becroft wrote:

> Hi,
>
> I've had some issues compiling Subversion and APR in my Ubuntu environment
> (the below output is done from /trunk - I haven't tried a 1.6.x branch yet).
>
> Running ./autogen.sh and ./configure work correctly, however I get the
> following error when running 'make':
>
> -- making all in apr
> make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr'
> make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr'
> sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
> sed 's,^\(apr_build.*=\).*$,\1/usr/local/apr/build-1,' < build/
> apr_rules.mk > build/apr_rules.out
> make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
> make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr'
> -- completed all in apr
> -- making all in apr-util
> make[1]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
> Making all in xml/expat
> make[2]: Entering directory
> `/home/djcbecroft/dev/subversion/apr-util/xml/expat'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/djcbecroft/dev/subversion/apr-util/xml/expat'
> make[2]: Entering directory `/home/djcbecroft/dev/subversion/apr-util'
> /bin/bash /libtool --silent --mode=compile gcc -g -O2 -pthread
> -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -I/home/djcbecroft/dev/subversion/apr-util/include
> -I/home/djcbecroft/dev/subversion/apr-util/include/private
> -I/home/djcbecroft/dev/subversion/apr/include
> -I/home/djcbecroft/dev/subversion/apr-util/xml/expat/lib  -o
> buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch
> buckets/apr_brigade.lo
> /bin/bash: /libtool: No such file or directory
> make[2]: *** [buckets/apr_brigade.lo] Error 127
> make[2]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/djcbecroft/dev/subversion/apr-util'
> make: *** [external-all] Error 1
>
> After investigation, it seems that the path for LIBTOOL was defined
> incorrectly. I had to change apr-util/build/rules.mk:38 from:
>
> LIBTOOL=$(SHELL) $(top_builddir)/libtool
> to
> LIBTOOL=$(SHELL) $(apr_builddir)/libtool
>
> I'm unfamiliar with how the configure scripts work, so I'm not sure if this
> is a problem with the SVN scripts, APR scripts, or my system itself. If it's
> one of the first two, then I'll report it to the appropriate list. Can
> anyone provide any guidance?
> ---
> Daniel Becroft
>


Re: Compiling subversion on Ubuntu 10.10

2011-01-16 Thread Daniel Shahaf
Daniel Becroft wrote on Sat, Jan 15, 2011 at 08:45:31 +1000:
> After investigation, it seems that the path for LIBTOOL was defined
> incorrectly. I had to change apr-util/build/rules.mk:38 from:
> 
> LIBTOOL=$(SHELL) $(top_builddir)/libtool
> to
> LIBTOOL=$(SHELL) $(apr_builddir)/libtool
> 

What version is that?  My 1.4.2 already says the latter.

> I'm unfamiliar with how the configure scripts work, so I'm not sure if this
> is a problem with the SVN scripts, APR scripts, or my system itself. If it's
> one of the first two, then I'll report it to the appropriate list. Can
> anyone provide any guidance?
> ---
> Daniel Becroft


Re: Compiling subversion on Ubuntu 10.10

2011-01-16 Thread Daniel Becroft
On Mon, Jan 17, 2011 at 7:22 AM, Daniel Shahaf wrote:

> Daniel Becroft wrote on Sat, Jan 15, 2011 at 08:45:31 +1000:
> > After investigation, it seems that the path for LIBTOOL was defined
> > incorrectly. I had to change apr-util/build/rules.mk:38 from:
> >
> > LIBTOOL=$(SHELL) $(top_builddir)/libtool
> > to
> > LIBTOOL=$(SHELL) $(apr_builddir)/libtool
> >
>
> What version is that?  My 1.4.2 already says the latter.
>

I was using the 1.3.x branch of both apr and apr-util, because that's what
the error message from the ./configure script told me to get (line 4350).

I've switched both apr and apr-util to the 1.4.x branch, re-ran ./autogen.sh
and ./configure.sh, but still get the same results (extract of apr/build/
apr_rules.mk below).

Looks like it might be something on my machine.

Cheers,
Daniel B.

# Some layouts require knowing what version we are at.
APR_MAJOR_VERSION=1
APR_DOTTED_VERSION=1.4.3

CC=gcc
RM=rm
AWK=mawk
SHELL=/bin/bash
LIBTOOL=$(SHELL) $(top_builddir)/libtool


> > I'm unfamiliar with how the configure scripts work, so I'm not sure if
> this
> > is a problem with the SVN scripts, APR scripts, or my system itself. If
> it's
> > one of the first two, then I'll report it to the appropriate list. Can
> > anyone provide any guidance?
> > ---
> > Daniel Becroft
>


Re: Re: Problem compiling subversion 1.6.11

2010-04-27 Thread pierre42d
> You probably want a package named openssl-devel on Fedora (openssl-dev on 
> Debian)? 
 
I have openssl installed (from source).

-- 
Pierre.
 
 


 
 




Re: Re: Problem compiling subversion 1.6.11

2010-04-27 Thread Erik Andersson
>From the INSTALL:

"On Unix systems, if you are building neon as part of the Subversion
build process (as described in section I.4 above), you can pass flags
to Subversion's "./configure", and they will be passed on to neon's
"./configure".  You need OpenSSL installed on your system, and you
must add "--with-ssl" as a ./configure" parameter."

Did you?

Cheers / Erik

On Tue, Apr 27, 2010 at 1:41 PM,  wrote:

> > You probably want a package named openssl-devel on Fedora (openssl-dev on
> Debian)?
>
> I have openssl installed (from source).
>
> --
> Pierre.
>
>
>
>
>
>
>
>
>