caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johann Spies <jspies@sun.ac.za>
To: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] Problem using pcre on Debian
Date: Fri, 22 Feb 2002 18:27:34 +0200	[thread overview]
Message-ID: <20020222162734.GA27439@adept.co.za> (raw)
In-Reply-To: <Pine.GSO.4.33.0202221714300.7704-100000@clipper.ens.fr>

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

On Fri, Feb 22, 2002 at 05:17:23PM +0100, Alain Frisch wrote:

> This error appears when building test/example applications and it
> indicates that the dll has not been successfully built; don't you have any
> error message beforehand ?  Again: what is the architecture, C compiler ?
> Are dll supported by your OCaml installation ?

I suppose so.  It is the standard Debian installation.

Architecture :

bash-2.05a$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 6
model name      : Celeron (Mendocino)
stepping        : 5
cpu MHz         : 334.095

bash-2.05a$ gcc --version
2.95.4

I have attached the full output of make and the Makefile.

-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "The LORD bless thee, and keep thee; The LORD make his
      face shine upon thee, and be gracious unto thee; The 
      LORD lift up his countenance upon thee, and give thee 
      peace."              Numbers 6:24-26 

[-- Attachment #2: fout --]
[-- Type: text/plain, Size: 10724 bytes --]

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for limits.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... 
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcre.h
config.status: creating pcre-config
config.status: creating RunTest
config.status: creating config.h
config.status: config.h is unchanged
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-C'
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.  ./maketables.c
mkdir .libs
gcc -c -g -O2 -I. ./maketables.c  -fPIC -DPIC -o maketables.o
mv -f maketables.o .libs/maketables.lo
gcc -c -g -O2 -I. ./maketables.c -o maketables.o >/dev/null 2>&1
mv -f .libs/maketables.lo maketables.lo
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.  ./get.c
rm -f .libs/get.lo
gcc -c -g -O2 -I. ./get.c  -fPIC -DPIC -o get.o
mv -f get.o .libs/get.lo
gcc -c -g -O2 -I. ./get.c -o get.o >/dev/null 2>&1
mv -f .libs/get.lo get.lo
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.   ./study.c
rm -f .libs/study.lo
gcc -c -g -O2 -I. ./study.c  -fPIC -DPIC -o study.o
mv -f study.o .libs/study.lo
gcc -c -g -O2 -I. ./study.c -o study.o >/dev/null 2>&1
mv -f .libs/study.lo study.lo
/bin/sh ./libtool --mode=link gcc -o dftables -g -O2 ./dftables.c
gcc -o dftables -g -O2 ./dftables.c 
./dftables >./chartables.c
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.   ./pcre.c
rm -f .libs/pcre.lo
gcc -c -g -O2 -I. ./pcre.c  -fPIC -DPIC -o pcre.o
mv -f pcre.o .libs/pcre.lo
gcc -c -g -O2 -I. ./pcre.c -o pcre.o >/dev/null 2>&1
mv -f .libs/pcre.lo pcre.lo
rm -f libpcre.la
/bin/sh ./libtool --mode=link gcc -rpath /usr/local/lib -version-info \
	'0:1:0' -o libpcre.la maketables.lo get.lo study.lo pcre.lo
rm -fr .libs/libpcre.la .libs/libpcre.* .libs/libpcre.*
gcc -shared  maketables.lo get.lo study.lo pcre.lo   -Wl,-soname -Wl,libpcre.so.0 -o .libs/libpcre.so.0.0.1
(cd .libs && rm -f libpcre.so.0 && ln -s libpcre.so.0.0.1 libpcre.so.0)
(cd .libs && rm -f libpcre.so && ln -s libpcre.so.0.0.1 libpcre.so)
ar cru .libs/libpcre.a  maketables.o get.o study.o pcre.o 
ranlib .libs/libpcre.a
creating libpcre.la
(cd .libs && rm -f libpcre.la && ln -s ../libpcre.la libpcre.la)
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.  ./pcreposix.c
rm -f .libs/pcreposix.lo
gcc -c -g -O2 -I. ./pcreposix.c  -fPIC -DPIC -o pcreposix.o
mv -f pcreposix.o .libs/pcreposix.lo
gcc -c -g -O2 -I. ./pcreposix.c -o pcreposix.o >/dev/null 2>&1
mv -f .libs/pcreposix.lo pcreposix.lo
rm -f libpcreposix.la
/bin/sh ./libtool --mode=link gcc -rpath /usr/local/lib -version-info \
	'0:0:0' -o libpcreposix.la pcreposix.lo
rm -fr .libs/libpcreposix.la .libs/libpcreposix.* .libs/libpcreposix.*
gcc -shared  pcreposix.lo   -Wl,-soname -Wl,libpcreposix.so.0 -o .libs/libpcreposix.so.0.0.0
(cd .libs && rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.0 libpcreposix.so.0)
(cd .libs && rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.0 libpcreposix.so)
ar cru .libs/libpcreposix.a  pcreposix.o 
ranlib .libs/libpcreposix.a
creating libpcreposix.la
(cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la libpcreposix.la)
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.   ./pcretest.c
rm -f .libs/pcretest.lo
gcc -c -g -O2 -I. ./pcretest.c  -fPIC -DPIC -o pcretest.o
mv -f pcretest.o .libs/pcretest.lo
gcc -c -g -O2 -I. ./pcretest.c -o pcretest.o >/dev/null 2>&1
mv -f .libs/pcretest.lo pcretest.lo
/bin/sh ./libtool --mode=link gcc  -g -O2 -o pcretest pcretest.o \
	libpcre.la libpcreposix.la
gcc -g -O2 -o .libs/pcretest pcretest.o  ./.libs/libpcre.so ./.libs/libpcreposix.so -Wl,--rpath -Wl,/usr/local/lib
creating pcretest
/bin/sh ./libtool --mode=compile gcc -c -g -O2 -I.   -DIS_UNIX ./pcregrep.c
rm -f .libs/pcregrep.lo
gcc -c -g -O2 -I. -DIS_UNIX ./pcregrep.c  -fPIC -DPIC -o pcregrep.o
mv -f pcregrep.o .libs/pcregrep.lo
gcc -c -g -O2 -I. -DIS_UNIX ./pcregrep.c -o pcregrep.o >/dev/null 2>&1
mv -f .libs/pcregrep.lo pcregrep.lo
/bin/sh ./libtool --mode=link gcc -g -O2 -o pcregrep pcregrep.o libpcre.la
gcc -g -O2 -o .libs/pcregrep pcregrep.o  ./.libs/libpcre.so -Wl,--rpath -Wl,/usr/local/lib
creating pcregrep
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-C'
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
making ._bcdi/pcre.di from pcre.mli
making ._d/pcre.d from pcre.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
ocamlc -c pcre.mli
ocamlc -c pcre.ml
cc -c -O2 -fPIC -DPIC -I../pcre-C    -I/usr/lib/ocaml \
			pcre_intf.c -o pcre_intf.o
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
making ._ncdi/pcre.di from pcre.mli
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
ocamlopt -c pcre.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
ocamlmklib -o pcre pcre.cmo pcre.cmx pcre_intf.o \
	-L../pcre-C/.libs -lpcre -rpath /usr/lib/ocaml/contrib
cp ../pcre-C/.libs/libpcre.a .
ar r libpcre.a pcre_intf.o
ranlib libpcre.a
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/pcre-OCaml'
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
making ._d/cloc.d from cloc.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
ocamlc -c -I ../../pcre-OCaml cloc.ml
ocamlc  -I ../../pcre-OCaml      -ccopt -L../../pcre-OCaml  pcre.cma   -o cloc \
			cloc.cmo
Error on dynamically loaded library: libpcre.so.0: cannot open shared object file: No such file or directory
make[2]: *** [cloc] Error 2
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
make[1]: *** [byte-code] Error 2
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/cloc'
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
making ._d/count_hash.d from count_hash.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
ocamlc -c -I ../../pcre-OCaml count_hash.ml
ocamlc  -I ../../pcre-OCaml      -ccopt -L../../pcre-OCaml  pcre.cma   -o count_hash \
			count_hash.cmo
Error on dynamically loaded library: libpcre.so.0: cannot open shared object file: No such file or directory
make[2]: *** [count_hash] Error 2
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
make[1]: *** [byte-code] Error 2
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/count_hash'
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
making ._d/pcregrep.d from pcregrep.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
ocamlc -c -I ../../pcre-OCaml pcregrep.ml
ocamlc  -I ../../pcre-OCaml      -ccopt -L../../pcre-OCaml  pcre.cma   -o pcregrep \
			pcregrep.cmo
Error on dynamically loaded library: libpcre.so.0: cannot open shared object file: No such file or directory
make[2]: *** [pcregrep] Error 2
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
make[1]: *** [byte-code] Error 2
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/pcregrep'
make[1]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
making ._d/subst.d from subst.ml
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
make[2]: Entering directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
ocamlc -c -I ../../pcre-OCaml subst.ml
ocamlc  -I ../../pcre-OCaml      -ccopt -L../../pcre-OCaml  pcre.cma   -o subst \
			subst.cmo
Error on dynamically loaded library: libpcre.so.0: cannot open shared object file: No such file or directory
make[2]: *** [subst] Error 2
make[2]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
make[1]: *** [byte-code] Error 2
make[1]: Leaving directory `/usr/local/src/pcre_ocaml-4.20-0/examples/subst'
make: *** [examples] Error 2

[-- Attachment #3: Makefile --]
[-- Type: text/plain, Size: 1048 bytes --]

#STATIC = 1
export STATIC

EXAMPLES = $(filter-out examples/CVS, $(wildcard examples/*))

all:	examples

.PHONY:	opt
opt:	pcre-OCaml/libpcre.a
	@for dir in $(EXAMPLES); do (cd $$dir && $(MAKE) nc); done

.PHONY:	examples
examples: pcre-OCaml/libpcre.a
	@for dir in $(EXAMPLES); do (cd $$dir && $(MAKE)); done

pcre-OCaml/libpcre.a: pcre-C/.libs/libpcre.a
	@cd pcre-OCaml && $(MAKE)

pcre-C/.libs/libpcre.a:
	@cd pcre-C && \
	  if [ $(STATIC) ]; then \
	    ./configure --disable-shared && $(MAKE); \
	  else \
	    ./configure && $(MAKE); \
	  fi

.PHONY:	doc
doc:
	@cd pcre-OCaml && $(MAKE) doc
	ln -sf pcre-OCaml/doc

.PHONY:	install
install: pcre-OCaml/libpcre.a
	@cd pcre-OCaml && $(MAKE) && $(MAKE) install

.PHONY:	uninstall
uninstall:
	@cd pcre-OCaml && $(MAKE) uninstall

.PHONY:	clean
clean:
	@cd pcre-C && $(MAKE) clean && rm -f dftables chartables.c
	@cd pcre-OCaml && $(MAKE) clean
	@for dir in $(EXAMPLES); do (cd $$dir && $(MAKE) clean); done

.PHONY:	distclean
distclean:	clean
	@cd pcre-C && $(MAKE) $@ && rm -f RunTest
	@rm -f doc

  reply	other threads:[~2002-02-22 16:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 10:44 Johann Spies
2002-02-22 11:30 ` Remi VANICAT
2002-02-22 14:08   ` Johann Spies
2002-02-22 14:57     ` Remi VANICAT
2002-02-22 16:08       ` Markus Mottl
2002-02-22 12:59 ` Stefano Zacchiroli
2002-02-22 14:48 ` Markus Mottl
2002-02-22 16:03   ` Johann Spies
2002-02-22 16:17     ` Alain Frisch
2002-02-22 16:27       ` Johann Spies [this message]
2002-02-22 21:14         ` Markus Mottl
2002-02-24 17:30           ` Xavier Leroy
2002-02-24 20:44             ` Markus Mottl
2002-02-26 12:06               ` Johann Spies
2002-02-22 16:26     ` Markus Mottl
2002-02-22 16:01 ` Alain Frisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020222162734.GA27439@adept.co.za \
    --to=jspies@sun.ac.za \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).