Problem compiling C++ package

Alexey alexey at vocord.com
Thu May 25 14:52:37 UTC 2000


> 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/libnetworking/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/libnetworking/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/libnetworking/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/libnetworking/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/libnetworking/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/p4650/libnetworkin
g/rtems/../../../../../../../src/rtems-4.5.0-beta2/c/src/libnetworking/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