Hi,
After a quick look at your issue, seems like the linking problem is
because you are using i386-linux-uclibc-gcc instead of
i386-linux-uclibc-g++.
make[5]: Leaving directory
`/home/wing/wing-bot-r12098/kamikaze-wrap/build_dir/i386/mgen-4.2b6/protolib/unix'
i386-linux-uclibc-gcc -g -g -DPROTO_DEBUG -DHAVE_GPS -DUNIX -Wall
-Wcast-align -pedantic -O -fPIC -DHAVE_CUSERID
A simple solution is to use $(CXX) instead of $(CC) in MGEN source
Makefile.
Karthik Venkateswaran
Roberto Riggio <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
08/06/2008 12:17 AM
Please respond to
OpenWrt Development List <[email protected]>
To
[email protected]
cc
Subject
[OpenWrt-Devel] Linking problem while building package
Hi,
I'm trying to build mgen (http://cs.itd.nrl.navy.mil/work/mgen/) for
kamikaze. Hoever
after launching the build I get the following errors:
make[5]: Leaving directory
`/home/wing/wing-bot-r12098/kamikaze-wrap/build_dir/i386/mgen-4.2b6/protolib/unix'
i386-linux-uclibc-gcc -g -g -DPROTO_DEBUG -DHAVE_GPS -DUNIX -Wall
-Wcast-align -pedantic -O -fPIC -DHAVE_CUSERID -DHAVE_LOCKF -DHAVE_DIRFD
-I../unix -I../common -I../protolib/common -o mgen ../common/mgenApp.o
../common/mgen.o ../common/mgenEvent.o ../common/mgenFlow.o
../common/mgenMsg.o ../common/mgenSocketList.o ../common/mgenPattern.o
../common/gpsPub.o -ldl -lm -lpthread ../protolib/unix/libProtokit.a
../common/mgenApp.o: In function `~MgenStreamSink':
../common/mgenApp.cpp:988: undefined reference to `operator delete(void*)'
../common/mgenApp.o: In function `~MgenApp':
../common/mgenApp.cpp:158: undefined reference to `operator delete(void*)'
../common/mgenApp.o: In function `bool
ProtoSocket::SetListener<MgenApp>(MgenApp*, void
(MgenApp::*)(ProtoSocket&, ProtoSocket::Event))':
../protolib/common/protoSocket.h:183: undefined reference to `operator
new(unsigned int)'
../protolib/common/protoSocket.h:183: undefined reference to `operator
new(unsigned int)'
Basically it looks like it cannot link libc++. The compile section of the
Makefile is the following:
define Build/Compile
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
-C $(PKG_BUILD_DIR)/unix \
-f Makefile.mklinux mgen
endef
There is no configure script with the software.
I've already tried to add:
LDFLAGS="-lc++" \
or
LDFLAGS="-lcxx" \
But without success. Do you have any suggestion?
Bye
Roberto
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
______________________________________________________________________
_____________________________________________________________________________________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel