Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [omnetpp] omnetpp-3.3 opp_makedep



Hello Thomas,

by your third solution, I solved my problem. Now all works fine. thanks!

unfortunatly i had an other problem with opp_makemake / make commands.
I am learning to use Omnet++ and so I started from tictoc tutorial...
first example and first problem! :(
I created the tictoc1.ned and txc1.cc files, i wrote opp_makemake and the
output is ok ( Make file created, adding dependencies... Done.). buy when i
wrote make, the output is this:

nedtool tictoc1.ned
make: *** [tictoc1_n.cc] Segmentation fault

i tried to build also other my simple simulations and the output of make
file was even the same.
Instead if i do opp_makemake and make command without the .ned file in the
directory, the make command works fine. then if i add the .ned file and i
launch the simulation, it works!!

could you still help me?

thanks
Alfredo

On 1/16/07, Thomas Freitag <tf at xxx> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello Alfredo,
>
> Alfredo Verolino wrote:
> > i have installed successfully omnetpp v3.3 on linux kubunty v6.10.
> > I haven't had any warning or error in configure/ make process.
> > all examples run correctly. i have just a problem with opp_makemake
> command.
> > when I create a new .cc file and try to compile it with the opp_makemake
> > command, this is the output:
> >
> > Makefile created, adding dependencies...
> > /bin/sh: can't open opp_makedep
> > Error: command 'opp_makedep -Y --objdirtree -fMakefile -- *.cc' returned
> > nonzero exit code
>
> There are many possible solutions (first is preferable, you can't damage
> your system by doing this and you won't need to change any files):
>
> 1) Explicitly call bash for running opp_makemake, for example: 'bash
> `which
> opp_makemake` -f -u Tkenv'. This calls bash with full path to opp_makemake
> and its arguments.
>
> 2) Change first line of opp_makemake from '#!/bin/sh' to '#!/bin/bash'.
> After rebuilding OMNet++ you will have to redo this.
>
> 3) Changing the link /bin/sh. Ubuntu moved bash to dash (new since 6.10).
> After pointing /bin/sh back to /bin/bash, everything works fine. But be
> careful, mistakes could make your root account unusable (which can be
> repaired).
>
> Regards,
> - --
> Thomas Freitag
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFFrBCXpS16y5lZbYsRAlBeAKDzpsWExDokqHrysfODZiM0p6OvSgCgxsme
> ld7fFvA3UX8GAm3eTGscQuY=
> =vMYs
> -----END PGP SIGNATURE-----
> _______________________________________________
> OMNeT++ Mailing List
> options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
> archive: http://www.omnetpp.org/listarchive/index.php
>



-- 
Alfredo Verolino
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Home | Main Index | Thread Index