From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA30534; Fri, 22 Feb 2002 17:27:41 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA30233 for ; Fri, 22 Feb 2002 17:27:40 +0100 (MET) Received: from maties2.sun.ac.za (maties2.sun.ac.za [146.232.128.10]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g1MGRb110495 for ; Fri, 22 Feb 2002 17:27:38 +0100 (MET) Received: from bywoner.sun.ac.za ([146.232.129.121] helo=localhost) by maties2.sun.ac.za with esmtp (Exim 3.34 #1) id 16eIXn-0004fj-00 for caml-list@inria.fr; Fri, 22 Feb 2002 18:27:35 +0200 Received: from js by localhost with local (Exim 3.34 #1 (Debian)) id 16eIXn-0007mX-00 for ; Fri, 22 Feb 2002 18:27:35 +0200 Date: Fri, 22 Feb 2002 18:27:34 +0200 From: Johann Spies To: OCAML Subject: Re: [Caml-list] Problem using pcre on Debian Message-ID: <20020222162734.GA27439@adept.co.za> Mail-Followup-To: Johann Spies , OCAML References: <20020222160342.GB26933@adept.co.za> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-Scanner: exiscan *16eIXn-0004fj-00*fXwRjUepWqI* http://duncanthrax.net/exiscan/ Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=fout 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 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile #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 --fdj2RfSjLxBAspz7-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners