State Changed From-To: open->feedback Does not build: ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv -pp "camlp4o pa_extend.cmo q_MLast.cmo -loc loc -impl" -I +camlp4 -c -impl pa_pgsql.ml4 File "pa_pgsql.ml4", line 376, characters 2-6: Parse error: ':' expected after [name] (in [entry]) Uncaught exception: Stream.Error("':' expected after [name] (in [entry])") Preprocessor error gmake: *** [pa_pgsql.cmo] Error 2
Responsible Changed From-To: freebsd-ports-bugs->pav Track
State Changed From-To: feedback->suspended Needs ocaml >= 3.10.0 which we don't have yet.
This port fails to build with recent ocaml with error: ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv \ -pp "camlp4o pa_extend.cmo q_MLast.cmo -loc loc -impl" \ -I +camlp4 -c -impl pa_pgsql.ml4 Camlp4: Uncaught exception: DynLoader.Error ("Camlp4GrammarParser.cmo", "native-code program cannot do a dynamic load") Can you take a look, please? Also, the manner you assign dependencies in, results in only the last dependency to be active. The following version should work better: BUILD_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/extlib:${PORTSDIR}/devel/ocaml-extlib \ ${LOCALBASE}/${OCAML_SITELIBDIR}/pcre:${PORTSDIR}/devel/ocaml-pcre \ ${LOCALBASE}/${OCAML_SITELIBDIR}/calendar:${PORTSDIR}/devel/ocaml-calendar \ ${LOCALBASE}/${OCAML_SITELIBDIR}/csv:${PORTSDIR}/textproc/ocaml-csv -- Stanislav Sedov ST4096-RIPE
Hi Stanislav, So, this is what I get compiling pgocaml from the port currently: ===> Building for ocaml-pgocaml-1.0 < pGOCaml_config.ml.in sed -e "s|@DEFAULT_UNIX_DOMAIN_SOCKET_DIR@|/ tmp|" > pGOCaml_config.ml rm -f .depend ocamldep pGOCaml.mli pGOCaml.ml > .depend ocamldep -pp "camlp4o /usr/local/lib/ocaml/unix.cma /usr/local/lib/ ocaml/str.cma -I +pcre /usr/local/lib/ocaml/site-lib/pcre/pcre.cma -I +extlib /usr/local/lib/ocaml/site-lib/extlib/extLib.cma -I +calendar / usr/local/lib/ocaml/site-lib/calendar/calendar.cma -I +csv /usr/local/ lib/ocaml/site-lib/csv/csv.cma ./pgocaml.cma ./pa_pgsql.cmo" >> .depend ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv -c pGOCaml_config.ml ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv -c pGOCaml.mli ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv -c pGOCaml.ml ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv -a -o pgocaml.cma pGOCaml_config.cmo pGOCaml.cmo ocamlfind ocamlopt -package unix,extlib,pcre,calendar,csv -c pGOCaml_config.ml ocamlfind ocamlopt -package unix,extlib,pcre,calendar,csv -c pGOCaml.ml ocamlfind ocamlopt -package unix,extlib,pcre,calendar,csv -a -o pgocaml.cmxa pGOCaml_config.cmx pGOCaml.cmx ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv \ -pp "camlp4o pa_extend.cmo q_MLast.cmo -loc loc -impl" \ -I +camlp4 -c -impl pa_pgsql.ml4 ocamlfind ocamlopt -package unix,extlib,pcre,calendar,csv -c pgocaml_prof.ml ocamlfind ocamlopt -package unix,extlib,pcre,calendar,csv -linkpkg \ -o pgocaml_prof pgocaml_prof.cmx sed -e 's/@PACKAGE@/pgocaml/' \ -e 's/@VERSION@/1.0/' \ < META.in > META From there it's possible to 'make install'. I updated my ocaml installation by deleting all ocaml-related ports and rebuilding. It seems in your case the probably is really with camlp4. I cannot see how that would happen, though. I tried building ocaml with OPT_DEF=1 but didn't see any issues there, either. Tom On Apr 8, 2008, at 3:54 PM, Stanislav Sedov wrote: > This port fails to build with recent ocaml with error: > ocamlfind ocamlc -g -package unix,extlib,pcre,calendar,csv \ > -pp "camlp4o pa_extend.cmo q_MLast.cmo -loc loc -impl" \ > -I +camlp4 -c -impl pa_pgsql.ml4 > Camlp4: Uncaught exception: DynLoader.Error > ("Camlp4GrammarParser.cmo", "native-code program cannot do a dynamic > load") > > Can you take a look, please? > > Also, the manner you assign dependencies in, results in only the last > dependency to be active. The following version should work better: > BUILD_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/extlib:${PORTSDIR}/ > devel/ocaml-extlib \ > ${LOCALBASE}/${OCAML_SITELIBDIR}/pcre:${PORTSDIR}/devel/ocaml-pcre \ > ${LOCALBASE}/${OCAML_SITELIBDIR}/calendar:${PORTSDIR}/devel/ocaml- > calendar \ > ${LOCALBASE}/${OCAML_SITELIBDIR}/csv:${PORTSDIR}/textproc/ocaml-csv > > -- > Stanislav Sedov > ST4096-RIPE >
stas 2008-05-12 22:18:23 UTC FreeBSD ports repository Modified files: databases Makefile Added files: databases/ocaml-pgocaml Makefile distinfo pkg-descr databases/ocaml-pgocaml/files patch-Makefile Log: - Add databases/ocaml-pgocaml. PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml. It lets you embed SQL statements directly into OCaml code. PR: ports/118800 Submitted by: Jaap Boender <jaapb at kerguelen.org> Revision Changes Path 1.678 +1 -0 ports/databases/Makefile 1.1 +29 -0 ports/databases/ocaml-pgocaml/Makefile (new) 1.1 +3 -0 ports/databases/ocaml-pgocaml/distinfo (new) 1.1 +36 -0 ports/databases/ocaml-pgocaml/files/patch-Makefile (new) 1.1 +4 -0 ports/databases/ocaml-pgocaml/pkg-descr (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: suspended->closed New port added, with minor changes. Thanks!