[INET build error] After upgrade to OmNet 4.2, build of INET framework is failing.

1,549 views
Skip to first unread message

Michael K.

unread,
Jan 4, 2012, 6:28:55 AM1/4/12
to omnetpp
Hello,

yesterday I updated OmNet from 4.1 to 4.2 on Mac OS 10.7. I deleted
references to 4.1 in the bashrc and bash_profile files but did not
delete the folder (in case that matters).

After starting the IDE, I imported the INET framework files. But the
build ends with this error:

**** Build of configuration gcc-debug for project inet ****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
g++ -c -g -Wall -fno-stack-protector -DXMLPARSER=libxml -DWITH_PARSIM -
DWITH_NETBUILDER -I. -Iapplications -Iapplications/ethernet -
Iapplications/generic -Iapplications/pingapp -Iapplications/rtpapp -
Iapplications/sctpapp -Iapplications/tcpapp -Iapplications/udpapp -
Ibase -Ilinklayer -Ilinklayer/contract -Ilinklayer/ethernet -
Ilinklayer/etherswitch -Ilinklayer/ext -Ilinklayer/ieee80211 -
Ilinklayer/ieee80211/mac -Ilinklayer/ieee80211/mgmt -Ilinklayer/
mf80211 -Ilinklayer/mf80211/macLayer -Ilinklayer/mf80211/phyLayer -
Ilinklayer/mf80211/phyLayer/decider -Ilinklayer/mf80211/phyLayer/
snrEval -Ilinklayer/mfcore -Ilinklayer/ppp -Ilinklayer/radio -
Imobility -Inetworklayer -Inetworklayer/arp -Inetworklayer/autorouting
-Inetworklayer/common -Inetworklayer/contract -Inetworklayer/extras -
Inetworklayer/icmpv6 -Inetworklayer/ipv4 -Inetworklayer/ipv6 -
Inetworklayer/ldp -Inetworklayer/mpls -Inetworklayer/ospfv2 -
Inetworklayer/ospfv2/interface -Inetworklayer/ospfv2/messagehandler -
Inetworklayer/ospfv2/neighbor -Inetworklayer/ospfv2/router -
Inetworklayer/queue -Inetworklayer/rsvp_te -Inetworklayer/ted -Inodes -
Inodes/adhoc -Inodes/ethernet -Inodes/inet -Inodes/ipv6 -Inodes/mpls -
Inodes/wireless -Itransport -Itransport/contract -Itransport/rtp -
Itransport/rtp/profiles -Itransport/rtp/profiles/avprofile -Itransport/
sctp -Itransport/tcp -Itransport/tcp/flavours -Itransport/tcp/queues -
Itransport/tcp_nsc -Itransport/tcp_nsc/queues -Itransport/tcp_old -
Itransport/tcp_old/flavours -Itransport/tcp_old/queues -Itransport/udp
-Iutil -Iutil/headerserializers -Iutil/headerserializers/headers -
Iworld -I/Users/Michael/Dev/omnetpp/omnetpp-4.2/include -o ../out/gcc-
debug/src/applications/ethernet/EtherAppCli.o applications/ethernet/
EtherAppCli.cc
applications/ethernet/EtherAppCli.cc:22:27: error: Ieee802Ctrl_m.h: No
such file or directory
applications/ethernet/EtherAppCli.cc:23:24: error: EtherApp_m.h: No
such file or directory
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::initialize(int)':
applications/ethernet/EtherAppCli.cc:38: error: 'ETHERAPP_CLI_SAP' was
not declared in this scope
applications/ethernet/EtherAppCli.cc:39: error: 'ETHERAPP_SRV_SAP' was
not declared in this scope
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::registerDSAP(int)':
applications/ethernet/EtherAppCli.cc:106: error: 'Ieee802Ctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:106: error: 'etherctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:106: error: expected type-
specifier before 'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:106: error: expected `;' before
'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:108: error:
'IEEE802CTRL_REGISTER_DSAP' was not declared in this scope
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::sendPacket()':
applications/ethernet/EtherAppCli.cc:122: error: 'EtherAppReq' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:122: error: 'datapacket' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:122: error: expected type-
specifier before 'EtherAppReq'
applications/ethernet/EtherAppCli.cc:122: error: expected `;' before
'EtherAppReq'
applications/ethernet/EtherAppCli.cc:132: error: 'Ieee802Ctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:132: error: 'etherctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:132: error: expected type-
specifier before 'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:132: error: expected `;' before
'Ieee802Ctrl'
make[1]: *** [../out/gcc-debug/src/applications/ethernet/
EtherAppCli.o] Error 1
make: *** [all] Error 2

**** Build Finished ****

EtherAppCli is the first file in the src folder, so I think this is a
basic problem. After doing some clean and build cycles the error
vanished but the problem got shifted elsewhere. When trying to start
an example it says:

Cannot load library '../../../src//libinet.dylib': dlopen(../../../
src//libinet.dylib, 10): image not found

I would appreciate any help, so I can continue my project.

All the best,

Michael

yonas berhanu

unread,
Jan 4, 2012, 9:43:01 AM1/4/12
to omn...@googlegroups.com
Hi,
may be you need to select a matching inet(inet1.99.2 or 2.1) for omnet4.2. i am using ubuntu maverick and have omnetpp4.1 and 4.2
on separate  folders and i switch between them by just changing the /.bashrc path


--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Michael K.

unread,
Jan 4, 2012, 10:14:17 AM1/4/12
to omnetpp
I'm using the latest stable build and right now I installed the
unstable version.

I tried opp_makemake -f without any further flags in the inet folder
via Terminal and it's not showing
the above mistake but when trying to run an example the error with the
not found inetlib is back:

Starting...

$ cd /Users/Michael/Dev/omnetpp/diplom/inet/examples/inet/bulktransfer
$ opp_run -r 0 -n ../..:../../../src -l ../../../src/inet omnetpp.ini

<!> Warning: opp_run: dlopen(../../../src//libinet.dylib, 10): image
not found
OMNeT++ Discrete Event Simulation (C) 1992-2011 Andras Varga, OpenSim
Ltd.
Version: 4.2, build: 111116-7631e2d, edition: Academic Public License
-- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

End.

<!> Error during startup: Cannot load library '../../../src//
libinet.dylib': dlopen(../../../src//libinet.dylib, 10): image not
found.

Simulation terminated with exit code: 1
Working directory: /Users/Michael/Dev/omnetpp/diplom/inet/examples/
inet/bulktransfer
Command line: opp_run -r 0 -n ../..:../../../src -l ../../../src/inet
omnetpp.ini

Environment variables:
DYLD_LIBRARY_PATH=/Users/Michael/Dev/omnetpp/omnetpp-4.2/lib::/Users/
Michael/Dev/omnetpp/diplom/inet/src:
PATH=/Users/Michael/Dev/omnetpp/omnetpp-4.2/bin::/opt/local/bin:/opt/
local/sbin:/Developer/android-sdk-mac_86/tools:/usr/bin:/bin:/usr/
sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/
bin:/Users/Michael/Dev/omnetpp/omnetpp-4.2/bin
OMNETPP_IMAGE_PATH=/Users/Michael/Dev/omnetpp/omnetpp-4.2/images

I would like to know where to start debugging, is it a makefile
problem? Is this Mac related?

Does the install process of 4.2 say something about how to handle the
previously installed 4.1?

Michael K.

unread,
Jan 4, 2012, 10:47:08 AM1/4/12
to omnetpp
Another question. At which place are the settings saved? I want to
start with a blank IDE.

Rudolf Hornig

unread,
Jan 4, 2012, 10:54:15 AM1/4/12
to omn...@googlegroups.com
First make sure that the inet.dylib file exist in the src folder. If it does not, then build inet and look for errors during the build process.

The error you reported means that you are trying to run an example while inet was not successfully built.

As for your other question:
- project specific settings are stored in the project folder: (.oppbuildspec .project .cproject)
- worskpace settings are stored in <workspace/.metadata>
- installation wise settings are stired in <omnetpproot>/ide/cofiguration/org.eclipse.osgi

Rudolf

On Wed, Jan 4, 2012 at 4:14 PM, Michael K. <klopf....@gmail.com> wrote:
I'm using the latest stable build and right now I installed the
unstable version.

I tried opp_makemake -f without any further flags in the inet folder
via Terminal and it's not showing
the above mistake but when trying to run an example the error with thest 

Michael K.

unread,
Jan 4, 2012, 1:17:38 PM1/4/12
to omnetpp
Thanks Rudolf,

the errors I get when building (when no lib is created) are mentioned
in my first posting. I'm not sure, but those errors shouldn't exist in
the first place, or not?

It's not creating the EtherApp_m.h but EtherApp.msg is there. What
would you suggest to do?

Best regards,

Michael

**** Build of configuration gcc-debug for project inet ****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
/* made it shorter */
applications/ethernet/EtherAppCli.cc:24:24: error: EtherApp_m.h: No
such file or directory
applications/ethernet/EtherAppCli.cc:25:27: error: Ieee802Ctrl_m.h: No
such file or directory
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::initialize(int)':
applications/ethernet/EtherAppCli.cc:52: error: 'ETHERAPP_CLI_SAP' was
not declared in this scope
applications/ethernet/EtherAppCli.cc:53: error: 'ETHERAPP_SRV_SAP' was
not declared in this scope
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::registerDSAP(int)':
applications/ethernet/EtherAppCli.cc:127: error: 'Ieee802Ctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:127: error: 'etherctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:127: error: expected type-
specifier before 'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:127: error: expected `;' before
'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:129: error:
'IEEE802CTRL_REGISTER_DSAP' was not declared in this scope
applications/ethernet/EtherAppCli.cc: In member function 'virtual void
EtherAppCli::sendPacket()':
applications/ethernet/EtherAppCli.cc:143: error: 'EtherAppReq' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:143: error: 'datapacket' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:143: error: expected type-
specifier before 'EtherAppReq'
applications/ethernet/EtherAppCli.cc:143: error: expected `;' before
'EtherAppReq'
applications/ethernet/EtherAppCli.cc:153: error: 'Ieee802Ctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:153: error: 'etherctrl' was not
declared in this scope
applications/ethernet/EtherAppCli.cc:153: error: expected type-
specifier before 'Ieee802Ctrl'
applications/ethernet/EtherAppCli.cc:153: error: expected `;' before
'Ieee802Ctrl'
make[1]: *** [../out/gcc-debug/src/applications/ethernet/
EtherAppCli.o] Error 1
make: *** [all] Error 2

**** Build Finished ****


Rudolf Hornig

unread,
Jan 4, 2012, 3:23:26 PM1/4/12
to omn...@googlegroups.com
Yeah, but the original errors happened because you have used an older version of INET which was not meant to run with omnet 4.2. In your second mail you have said that also updated the INET to the latest development version and the errors went away. 

Well, if they really went away, then you should have an inet.dylib. The fact that you do not means that there are STILL errors during the build process.

Forget the missing dylib message. First you must successfully compile INET. You should try to run in only after that.
Rudolf

Michael K.

unread,
Jan 4, 2012, 6:10:38 PM1/4/12
to omnetpp
You did get me wrong, I did not use an older INET version, I used the
stable version compatible with 4.2 and then the newest unstable
version. The errors went away, because I did recreate the makefiles in
the Terminal. But that did not help, because it did not create the
lib.

To make a new beginning, I deleted and reinstalled OmNet 4.2 and used
a new workspace. But even now, INet is not building correctly. What
should I do with error messages like this one:

RSVPPacket_m.h: No such file or directory - What to do when .h and .cc
files from msg definitions are not correctly created?

I thought the INet framework should work out of the box?
> ...
>
> Erfahren Sie mehr »

Michael K.

unread,
Jan 4, 2012, 9:33:38 PM1/4/12
to omnetpp
Hmm, I deleted everything RSVP related and it works. Building without
errors. My simulation works fine too. But I have to adjust my units.

Weird stuff.

Rudolf Hornig

unread,
Jan 5, 2012, 2:49:02 AM1/5/12
to omn...@googlegroups.com
Ok, I assume you are building from the IDE. You are on track but there is an error in OMNeT++ 4.2 IDE's dependency generator that leaves out some .msg dependencies. To fix this just open the RSVPPacket.msg file and save it. (i.e. touch the file) nd the build the project again (Ctrl-B). This will do the trick.

OMNeT 4.2.1 (coming soon) will fix this issue.
Rudolf

Reply all
Reply to author
Forward
0 new messages