Bug 457695 - ocaml-pgocaml cannot load Calendar extension when invoked via findlib
Summary: ocaml-pgocaml cannot load Calendar extension when invoked via findlib
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ocaml-pgocaml
Version: 13
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-03 22:03 UTC by Michael Ekstrand
Modified: 2011-06-02 18:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-02 18:39:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Ekstrand 2008-08-03 22:03:48 UTC
Description of problem:
When I attempt to compile a module using the PGOCaml syntax extensions, I get a DynLoader error involving the Calendar module.

Version-Release number of selected component (if applicable):
ocaml-pgocaml-1.1-3.fc9.x86_64
ocaml-calendar-2.0.2-1.fc9.x86_64

How reproducible:
Attempt to compile a program using PGOCaml


Steps to Reproduce:
1. Run command below
  
Actual results:
michael@jehiel ~/www/rewrite/tools> ocamlfind ocamlc -verbose -package pgocaml,pgocaml.statements -syntax camlp4o -c blog-import.ml
Effective set of preprocessor predicates: preprocessor,syntax,camlp4o
Effective set of compiler predicates: pkg_unix,pkg_extlib,pkg_csv,pkg_pcre,pkg_str,pkg_calendar,pkg_pgocaml,pkg_camlp4,pkg_pgocaml.statements,syntax,autolink,byte
+ ocamlc.opt -verbose -c -I /usr/lib64/ocaml/extlib -ccopt -I/usr/lib64/ocaml/extlib -I /usr/lib64/ocaml/csv -ccopt -I/usr/lib64/ocaml/csv -I /usr/lib64/ocaml/pcre -ccopt -I/usr/lib64/ocaml/pcre -I /usr/lib64/ocaml/calendar -ccopt -I/usr/lib64/ocaml/calendar -I /usr/lib64/ocaml/camlp4 -ccopt -I/usr/lib64/ocaml/camlp4 -I /usr/lib64/ocaml/pgocaml -ccopt -I/usr/lib64/ocaml/pgocaml -pp camlp4 '-I' '/usr/lib64/ocaml/' '-I' '/usr/lib64/ocaml/extlib' '-I' '/usr/lib64/ocaml/csv' '-I' '/usr/lib64/ocaml/pcre' '-I' '/usr/lib64/ocaml/' '-I' '/usr/lib64/ocaml/calendar' '-I' '/usr/lib64/ocaml/pgocaml' '-I' '/usr/lib64/ocaml/camlp4' '-I' '/usr/lib64/ocaml/pgocaml' 'unix.cma' 'extLib.cma' 'csv.cma' 'pcre.cma' 'str.cma' 'calendarLib.cmo' 'pgocaml.cma' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'pa_pgsql.cmo'  blog-import.ml
+ camlp4 '-I' '/usr/lib64/ocaml/' '-I' '/usr/lib64/ocaml/extlib' '-I' '/usr/lib64/ocaml/csv' '-I' '/usr/lib64/ocaml/pcre' '-I' '/usr/lib64/ocaml/' '-I' '/usr/lib64/ocaml/calendar' '-I' '/usr/lib64/ocaml/pgocaml' '-I' '/usr/lib64/ocaml/camlp4' '-I' '/usr/lib64/ocaml/pgocaml' 'unix.cma' 'extLib.cma' 'csv.cma' 'pcre.cma' 'str.cma' 'calendarLib.cmo' 'pgocaml.cma' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'pa_pgsql.cmo'  'blog-import.ml' > /tmp/camlpp5e207c
Camlp4: Uncaught exception: DynLoader.Error ("/usr/lib64/ocaml/pgocaml/pgocaml.cma", "error while linking /usr/lib64/ocaml/pgocaml/pgocaml.cma.\nReference to undefined global `Calendar'")

Preprocessor error
ocamlc.opt returned with exit code 2


Expected results:
Successful compilation.

Additional info:

Comment 1 Richard W.M. Jones 2008-08-04 06:59:33 UTC
Acknowledged.  This seems to be a bug in the META file.

Comment 2 Bug Zapper 2008-11-26 02:38:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Bug Zapper 2009-11-18 08:14:08 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Bug Zapper 2009-12-18 06:16:42 UTC
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Richard W.M. Jones 2009-12-18 09:04:19 UTC
Based on comment 1 this bug probably still exists in Rawhide.

Comment 6 Bug Zapper 2010-03-15 12:02:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Bug Zapper 2011-06-02 18:29:19 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Michael Ekstrand 2011-06-02 18:39:30 UTC
This seems to be fixed in F15 (ocaml-pgocaml 1.4-2.fc15.i686, ocaml-calendar 2.03-2.fc15.i686); replaced 'pgocaml.statements' with 'pgocaml.syntax' and ocamlc was able to load the extensions and run.


Note You need to log in before you can comment on or make changes to this bug.