Problem compiling C++ package
Nick.SIMON at syntegra.bt.co.uk
Nick.SIMON at syntegra.bt.co.uk
Thu May 25 15:54:08 UTC 2000
You may need to have the rtems_bsdnet_config in C rather than C++, and
doutless there's a load of #includes needed. In the netdemos,
networkconfig.h (where rtems_bsdnet_config is declared) is included by
init.c - if you do it like the demos do, it should work.
Note that you have to do some localising in networkconfig.h to set to up for
your IP address and so on.
Voice over IP eh? Very tasty!
-- Nick Simon
> -----Original Message-----
> From: Alexey [mailto:alexey at vocord.com]
> Sent: 25 May 2000 15:53
> To: rtems-users
> Subject: Re: Problem compiling C++ package
>
>
> > C++ folks... I have made a couple of suggestions to
> > Alexey on this but I thought you folks might know more. :)
> >
> > He is porting a VERY interesting add-on to RTEMS. If
> > he wants to tip his hand with a URL, then I will give
> > him that privilege. :)
> >
> I'm trying to port openh323 (www.openh323.org ) to RTEMS
> I build it with a lots of stub and now trying to build
> somthing like "hello
> h323"
> but without success up till now.
> As soon as I try call somthing from librtemsh323 (it's
> openh323 by itself) I
> recieve somthing like that:
>
> /usr1/mips64orionel-rtems/bin/mips64orionel-rtems-gcc --pipe
> -B/usr1/mips64o
> rionel-rtems/rtems-4.5.0//p4650/lib/ -specs
> bsp_specs -qrtems -g -Wall -ansi -fasm -O4
> -fomit-frame-pointer -I/usr1/l
> ocal/pwlib/include/ptlib/unix -I/usr1/local/pwlib/include
> -DP4000 -DCPU_R40
> 00 -DP3_DIAG -D_R4000 -D__mips=3 -m4650 -G0 -L
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib -o
> o-optimize/test.exe
> o-optimize/test.o o-optimize/a.o o-optimize/h323stub.o
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-dpmem.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-event.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-msg.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-mp.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-part.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-signal.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-timer.rel
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-rtmon.rel
> -lrtemsh323
> -lrtemsh323 -lstdc++
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/librtemsall.a
> (rtems_glue.o)
> : In function `rtems_bsdnet_initialize':
> /usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650
> /libnetworking
> /rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnet
> working/rtems/
> rtems_glue.c:206: undefined reference to `rtems_bsdnet_config'
> /usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650
> /libnetworking
> /rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnet
> working/rtems/
> rtems_glue.c:206: undefined reference to `rtems_bsdnet_config'
> /usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650
> /libnetworking
> /rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnet
> working/rtems/
> rtems_glue.c:214: undefined reference to `rtems_bsdnet_config'
> /usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650
> /libnetworking
> /rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnet
> working/rtems/
> rtems_glue.c:214: undefined reference to `rtems_bsdnet_config'
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/librtemsall.a
> (rtems_glue.o)
> : In function `rtems_bsdnet_setup':
> /usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650
> /libnetworking
> /rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnet
> working/rtems/
> rtems_glue.c:753: undefined reference to `rtems_bsdnet_config'
> /usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/librtemsall.a
> (rtems_glue.o)
> :/usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p465
> 0/libnetworkin
> g/rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libne
> tworking/rtems
> /rtems_glue.c:753: more undefined references to
> `rtems_bsdnet_config' follow
> collect2: ld returned 1 exit status
> make: *** [o-optimize/test.exe] Error 1
>
> I made an attampt to declare rtems_bsdnet_config
> struct rtems_bsdnet_config rtems_bsdnet_config;
> but g++ did't admit it.
>
> So any assistance are welcome.
>
> Regards,
> Alexey
>
>
More information about the users
mailing list