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

Re: packaging swig python hpux ia64 (+DD64)

From: David Everly <deckrider_at_gmail.com>
Date: 2006-05-03 00:13:31 CEST

As it turns out, make check-swig-py doesn't work either:

deverly@omztdv1:~/subversion-1.3.1$ make check-swig-py
cd /home/deverly/subversion-1.3.1/subversion/bindings/swig/python; \
  /opt/vzb/bin/python
/home/deverly/subversion-1.3.1/subversion/bindings/swig/python/tests/run_all.py
Traceback (most recent call last):
  File "/home/deverly/subversion-1.3.1/subversion/bindings/swig/python/tests/run_all.py",
line 18, in ?
    import pool
  File "/home/deverly/subversion-1.3.1/subversion/bindings/swig/python/tests/pool.py",
line 1, in ?
    from svn.core import *
  File "/home/deverly/subversion-1.3.1/subversion/bindings/swig/python/svn/core.py",
line 19, in ?
    from libsvn.core import *
  File "/home/deverly/subversion-1.3.1/subversion/bindings/swig/python/libsvn/core.py",
line 5, in ?
    import _core
ImportError: No module named _core
gmake: *** [check-swig-py] Error 1

Here is how I built python 2.4.3:

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/aCC/bin:/opt/vzb/bin:/opt/vzb/sbin:/usr/local/bin

./configure \
        --prefix=/opt/vzb \
        --without-gcc \
        CC=cc \
        CXX=aCC \
        BASECFLAGS="+DD64" \
        LDFLAGS="+DD64 -lxnet"

And here is how I tried to build subversion:

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/vzb/bin:/opt/vzb/sbin
PYTHON=/opt/vzb/bin/python
export PYTHON

./configure \
        --with-ssl \
        --prefix=/opt/vzb \
        --with-apr=/opt/vzb/bin/apr-config \
        --with-apr-util=/opt/vzb/bin/apu-config \
        --with-apxs=/opt/vzb/sbin/apxs \
        --without-berkeley-db \
        --with-swig=/opt/vzb \
        --disable-mod-activation \
        CC=/usr/bin/cc \
        CFLAGS="+DD64" \
        CPPFLAGS="-I/opt/vzb/include -I/opt/vzb/pcre-6.3/include" \
        LDFLAGS="-L/opt/vzb/lib -L/opt/vzb/pcre-6.3/lib
-L/home/deverly/svn-tmp/opt/vzb/lib"

make
make swig-py

On 5/2/06, David Everly <deckrider@gmail.com> wrote:
> I'm having trouble packaging the swig bindings on:
>
> HP-UX B.11.23 U ia64 2505142627 unlimited-user license
>
> I have compiled and installed Apache and latest stable Python, and
> also swig 1.3.25, all using HP's compilers and +DD64 compiler options.
>
> The swig python bindings for subversion compile fine, but I cannot get
> them to install using DESTDIR as directed in the instructions:
>
> $ make install-swig-py DESTDIR=/home/deverly/svn-tmp
>
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c -d
> /home/deverly/svn-tmp /opt/vzb/lib
> cd subversion/bindings/swig/python/libsvn_swig_py ; /bin/sh
> /home/deverly/subver sion-1.3.1/libtool --mode=install
> /home/deverly/subversion-1.3.1/ac-helpers/inst all-sh -c
> libsvn_swig_py-1.la /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1
> .la
> libtool: install: warning: relinking `libsvn_swig_py-1.la'
> (cd /home/deverly/subversion-1.3.1/subversion/bindings/swig/python/libsvn_swig_p
> y; /bin/sh /home/deverly/subversion-1.3.1/libtool --tag=CC --silent
> --mode=reli nk /usr/bin/cc +DD64 -mt -L/opt/vzb/lib
> -L/opt/vzb/pcre-6.3/lib -L/home/deverly/ svn-tmp/opt/vzb/lib
> -L/opt/vzb/lib -rpath /opt/vzb/lib -o libsvn_swig_py-1.la sw
> igutil_py.lo ../../../../../subversion/libsvn_subr/libsvn_subr-1.la
> ../../../../ ../subversion/libsvn_delta/libsvn_delta-1.la
> ../../../../../subversion/libsvn_wc /libsvn_wc-1.la
> /opt/vzb/lib/libaprutil-0.la -lexpat /opt/vzb/lib/libapr-0.la -l m
> -lnsl -lpthread -ldld -inst-prefix-dir /home/deverly/svn-tmp)
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c
> .libs/libsvn_swig_py-1.s o.0.0T
> /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.so.0.0
> (cd /home/deverly/svn-tmp/opt/vzb/lib && { ln -s -f
> libsvn_swig_py-1.so.0.0 libs vn_swig_py-1.so.0 || { rm -f
> libsvn_swig_py-1.so.0 && ln -s libsvn_swig_py-1.so. 0.0
> libsvn_swig_py-1.so.0; }; })
> (cd /home/deverly/svn-tmp/opt/vzb/lib && { ln -s -f
> libsvn_swig_py-1.so.0.0 libs vn_swig_py-1.so || { rm -f
> libsvn_swig_py-1.so && ln -s libsvn_swig_py-1.so.0.0
> libsvn_swig_py-1.so; }; })
> chmod 555 /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.so.0.0
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c
> .libs/libsvn_swig_py-1.l ai
> /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.la
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c
> .libs/libsvn_swig_py-1.a
> /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.a
> ranlib /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.a
> chmod 644 /home/deverly/svn-tmp/opt/vzb/lib/libsvn_swig_py-1.a
> libtool: install: warning: remember to run `libtool --finish /opt/vzb/lib'
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c -d
> /home/deverly/svn-tmp /opt/vzb/lib/svn-python/libsvn
> cd subversion/bindings/swig/python ; /bin/sh
> /home/deverly/subversion-1.3.1/libt ool --mode=install
> /home/deverly/subversion-1.3.1/ac-helpers/install-sh -c _core .la
> /home/deverly/svn-tmp/opt/vzb/lib/svn-python/libsvn/_core.la
> libtool: install: warning: relinking `_core.la'
> (cd /home/deverly/subversion-1.3.1/subversion/bindings/swig/python;
> /bin/sh /hom e/deverly/subversion-1.3.1/libtool --tag=CC --silent
> --mode=relink ld -b -rpath /opt/vzb/lib/svn-python/libsvn
> -avoid-version -module -o _core.la core.lo ../..
> /../../subversion/bindings/swig/python/libsvn_swig_py/libsvn_swig_py-1.la
> ../../ ../../subversion/libsvn_delta/libsvn_delta-1.la
> ../../../../subversion/libsvn_di ff/libsvn_diff-1.la
> ../../../../subversion/libsvn_subr/libsvn_subr-1.la /opt/vzb
> /lib/libapr-0.la -lm -lnsl -lpthread -ldld -inst-prefix-dir
> /home/deverly/svn-tm p)
> ld: Can't find library or mismatched ABI for -lsvn_swig_py-1
> Fatal error.
> libtool: install: error: relink `_core.la' with the above command
> before install ing it
> gmake: *** [install-swig-py] Error 1
>
> Any suggestions?
>
> Thanks,
> Dave.
>
> --
> ASCII ribbon campaign:
> () against HTML email
> /\ against Microsoft attachments
> Information: http://www.expita.com/nomime.html
>

--
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
    Information:  http://www.expita.com/nomime.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 00:14:42 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.