Re: NAB compile problems (solved)
Shirshanka Das <[email protected]> Tue, 18 May 2004 11:41:09 -0700
| Newsgroups | gmane.network.simulator.epfl |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Henri, ~ Solved the problem... ~ seems like the nab source ships with an empty .depend file.. ~ and doing make depend somehow didn't want to overwrite it.. ~ when i removed the .depend file.. and did make depend.. ~ everything compiled fine.. I don't know if this will be a generic problem, or there's something wrong with my make.. ~ I'm using GNU Make 3.80 Regards, Shanky Shirshanka Das wrote: | Henri, | ~ the .depend file in my nab directory exists but is empty. | ~ doing make depend tells me : | ~ make: Nothing to be done for 'depend' | | ~ I have ocamldep.opt in my path. | | regards, | Shirshanka. | | Henri DF wrote: | | Hello Shirshanka, | | | | I would guess that the dependency file has not been generated properly. | | | | Can you check if you have a proper .depend file in your nab directory? | | | | If not, could you try a 'make depend' and tell me the output? And | check if | | you have the binary ocamldep.opt in your path? if not, it is possible | that | | you installed only ocamldep and not ocamldep.opt (the ocaml installation | | readme will tell you how to get ocamldep.opt). | | | | Henri | | | | ps: i am travelling this week with sketchy connectivity, so please bear | | with me if i cannot answer for a few days.. | | | | | | Hi all, | | ~ We have ocaml-3.07beta2 installed | | ~ We also have lablgtk-1.2.5. | | ~ We trying to compile the latest nab version : 0.6.1 | | | | ~ On running make nab-top we get : | | ~ > /usr/bin//ocamlc.opt -g -w A -I /usr/lib/ocaml/lablgtk -I lib | | -I lib/contrib -I gui -I sim/base -I sim/interfaces -I sim/mac -I | | sim/mob -I sim/pkt -I proto/grep -I proto/aodv -I proto/diff -I | | proto/misc -I proto/ler -I scripts -I gui/data -c lib/mods.ml | | | /usr/bin//ocamlc.opt -g -w A -I /usr/lib/ocaml/lablgtk -I lib | | -I lib/contrib -I gui -I sim/base -I sim/interfaces -I sim/mac -I | | sim/mob -I sim/pkt -I proto/grep -I proto/aodv -I proto/diff -I | | proto/misc -I proto/ler -I scripts -I gui/data -c lib/misc.ml | | | /usr/bin//ocamlc.opt -g -w A -I /usr/lib/ocaml/lablgtk -I lib | | -I lib/contrib -I gui -I sim/base -I sim/interfaces -I sim/mac -I | | sim/mob -I sim/pkt -I proto/grep -I proto/aodv -I proto/diff -I | | proto/misc -I proto/ler -I scripts -I gui/data -c lib/contrib/opt.ml | | | I/O error: lib/contrib/opt.cmi: No such file or directory | | | make: *** [lib/contrib/opt.cmo] Error 2 | | | | Seems like the .cmi's are not being compiled.. | | ~ /lib/contrib/opt.ml and opt.mli exist. | | | | on compiling opt.cmi by hand.. and running make nap-top again.. we run | | into the same issue for pkt_queue (which is the next entry in the | Makefile) | | ~ so seems like the .cmi's need to be compiled before the .cmo's but its | | not happening in the current Makefile.. | | | | ~ trying | | ~ %.cmo: %.ml %.cmi | | ~ helped a little.. but broke further ahead... | | | | ~ since we're not ocaml experts, we're guessing there's something simple | | we are missing here.. | | | | | | thanks, | | Shanky -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAqljF0xtjLhDyONoRAkCOAKCZmZcNchO/mzr10CjnZA7s/Pl51ACfYgXO 3SX1VQY408/nlH6voMdTD4E= =LKUh -----END PGP SIGNATURE-----