Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31404 - mldonkey 2.5.4 fails to compile
Summary: mldonkey 2.5.4 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-18 05:09 UTC by Laurent Maestracci
Modified: 2003-10-18 09:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Maestracci 2003-10-18 05:09:03 UTC
I simply emerge mldonkey-2.5.4.ebuild and get this :

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.4 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Richard Lärkäng 2003-10-18 05:16:47 UTC
With ocaml-3.07-r1, and mldonkey-2.5.4 I get this:

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/utils/mp3tagui/mp3_messages.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.4 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)
Comment 2 Richard Lärkäng 2003-10-18 05:39:51 UTC
Ok, after remerging lablgl, and then lablgtk, my problem dissapeared, but
I still get the error that the original reporter got.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-10-18 06:41:36 UTC
Adding maintainers as per metadata.xml
Comment 4 Paul Giordano 2003-10-18 06:55:08 UTC
Well, a search got me digging into the ocaml world - Anyhow, same experience,
re-emerged lablgl and lablgtk, same result. Googled:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=CCQM.2sJ.1%40gated-at.bofh.it&rnum=2&prev=/groups%3Fq%3D%2522The%2Btype%2Bconstructor%2Bformat%2Bexpects%2B3%2Bargument(s)%2522%26num%3D100%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26filter%3D0
and found an interesting item about TYPE_FORMAT, changed the config/configure.in
to use "format4" instead of "format" in the TYPE_FORMAT definition, and that
gets past the "arguments" problem - however, later on in the configure it
fails with yet another error.

Backed off to ocaml-3.06-r2, redid lablgl and lablgtk, then it gets a bit
ugly since the ocaml stuff is "dev-lang/ocaml-3.0x-rn", and mldonkey has
a requirement for ">=dev-lang/ocaml-3.0.6". Did an "emerge inject dev-lang/ocaml-3.07-r1",
and then the emerge for mldonkey-2.5.4 works.

So, need to get the ocaml versioning straight, followed by the TYPE_FORMAT
issue, and then follow-on configure issue. Hope this helps...
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-18 09:49:55 UTC
thx for your comments, fixed the ocaml dep to >=dev-lang/ocaml-3.06 and added
a one-line-sed for fixing the format/format4 issue, compiling fine here with
both ocaml 3.06 and 3.07