Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28761 - mldonkey doesn't emerge with ocaml 3.07 beta 2
Summary: mldonkey doesn't emerge with ocaml 3.07 beta 2
Status: RESOLVED DUPLICATE of bug 30983
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 01:11 UTC by Lukasz Glaz
Modified: 2005-07-17 13:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild for use with ocaml 3.07 (mldonkey-2.5.3-r2.ebuild,2.46 KB, text/plain)
2003-09-26 04:44 UTC, Jan Schubert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Glaz 2003-09-15 01:11:18 UTC
I have a problem with emerging ocaml 3.06 (explained in bug 28025). Solution of 
that problem is emerging new beta ocaml from portage. But then mldonkey refuses 
to emerge - it says that ocaml 3.06 is required.

Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS="~x86" emerge ocaml
2.emerge mldonkey
3.

Actual Results:  
mldonkey doesn't emerge. Message that ocaml 3.06 is required to emerge mldonkey 
appears.

Expected Results:  
I just want to emerge mldonkey.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-09-16 06:01:01 UTC
Can you paste in the actual output that emerge shows? 
 
The ebuild only has a dependency on >=dev-lang/ocaml-3.06 so I'm a little confused. 
Comment 2 Lukasz Glaz 2003-09-16 13:05:00 UTC
Here is the whole output from emerge mldonkey:

Calculating dependencies ...done!
>>> emerge (1 of 1) net-p2p/mldonkey-2.5.3-r1 to /
>>> md5 src_uri ;-) mldonkey-2.5-3.sources.tar.gz
 * User already configured.
>>> Unpacking source...
>>> Unpacking mldonkey-2.5-3.sources.tar.gz to /var/tmp/portage/mldonkey-2.5.3-r1/work
>>> Source unpacked.
creating cache ./config.cache
--prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/mldonkey --sharedstatedir=/var/mldonkey --localstatedir=/var/mldonkey --enable-ocamlver=3.06
checking host system type... i586-pc-linux-gnu
checking for gcc3... gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer ) works... yes
checking whether the C compiler (gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gmake... gmake
checking for make... (cached) gmake
checking for ocamlc.opt... ocamlc.opt
checking for ocamlc... (cached) ocamlc.opt
i586-pc-linux-gnu
Testing ocaml version
Need build
checking for /var/tmp/portage/mldonkey-2.5.3-r1/work/mldonkey-2.5-3/patches/local/bin/ocamlc.opt... no
checking for rpmbuild... no
checking for rpm... no
checking for wget... wget
********  Objective-Caml 3.06 is required  *********
*******  Check http://ocaml.inria.fr/  ********
Do you want this script to try to download and install ocaml
LOCALLY in mldonkey directory ?

If I choose "no" the next output is:

!!! ERROR: net-p2p/mldonkey-2.5.3-r1 failed.
!!! Function econf, Line 324, Exitcode 1
!!! econf failed
Comment 3 Ahmed Farid 2003-09-24 17:28:01 UTC
i can confirm this...
Comment 4 Jan Schubert 2003-09-26 04:44:36 UTC
Created attachment 18359 [details]
modified ebuild for use with ocaml 3.07
Comment 5 Jan Schubert 2003-09-26 04:46:00 UTC
Solution: change the confiure-flag for ocaml in the ebuild to 3.07
This prevents you (also) from installing ocaml 3.06 locally...

HTH,
Jan
Comment 6 Jan Schubert 2003-09-26 04:48:14 UTC
Pleas could some verify that the ebuild is working with ocaml 3.07? I just
got this on my side:

ocamlopt.opt -inline 10    -I src/utils/cdk  -I src/daemon/chat  -I src/utils/lib
 -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver 
-I src/utils/mp3tagui  -I src/config/unix  -I src/gtk/gui  -I src/gtk/gui2
 -I src/gtk/configwin  -I src/gtk/okey  -I src/gtk/gpattern  -I icons/kde
 -I +lablgtk  -I src/im  -I src/im/yahoo  -I src/im/irc  -I src/networks/direct_connect
 -I src/networks/opennap  -I src/networks/gnutella  -I src/networks/fasttrack
 -I src/networks/bittorrent  -I src/networks/donkey  -I src/networks/soulseek
-c src/gtk/configwin/configwin_types.ml
The files /usr/lib/ocaml/pervasives.cmi and /usr/lib/ocaml/lablgtk/gPack.cmi
make inconsistent assumptions over interface Pervasives
make: *** [src/gtk/configwin/configwin_types.cmx] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)
Comment 7 Lukasz Glaz 2003-09-27 00:48:28 UTC
I've got following error when using your ebuild:

ocamlc.opt   -I src/utils/cdk  -I src/daemon/chat  -I src/utils/lib  -I src/utils/net
 -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui
 -I src/config/unix  -I src/networks/direct_connect  -I src/networks/opennap
 -I src/networks/gnutella  -I src/networks/fasttrack  -I src/networks/bittorrent
 -I src/networks/donkey  -I src/networks/soulseek -c src/utils/cdk/printexc2.mli
File "src/utils/lib/autoconf.ml", line 22, characters 28-49:
The type constructor format expects 3 argument(s),
but is here applied to 4 argument(s)
make: *** [src/utils/lib/autoconf.cmo] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)
Comment 8 Veiko Kukk 2003-09-30 16:15:34 UTC
Same problem here.
checking for make... (cached) gmake
checking for ocamlc.opt... ocamlc.opt
checking for ocamlc... (cached) ocamlc.opt
i686-pc-linux-gnu
Testing ocaml version
Need build
checking for
/var/tmp/portage/mldonkey-2.5.3-r2/work/mldonkey-2.5-3/patches/local/bin/ocamlc.opt...
no
checking for rpmbuild... rpmbuild
checking for rpm... (cached) rpmbuild
checking for wget... wget
********  Objective-Caml 3.06 is required  *********
*******  Check http://ocaml.inria.fr/  ********
Do you want this script to try to download and install ocaml
LOCALLY in mldonkey directory ?
 
 
!!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed.
!!! Function econf, Line 324, Exitcode 1
!!! econf failed
Comment 9 Martin Bergtholdt 2003-10-01 05:40:51 UTC
Works for me when I change the dependency in the mldonkey ebuild to
~dev-lang/ocaml-3.06
it downgrades ocaml from 3.07 beta to 3.06-r2 (3.06 doesn't compile for me)
and mldonkey compiles fine.

with ocaml 3.07 beta, I get the same error as Lukasz Glaz.
Comment 10 Matt Chorman 2003-10-08 10:49:01 UTC
I get something completely different (error) than anyone else. 

ocamlc.opt   -I src/utils/cdk  -I src/daemon/chat  -I src/utils/lib  -I src/utils/net
 -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui
 -I src/config/unix  -I src/gtk/gui  -I src/gtk/gui2  -I src/gtk/configwin
 -I src/gtk/okey  -I src/gtk/gpattern  -I icons/kde  -I +lablgtk  -I src/im
 -I src/im/yahoo  -I src/im/irc  -I src/networks/direct_connect  -I src/networks/opennap
 -I src/networks/gnutella  -I src/networks/fasttrack  -I src/networks/bittorrent
 -I src/networks/donkey  -I src/networks/soulseek -c /usr/lib/ocaml/lablgtk/gtk.ml
ACCESS DENIED  open_wr:   /usr/lib/ocaml/lablgtk/gtk.cmo
I/O error: /usr/lib/ocaml/lablgtk/gtk.cmo: Permission denied
make: *** [/usr/lib/ocaml/lablgtk/gtk.cmo] Error 2
 
!!! ERROR: net-p2p/mldonkey-2.5.3-r3 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)
 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-mldonkey-2.5.3-r3-32099.log"
 
open_wr:   /usr/lib/ocaml/lablgtk/gtk.cmo
--------------------------------------------------------------------------------

Looks like the make process is trying to write outside of it's boundaries.
Perhaps and upstream bug?
Comment 11 Emil Mitev 2003-10-11 21:55:35 UTC
That's what I get using your ebuild : 

Building dependencies
Building dependencies fails: try: 'make depend' or 'gmake depend'
The following modules will not be compiled: { audio_galaxy(obsolete) openFT(obsolete)
mldonkey_gui$(EXE) mldonkey_gui2$(EXE) mlchat$(EXE) }
ocamlc.opt -I tools/zoggy -I +camlp4 -pp "camlp4 pa_o.cmo pr_dump.cmo" -a
-o pa_zog.cma  tools/zoggy/zog_types.ml tools/zoggy/zog_messages.ml tools/zoggy/zog_misc.ml
tools/zoggy/pa_zog.ml
ocamlopt.opt -inline 10    -I src/utils/cdk  -I src/daemon/chat  -I src/utils/lib
 -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver 
-I src/utils/mp3tagui  -I src/config/unix  -I src/networks/direct_connect
 -I src/networks/opennap  -I src/networks/gnutella  -I src/networks/fasttrack
 -I src/networks/bittorrent  -I src/networks/donkey  -I src/networks/soulseek
-c src/daemon/common/commonMain.ml
File "src/daemon/common/commonMain.ml", line 20, characters 0-12:
Unbound module Printf2
make: *** [src/daemon/common/commonMain.cmx] Error 2
make: *** Waiting for unfinished jobs....
File "tools/zoggy/pa_zog.ml", line 248, characters 14-22:
While expanding quotation "expr":
Parse error: end of input expected after [expression] (in [expression])
Preprocessor error
make: *** [pa_zog.cma] Error 2

!!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)

Thanks in advance
Comment 12 Jan Schubert 2003-10-12 05:03:36 UTC
Okay, for those who did'nt recognize: The given ebuild will not work (at
least no one said so). Thatsway you have to use the official ebuild and say
'Y' to the questions about local installations of ocaml and other packets
for which you may be asked. This should be work for everyone and the local
installations are just for buidling mldonkey and will not make its way to
your system (AFAIK).

HTH, Jan
Comment 13 José Romildo Malaquias 2003-10-16 05:06:08 UTC
mldonkey-2.5-4 does compile with ocaml-3.07+2 (ocaml-3.07 with latest bug-fix
applied). See bug #30983.
Comment 14 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-17 09:46:17 UTC

*** This bug has been marked as a duplicate of 30983 ***