[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Solaris 10 64 bit compile woes

From: Herbert Pophal <pophal_at_tubit.tu-berlin.de>
Date: Fri, 12 Mar 2010 13:09:50 +0100

Hi,

a few months ago I built subversion 1.6.5 successfully under Solaris
10/Intel 32 bit. However, the same source as well as subversion 1.6.9
fail when compiling as 64 bit. The error occurs in the same module as
reported by Rodrigo Goncalves on 2010 Wed, 06 Jan, 10:02 SVN 1.6.6
compilation error.
32 bit apache was prefork, 64 bit is a worker one, if this info applies.

My protocol snippet:

./build/transform_sql.sh subversion/libsvn_fs_fs/rep-cache-db.sql <
subversion/l
ibsvn_fs_fs/rep-cache-db.sql > ./subversion/libsvn_fs_fs/rep-cache-db.h
/bin/bash /home/users/o/opha4000/subversion/subversion-1.6.9/libtool
--tag=CC --
silent --mode=compile gcc -I/opt/include -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANT
ICS -D_REENTRANT -m64 -O2 -I./subversion/include -I./subversion
-I/opt/apac
he2-64/include -I/opt/apache2-64/include -I/opt/include
-I/home/users/o/opha40
00/subversion/subversion-1.6.9/neon/src
-I/opt/subversion-64/include/neon -I/hom
e/users/o/opha4000/subversion/subversion-1.6.9/sqlite-amalgamation -o
subversio
n/libsvn_fs_fs/rep-cache.lo -c subversion/libsvn_fs_fs/rep-cache.c
subversion/libsvn_fs_fs/rep-cache.c:35: error: `REP_CACHE_DB_SQL'
undeclared her
e (not in a function)
subversion/libsvn_fs_fs/rep-cache.c:35: error: initializer element is
not consta
nt
subversion/libsvn_fs_fs/rep-cache.c:35: error: (near initialization for
`upgrade
_sql[1]')
gmake: *** [subversion/libsvn_fs_fs/rep-cache.lo] Error 1

caused by:

CC=gcc
CFLAGS="-m64 -O2"
CPPFLAGS="-I/opt/include"
LDFLAGS="-L/opt/lib -L/usr/sfw/lib/64 -R/opt/lib -R/usr/sfw/lib/64"
export CC CFLAGS CPPFLAGS LDFLAGS

./configure --prefix=/opt/subversion-64 \
        --with-apxs=/opt/apache2-64/bin/apxs \
        --with-apr=/opt/apache2-64 \
        --with-apr-util=/opt/apache2-64 \
        --with-ssl \
        --with-libs=/opt/lib \
        --without-serf \
        --without-sasl \
        --without-jdk \
        --without-jikes \
        --without-berkeley-db \

echo '=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!'

gmake

Herbert
Received on 2010-03-12 15:08:03 CET

This is an archived mail posted to the Subversion Users mailing list.