[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#392174: pycaml: FTBFS: /usr/bin/ld: cannot find -lpython2.3



Package: pycaml
Version: 0.82-4
Severity: serious
Tags: patch

When building 'pycaml' in a clean unstable chroot,
I get the following error:

make[2]: Entering directory `/pycaml-0.82'
make[2]: `libpycaml_stubs.a' is up to date.
ocamlc -c -thread -I /usr/include/python2.4 pycaml.ml
ocamlmklib    -I /usr/include/python2.4  -L/usr/lib/python2.4/config    \
				-o pycaml_stubs  pycaml_ml.o -lpython2.3 -lpthread -ldl -lutil -lm -lc \
				
/usr/bin/ld: cannot find -lpython2.3
collect2: ld returned 1 exit status
make[2]: *** [dllpycaml_stubs.so] Error 2
make[2]: Leaving directory `/pycaml-0.82'

With the attached patch 'pycaml' can be built on unstable.

Regards
Andreas Jochens

diff -urN ../tmp-orig/pycaml-0.82/debian/Makefile ./debian/Makefile
--- ../tmp-orig/pycaml-0.82/debian/Makefile	2006-10-10 15:41:33.000000000 +0000
+++ ./debian/Makefile	2006-10-10 15:41:17.000000000 +0000
@@ -1,7 +1,7 @@
 OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
 PY_PREFIX = $(shell python getprefix.py)
 PY_VERSION = $(shell python getversion.py)
-CLIBS = python2.3 pthread dl util m c
+CLIBS = python2.4 pthread dl util m c
 
 SOURCES = pycaml.ml pycaml_ml.c
 RESULT = pycaml



Reply to: