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

Bug#619344: ocaml 3.11.2-4 FTBFS on Ubuntu natty



Package: ocaml
Version: 3.11.2-4

Hello,

I was trying to build ocaml 3.11.2-4 on Ubuntu natty, but it fails to
build. I don't know how to fix it.

putenv() found.
setlocale() and <locale.h> found.
dlopen() found in -ldl.
Dynamic loading of shared libraries is supported.
mmap() found.
gethostbyname_r() found (with 6 arguments).
gethostbyaddr_r() found (with 8 arguments).
Replay debugger supported.
System stack overflow can be detected.
POSIX threads library supported.
Options for linking with POSIX threads: -lpthread
sigwait() found
Bytecode threads library supported.
X11 not found, the "graph" library will not be supported.
NDBM found (in /usr/include)
Configuring LablTk...
X11 not found.
Configuration failed, LablTk will not be built.

** Configuration summary **

Directories where Objective Caml will be installed:
        binaries.................. /usr/bin
        standard library.......... /usr/lib/ocaml
        manual pages.............. /usr/share/man (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc
        options for compiling..... -fno-defer-pop -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......  -Wl,-E  -lm  -ldl -lcurses -lpthread
        shared libraries are supported
        options for compiling..... -fPIC -fno-defer-pop -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
        command for building...... gcc -shared -o lib.so
-Wl,-rpath,/a/path objs
Configuration for the native-code compiler:
        hardware architecture..... i386
        OS variant................ linux_elf
        C compiler used........... gcc
        options for compiling..... -Wall -D_FILE_OFFSET_BITS=64
-D_REENTRANT
        options for linking.......   -lm
        assembler ................ as
        preprocessed assembler ... gcc -c
        profiling with gprof ..... supported
Source-level replay debugger: supported
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads dbm
Configuration for the "num" library:
        target architecture ...... ia32 (asm level 2)
Configuration for the "graph" library:
        options for compiling .... 
        options for linking ...... not found
The "labltk" library: not supported

** Objective Caml configuration completed successfully **

sed -i -e "s%MANDIR=.*$%MANDIR=\$(PREFIX)/share/man%g" -e "s%LIBDIR=.*$%
LIBDIR=\$(PREFIX)/lib/ocaml%g" -e "s%STUBLIBDIR=.*$%STUBLIBDIR=\
$(PREFIX)/lib/ocaml/stublibs%g" config/Makefile
if test -z "`grep "OTHERLIBRARIES.*labltk" config/Makefile`"; then \
	  echo "Error, labltk library was not detected"; \
	  echo "Check your tcl/tk development packages"; \
	  echo "Aborting."; \
	  exit 1; \
	fi
Error, labltk library was not detected
Check your tcl/tk development packages
Aborting.
make: *** [config-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: using fakeroot in build.
I: Current time: Tue Mar 22 23:34:55 CET 2011
I: pbuilder-time-stamp: 1300833295
I: Building the build Environment
I: extracting base tarball [/home/ari/pbuilder/natty-base.tgz]
I: creating local configuration
I: copying local configuration
I: Installing apt-lines
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /var/cache/pbuilder/ccache
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Setting up ccache
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: i386
Maintainer: Debian Pbuilder Team <pbuilder-maint@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (>= 7), autotools-dev, tcl8.5-dev, tk8.5-dev, libncurses5-dev, libgdbm-dev, quilt, bzip2, dh-ocaml (>= 0.9)
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in `/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously deselected package pbuilder-satisfydepends-dummy.
(Reading database ... 13453 files and directories currently installed.)
Unpacking pbuilder-satisfydepends-dummy (from .../pbuilder-satisfydepends-dummy.deb) ...
dpkg: dependency problems prevent configuration of pbuilder-satisfydepends-dummy:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 7); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on autotools-dev; however:
  Package autotools-dev is not installed.
 pbuilder-satisfydepends-dummy depends on tcl8.5-dev; however:
  Package tcl8.5-dev is not installed.
 pbuilder-satisfydepends-dummy depends on tk8.5-dev; however:
  Package tk8.5-dev is not installed.
 pbuilder-satisfydepends-dummy depends on libncurses5-dev; however:
  Package libncurses5-dev is not installed.
 pbuilder-satisfydepends-dummy depends on libgdbm-dev; however:
  Package libgdbm-dev is not installed.
 pbuilder-satisfydepends-dummy depends on quilt; however:
  Package quilt is not installed.
 pbuilder-satisfydepends-dummy depends on dh-ocaml (>= 0.9); however:
  Package dh-ocaml is not installed.
dpkg: error processing pbuilder-satisfydepends-dummy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pbuilder-satisfydepends-dummy
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
The following NEW packages will be installed:
  autotools-dev{a} bsdmainutils{a} debhelper{a} dh-ocaml{a} diffstat{a} 
  file{a} fontconfig-config{a} gettext{a} gettext-base{a} groff-base{a} 
  html2text{a} intltool-debian{a} libcroco3{a} libexpat1{a} 
  libexpat1-dev{a} libfontconfig1{a} libfontconfig1-dev{a} libfreetype6{a} 
  libfreetype6-dev{a} libgdbm-dev{a} libmagic1{a} libncurses5-dev{a} 
  libpipeline1{a} libpopt0{a} libpthread-stubs0{a} libpthread-stubs0-dev{a} 
  libunistring0{a} libx11-6{a} libx11-data{a} libx11-dev{a} libxau-dev{a} 
  libxau6{a} libxcb1{a} libxcb1-dev{a} libxdmcp-dev{a} libxdmcp6{a} 
  libxext-dev{a} libxext6{a} libxft-dev{a} libxft2{a} libxml2{a} 
  libxrender-dev{a} libxrender1{a} libxss-dev{a} libxss1{a} man-db{a} 
  pkg-config{a} po-debconf{a} quilt{a} tcl8.5{a} tcl8.5-dev{a} tk8.5{a} 
  tk8.5-dev{a} ttf-dejavu-core{a} ucf{a} x11-common{a} x11proto-core-dev{a} 
  x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-render-dev{a} 
  x11proto-scrnsaver-dev{a} x11proto-xext-dev{a} xtrans-dev{a} 
  zlib1g-dev{a} 
The following partially installed packages will be configured:
  pbuilder-satisfydepends-dummy 
0 packages upgraded, 64 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/19.2 MB of archives. After unpacking 69.8 MB will be used.
Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package libmagic1.
(Reading database ... 13453 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_5.04-5ubuntu2_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_5.04-5ubuntu2_i386.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-15_i386.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-2_i386.deb) ...
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_0.6.2-1_i386.deb) ...
Selecting previously deselected package libunistring0.
Unpacking libunistring0 (from .../libunistring0_0.9.3-3_i386.deb) ...
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.18.1.1-3ubuntu1_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.18.1.1-3ubuntu1_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_i386.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16+nmu1_i386.deb) ...
Selecting previously deselected package groff-base.
Unpacking groff-base (from .../groff-base_1.21-5_i386.deb) ...
Selecting previously deselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_8.2.2_i386.deb) ...
Selecting previously deselected package libpipeline1.
Unpacking libpipeline1 (from .../libpipeline1_1.2.0-1_i386.deb) ...
Selecting previously deselected package man-db.
Unpacking man-db (from .../man-db_2.5.9-4_i386.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_8.1.2ubuntu4_i386.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20100122.1_i386.deb) ...
Selecting previously deselected package tcl8.5.
Unpacking tcl8.5 (from .../tcl8.5_8.5.9-2_i386.deb) ...
Selecting previously deselected package tcl8.5-dev.
Unpacking tcl8.5-dev (from .../tcl8.5-dev_8.5.9-2_i386.deb) ...
Selecting previously deselected package x11proto-core-dev.
Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.20-1_i386.deb) ...
Selecting previously deselected package libxau6.
Unpacking libxau6 (from .../libxau6_1%3a1.0.6-1ubuntu1_i386.deb) ...
Selecting previously deselected package libxdmcp6.
Unpacking libxdmcp6 (from .../libxdmcp6_1%3a1.1.0-1ubuntu1_i386.deb) ...
Selecting previously deselected package libxcb1.
Unpacking libxcb1 (from .../libxcb1_1.7-2ubuntu1_i386.deb) ...
Selecting previously deselected package libx11-data.
Unpacking libx11-data (from .../libx11-data_2%3a1.4.1-5ubuntu2_i386.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_2%3a1.4.1-5ubuntu2_i386.deb) ...
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from .../libxau-dev_1%3a1.0.6-1ubuntu1_i386.deb) ...
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from .../libxdmcp-dev_1%3a1.1.0-1ubuntu1_i386.deb) ...
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from .../x11proto-input-dev_2.0.1-1ubuntu1_i386.deb) ...
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.5-1_i386.deb) ...
Selecting previously deselected package x11-common.
Unpacking x11-common (from .../x11-common_1%3a7.6~3ubuntu11_i386.deb) ...
Setting up x11-common (1:7.6~3ubuntu11) ...
Selecting previously deselected package xtrans-dev.
(Reading database ... 15354 files and directories currently installed.)
Unpacking xtrans-dev (from .../xtrans-dev_1.2.6-1_i386.deb) ...
Selecting previously deselected package libpthread-stubs0.
Unpacking libpthread-stubs0 (from .../libpthread-stubs0_0.3-2_i386.deb) ...
Selecting previously deselected package libpthread-stubs0-dev.
Unpacking libpthread-stubs0-dev (from .../libpthread-stubs0-dev_0.3-2_i386.deb) ...
Selecting previously deselected package libxcb1-dev.
Unpacking libxcb1-dev (from .../libxcb1-dev_1.7-2ubuntu1_i386.deb) ...
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from .../libx11-dev_2%3a1.4.1-5ubuntu2_i386.deb) ...
Selecting previously deselected package libxext6.
Unpacking libxext6 (from .../libxext6_2%3a1.2.0-2_i386.deb) ...
Selecting previously deselected package libxss1.
Unpacking libxss1 (from .../libxss1_1%3a1.2.1-1_i386.deb) ...
Selecting previously deselected package x11proto-xext-dev.
Unpacking x11proto-xext-dev (from .../x11proto-xext-dev_7.1.99.0~git20110111.9df8b776-0ubuntu2_i386.deb) ...
Selecting previously deselected package libxext-dev.
Unpacking libxext-dev (from .../libxext-dev_2%3a1.2.0-2_i386.deb) ...
Selecting previously deselected package x11proto-scrnsaver-dev.
Unpacking x11proto-scrnsaver-dev (from .../x11proto-scrnsaver-dev_1.2.1-1_i386.deb) ...
Selecting previously deselected package libxss-dev.
Unpacking libxss-dev (from .../libxss-dev_1%3a1.2.1-1_i386.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_2.0.1-7ubuntu3_i386.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.4.4-1ubuntu2_i386.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu1ubuntu1_i386.deb) ...
Moving old data out of the way
Selecting previously deselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from .../ttf-dejavu-core_2.31-1_i386.deb) ...
Selecting previously deselected package fontconfig-config.
Unpacking fontconfig-config (from .../fontconfig-config_2.8.0-2.1ubuntu3_i386.deb) ...
Selecting previously deselected package libfontconfig1.
Unpacking libfontconfig1 (from .../libfontconfig1_2.8.0-2.1ubuntu3_i386.deb) ...
Selecting previously deselected package libxrender1.
Unpacking libxrender1 (from .../libxrender1_1%3a0.9.6-1_i386.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from .../libxft2_2.2.0-2ubuntu1_i386.deb) ...
Selecting previously deselected package libexpat1-dev.
Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7ubuntu3_i386.deb) ...
Selecting previously deselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu3_i386.deb) ...
Selecting previously deselected package libfreetype6-dev.
Unpacking libfreetype6-dev (from .../libfreetype6-dev_2.4.4-1ubuntu2_i386.deb) ...
Selecting previously deselected package libpopt0.
Unpacking libpopt0 (from .../libpopt0_1.16-1_i386.deb) ...
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.25-1.1ubuntu1_i386.deb) ...
Selecting previously deselected package libfontconfig1-dev.
Unpacking libfontconfig1-dev (from .../libfontconfig1-dev_2.8.0-2.1ubuntu3_i386.deb) ...
Selecting previously deselected package x11proto-render-dev.
Unpacking x11proto-render-dev (from .../x11proto-render-dev_2%3a0.11.1-1_i386.deb) ...
Selecting previously deselected package libxrender-dev.
Unpacking libxrender-dev (from .../libxrender-dev_1%3a0.9.6-1_i386.deb) ...
Selecting previously deselected package libxft-dev.
Unpacking libxft-dev (from .../libxft-dev_2.2.0-2ubuntu1_i386.deb) ...
Selecting previously deselected package tk8.5.
Unpacking tk8.5 (from .../tk8.5_8.5.9-2_i386.deb) ...
Selecting previously deselected package tk8.5-dev.
Unpacking tk8.5-dev (from .../tk8.5-dev_8.5.9-2_i386.deb) ...
Selecting previously deselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20101128-1_i386.deb) ...
Selecting previously deselected package libgdbm-dev.
Unpacking libgdbm-dev (from .../libgdbm-dev_1.8.3-9ubuntu1_i386.deb) ...
Selecting previously deselected package diffstat.
Unpacking diffstat (from .../diffstat_1.54-1_i386.deb) ...
Selecting previously deselected package quilt.
Unpacking quilt (from .../archives/quilt_0.48-7_i386.deb) ...
Selecting previously deselected package dh-ocaml.
Unpacking dh-ocaml (from .../dh-ocaml_0.9.6_i386.deb) ...
Setting up libmagic1 (5.04-5ubuntu2) ...
Setting up file (5.04-5ubuntu2) ...
Setting up html2text (1.3.2a-15) ...
Setting up libxml2 (2.7.8.dfsg-2) ...
Setting up libcroco3 (0.6.2-1) ...
Setting up libunistring0 (0.9.3-3) ...
Setting up gettext-base (0.18.1.1-3ubuntu1) ...
Setting up gettext (0.18.1.1-3ubuntu1) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16+nmu1) ...
Setting up groff-base (1.21-5) ...
Setting up bsdmainutils (8.2.2) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode.
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode.
Setting up libpipeline1 (1.2.0-1) ...
Setting up man-db (2.5.9-4) ...
Building database of manual pages ...
Setting up debhelper (8.1.2ubuntu4) ...
Setting up autotools-dev (20100122.1) ...
Setting up tcl8.5 (8.5.9-2) ...
update-alternatives: using /usr/bin/tclsh8.5 to provide /usr/bin/tclsh (tclsh) in auto mode.
Setting up tcl8.5-dev (8.5.9-2) ...
Setting up x11proto-core-dev (7.0.20-1) ...
Setting up libxau6 (1:1.0.6-1ubuntu1) ...
Setting up libxdmcp6 (1:1.1.0-1ubuntu1) ...
Setting up libxcb1 (1.7-2ubuntu1) ...
Setting up libx11-data (2:1.4.1-5ubuntu2) ...
Setting up libx11-6 (2:1.4.1-5ubuntu2) ...
Setting up libxau-dev (1:1.0.6-1ubuntu1) ...
Setting up libxdmcp-dev (1:1.1.0-1ubuntu1) ...
Setting up x11proto-input-dev (2.0.1-1ubuntu1) ...
Setting up x11proto-kb-dev (1.0.5-1) ...
Setting up xtrans-dev (1.2.6-1) ...
Setting up libpthread-stubs0 (0.3-2) ...
Setting up libpthread-stubs0-dev (0.3-2) ...
Setting up libxcb1-dev (1.7-2ubuntu1) ...
Setting up libx11-dev (2:1.4.1-5ubuntu2) ...
Setting up libxext6 (2:1.2.0-2) ...
Setting up libxss1 (1:1.2.1-1) ...
Setting up x11proto-xext-dev (7.1.99.0~git20110111.9df8b776-0ubuntu2) ...
Setting up libxext-dev (2:1.2.0-2) ...
Setting up x11proto-scrnsaver-dev (1.2.1-1) ...
Setting up libxss-dev (1:1.2.1-1) ...
Setting up libexpat1 (2.0.1-7ubuntu3) ...
Setting up libfreetype6 (2.4.4-1ubuntu2) ...
Setting up ucf (3.0025+nmu1ubuntu1) ...
Setting up ttf-dejavu-core (2.31-1) ...
Setting up fontconfig-config (2.8.0-2.1ubuntu3) ...
Setting up libfontconfig1 (2.8.0-2.1ubuntu3) ...
Setting up libxrender1 (1:0.9.6-1) ...
Setting up libxft2 (2.2.0-2ubuntu1) ...
Setting up libexpat1-dev (2.0.1-7ubuntu3) ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu3) ...
Setting up libfreetype6-dev (2.4.4-1ubuntu2) ...
Setting up libpopt0 (1.16-1) ...
Setting up pkg-config (0.25-1.1ubuntu1) ...
Setting up libfontconfig1-dev (2.8.0-2.1ubuntu3) ...
Setting up x11proto-render-dev (2:0.11.1-1) ...
Setting up libxrender-dev (1:0.9.6-1) ...
Setting up libxft-dev (2.2.0-2ubuntu1) ...
Setting up tk8.5 (8.5.9-2) ...
update-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode.
Setting up tk8.5-dev (8.5.9-2) ...
Setting up libncurses5-dev (5.7+20101128-1) ...
Setting up libgdbm-dev (1.8.3-9ubuntu1) ...
Setting up diffstat (1.54-1) ...
Setting up quilt (0.48-7) ...
Setting up dh-ocaml (0.9.6) ...
Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
 -> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
fakeroot is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I: Copying back the cached apt archive contents
I: Copying source file
I: copying [ocaml_3.11.2-4.dsc]
I: copying [./ocaml_3.11.2.orig.tar.gz]
I: copying [./ocaml_3.11.2-4.diff.gz]
I: Extracting source
gpgv: Signature made Wed Mar  9 07:10:09 2011 UTC using RSA key ID 49881AD3
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./ocaml_3.11.2-4.dsc
dpkg-source: info: extracting ocaml in ocaml-3.11.2
dpkg-source: info: unpacking ocaml_3.11.2.orig.tar.gz
dpkg-source: info: applying ocaml_3.11.2-4.diff.gz
I: Building the package
I: Running cd tmp/buildd/*/ && dpkg-buildpackage -us -uc  -rfakeroot
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package ocaml
dpkg-buildpackage: source version 3.11.2-4
dpkg-buildpackage: source changed by Stéphane Glondu <glondu@debian.org>
 dpkg-source --before-build ocaml-3.11.2
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
QUILT_PATCHES=debian/patches \
		quilt --quiltrc /dev/null pop -a -R || test $? = 2
No patch removed
rm -rf .pc debian/stamp-patched
rm -f ocamlinit-stamp debian/camlp4-extra.install debian/camlp4.dirs debian/camlp4.install debian/camlp4.links debian/ld.conf debian/ocaml-base-nox.dirs debian/ocaml-base-nox.install debian/ocaml-base-nox.postinst debian/ocaml-base-nox.prerm debian/ocaml-base.dirs debian/ocaml-base.install debian/ocaml-compiler-libs.dirs debian/ocaml-compiler-libs.install debian/ocaml-interp.install debian/ocaml-nox.dirs debian/ocaml-nox.install debian/ocaml-nox.links debian/ocaml-nox.lintian-overrides debian/ocaml-nox.manpages debian/ocaml-nox.postinst debian/ocaml-source.dirs debian/ocaml-source.install debian/ocaml.dirs debian/ocaml.install
dh clean --before dh_auto_clean
   dh_testdir
if test -d boot.debian; then \
	  rm -Rf boot; \
	  mv boot.debian boot; \
	fi
for ext in sub guess; do \
	  if [ -f debian/config.orig.$ext ] ; then \
	    mv -f debian/config.orig.$ext config/gnu/config.$ext; \
	  fi; \
	done
if head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \
		sed -i 1d emacs/ocamltags.in; \
	fi
rm -Rf debian/ocaml-source-3.11.2.tar.bz2 debian/examples
/usr/bin/make -f debian/ocamlbyteinfo/Makefile clean
make[1]: Entering directory `/tmp/buildd/ocaml-3.11.2'
rm -f debian/ocamlbyteinfo/ocamlbyteinfo debian/ocamlbyteinfo/ocamlplugininfo debian/ocamlbyteinfo/*.cm* debian/ocamlbyteinfo/natdynlink.* debian/ocamlbyteinfo/*.a debian/ocamlbyteinfo/*.o
make[1]: Leaving directory `/tmp/buildd/ocaml-3.11.2'
dh clean --after dh_auto_clean
   dh_clean
 dpkg-source -b ocaml-3.11.2
dpkg-source: info: using source format `1.0'
dpkg-source: info: building ocaml using existing ocaml_3.11.2.orig.tar.gz
dpkg-source: info: building ocaml in ocaml_3.11.2-4.diff.gz
dpkg-source: info: building ocaml in ocaml_3.11.2-4.dsc
 debian/rules build
ln -fs . ocaml-3.11.2	# beware of the symlink recursion!
tar --anchored -chjf debian/ocaml-source-3.11.2.tar.bz2 \
	  --exclude=ocaml-3.11.2/ocaml-3.11.2	\
	  --exclude-from=debian/ocaml-source.exclude \
	  ocaml-3.11.2/
rm -f ocaml-3.11.2
chmod +x debian/gen_modules.pl
for ext in sub guess; do \
	  if [ -f /usr/share/misc/config.$ext ] && \
	    ! [ -f debian/config.orig.$ext ]; then \
	    mv config/gnu/config.$ext debian/config.orig.$ext; \
	    cp -f /usr/share/misc/config.$ext config/gnu/config.$ext; \
	  fi; \
	done
touch pre-config-stamp
for t in debian/camlp4-extra.install debian/camlp4.dirs debian/camlp4.install debian/camlp4.links debian/ld.conf debian/ocaml-base-nox.dirs debian/ocaml-base-nox.install debian/ocaml-base-nox.postinst debian/ocaml-base-nox.prerm debian/ocaml-base.dirs debian/ocaml-base.install debian/ocaml-compiler-libs.dirs debian/ocaml-compiler-libs.install debian/ocaml-interp.install debian/ocaml-nox.dirs debian/ocaml-nox.install debian/ocaml-nox.links debian/ocaml-nox.lintian-overrides debian/ocaml-nox.manpages debian/ocaml-nox.postinst debian/ocaml-source.dirs debian/ocaml-source.install debian/ocaml.dirs debian/ocaml.install; do \
	  sed -e 's%@OCamlABI@%3.11.2%g' -e 's%@OCamlStdlibDir@%/usr/lib/ocaml%g' -e 's%@OCamlDllDir@%/usr/lib/ocaml/stublibs%g' -e 's/^OPT: //' -e '/^BYTE: /d' $t.in > $t; \
	done
touch ocamlinit-stamp
QUILT_PATCHES=debian/patches \
		quilt --quiltrc /dev/null push -a || test $? = 2
Applying patch 0001-Pass-no-relax-to-ld-on-alpha.patch
patching file configure
Hunk #1 succeeded at 284 (offset 2 lines).
Hunk #2 succeeded at 698 (offset 4 lines).

Applying patch 0002-Call-ld-with-proper-flags.patch
patching file configure
Hunk #1 succeeded at 1570 (offset 4 lines).

Applying patch 0003-Don-t-use-rpath.patch
patching file tools/ocamlmklib.mlp
Hunk #1 succeeded at 37 (offset 5 lines).

Applying patch 0004-Put-manpages-in-section-3o-instead-of-3.patch
patching file ocamldoc/Makefile

Applying patch 0005-Patch-config.sh-for-installation.patch
patching file build/install.sh
patching file build/partial-install.sh

Applying patch 0006-Install-ocamlbuild-as-a-link-on-either-.native-or-.b.patch
patching file build/partial-install.sh

Applying patch 0007-Fix-ocamlopt-w.r.t.-binutils-2.21.patch
patching file asmcomp/amd64/emit.mlp
patching file asmcomp/i386/emit.mlp

Now at patch 0007-Fix-ocamlopt-w.r.t.-binutils-2.21.patch
touch debian/stamp-patched
dh build --before dh_auto_configure
   dh_testdir
./configure --with-pthread -prefix /usr -libdir /usr/lib/ocaml -mandir /usr/share/man -tkdefs "-I/usr/include/tcl8.5" -tklibs "-L/usr/lib -ltk8.5 -ltcl8.5"
Configuring for a i686-pc-linux-gnu ...
gcc found
The C compiler is ANSI-compliant.
Checking the sizes of integers and pointers...
OK, this is a regular 32 bit architecture.
64-bit "long long" integer type found (printf with "%ll").
This is a little-endian architecture.
Doubles can be word-aligned.
64-bit integers can be word-aligned.
Native division and modulus have round-towards-zero semantics, will use them.
ranlib found
#! appears to work in shell scripts
POSIX signal handling found.
getrusage() found.
times() found.
termcap functions found (with libraries '-lcurses')
You have BSD sockets.
socklen_t is defined in <sys/socket.h>
inet_aton() found.
IPv6 is supported.
unistd.h found.
off_t is defined in <sys/types.h>
dirent.h found.
rewinddir() found.
lockf() found.
mkfifo() found.
getcwd() found.
getwd() found.
getpriority() found.
utime() found.
utimes() found.
dup2() found.
fchmod() found.
truncate() found.
sys/select.h found.
select() found.
symlink() found.
waitpid() found.
wait4() found.
getgroups() found.
POSIX termios found.
Asynchronous I/O are supported.
setitimer() found.
gethostname() found.
uname() found.
gettimeofday() found.
mktime() found.
setsid() found.
putenv() found.
setlocale() and <locale.h> found.
dlopen() found in -ldl.
Dynamic loading of shared libraries is supported.
mmap() found.
gethostbyname_r() found (with 6 arguments).
gethostbyaddr_r() found (with 8 arguments).
Replay debugger supported.
System stack overflow can be detected.
POSIX threads library supported.
Options for linking with POSIX threads: -lpthread
sigwait() found
Bytecode threads library supported.
X11 not found, the "graph" library will not be supported.
NDBM found (in /usr/include)
Configuring LablTk...
X11 not found.
Configuration failed, LablTk will not be built.

** Configuration summary **

Directories where Objective Caml will be installed:
        binaries.................. /usr/bin
        standard library.......... /usr/lib/ocaml
        manual pages.............. /usr/share/man (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc
        options for compiling..... -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......  -Wl,-E  -lm  -ldl -lcurses -lpthread
        shared libraries are supported
        options for compiling..... -fPIC -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        command for building...... gcc -shared -o lib.so -Wl,-rpath,/a/path objs
Configuration for the native-code compiler:
        hardware architecture..... i386
        OS variant................ linux_elf
        C compiler used........... gcc
        options for compiling..... -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......   -lm
        assembler ................ as
        preprocessed assembler ... gcc -c
        profiling with gprof ..... supported
Source-level replay debugger: supported
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads dbm
Configuration for the "num" library:
        target architecture ...... ia32 (asm level 2)
Configuration for the "graph" library:
        options for compiling .... 
        options for linking ...... not found
The "labltk" library: not supported

** Objective Caml configuration completed successfully **

sed -i -e "s%MANDIR=.*$%MANDIR=\$(PREFIX)/share/man%g" -e "s%LIBDIR=.*$%LIBDIR=\$(PREFIX)/lib/ocaml%g" -e "s%STUBLIBDIR=.*$%STUBLIBDIR=\$(PREFIX)/lib/ocaml/stublibs%g" config/Makefile
if test -z "`grep "OTHERLIBRARIES.*labltk" config/Makefile`"; then \
	  echo "Error, labltk library was not detected"; \
	  echo "Check your tcl/tk development packages"; \
	  echo "Aborting."; \
	  exit 1; \
	fi
Error, labltk library was not detected
Check your tcl/tk development packages
Aborting.
make: *** [config-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//32713 and its subdirectories

Reply to: