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

Can't build swig bindings

From: Tim Moloney <moloney_at_mrsl.com>
Date: 2002-12-02 17:31:36 CET

Forgive me but I have no idea what I'm doing. That said...

I'm trying to run 'make swig-py-ext' and I get the following
error message.

/usr/bin/ld: cannot find -lsvn_swig_py-1
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
make: *** [swig-py-ext] Error 1

I don't know SWIG or Python. Could someone tell me where to start
looking to find my problem?

Additional information
- I'm on a Red Hat 8.0 box.
- This is with Subversion r3953.
- I'm following the instructions in subversion/bindings/swig/INSTALL
- I've installed SWIG 1.3.17
- Subversion builds, installs, and runs with no problems.
- Subversion was installed with the following commands
   ./autogen.sh
   ./configure --prefix=/usr --with-apr=/usr/bin/apr-config \
     --with-apr-util=/usr/bin/apu-config --disable-mod-activation
   make
   make install
- The full text of the problem is

bash> make swig-py-ext
cd /home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python;
                                 \
         /usr/bin/python2 setup.py \
 
-I/home/moloney/sandbox/svn/subversion/subversion/bindings/swig
                              \
             -I/home/moloney/sandbox/svn/subversion/subversion/include
-I/usr/include/httpd \
 
-S/home/moloney/sandbox/svn/subversion/subversion/bindings/swig
                              \
             -L/usr/lib -L/etc/httpd/lib \
                                             \
             build
--build-base=/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build
running build
running build_py
not copying svn/client.py (output up-to-date)
not copying svn/util.py (output up-to-date)
not copying svn/wc.py (output up-to-date)
not copying svn/delta.py (output up-to-date)
not copying svn/fs.py (output up-to-date)
not copying svn/repos.py (output up-to-date)
not copying svn/ra.py (output up-to-date)
not copying svn/__init__.py (output up-to-date)
running build_ext
building '_client' extension
swigging
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/svn_client.i
to
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/svn_client.c
swig -c -python -noproxy
-I/home/moloney/sandbox/svn/subversion/subversion/bindings/swig
-I/home/moloney/sandbox/svn/subversion/subversion/include
-I/usr/include/httpd -I/usr/include/python2.2 -o
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/svn_client.c
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/svn_client.i
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/home/moloney/sandbox/svn/subversion/subversion/bindings/swig
-I/home/moloney/sandbox/svn/subversion/subversion/include
-I/usr/include/httpd -I/usr/include/python2.2 -c
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/svn_client.c
-o
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/temp.linux-i686-2.2/svn_client.o
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/svn_client.c:258:
warning: function declaration isn't a prototype
gcc -shared
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/temp.linux-i686-2.2/svn_client.o
-L/usr/lib -L/etc/httpd/lib -lsvn_client-1 -lsvn_swig_py-1 -lswigpy -o
/home/moloney/sandbox/svn/subversion/subversion/bindings/swig/python/build/lib.linux-i686-2.2/svn/_client.so
/usr/bin/ld: cannot find -lsvn_swig_py-1
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
make: *** [swig-py-ext] Error 1
bash>

-- 
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road                             \     /
Sarasota, FL  34232                     .________\(O)/________.
(941) 377-6775 x208                        '  '  O(.)O  '  '
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 2 17:32:21 2002

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

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