Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000005 [Yate - Yet Another Telephony Engine] engine major always 2005-11-25 18:14 2005-12-14 16:39
Reporter maciejka View Status public  
Assigned To
Priority normal Resolution no change required  
Status closed   Product Version
Summary 0000005: Can't link yate client
Description Can't link yate client. Here is my compilation log:
maciejka@maciejka:~/projekty/9/yate$ ./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gawk... no
checking for mawk... mawk
checking for gcc printf format typechecks... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for regcomp... yes
checking for strerror... yes
checking for pthread_mutexattr_settype in -lpthread... yes
checking for dlopen in default libs... no
checking for dlopen in -ldl... yes
checking for pthread_mutexattr_settype declaration... no
checking for pthread_kill_other_threads_np declaration... yes
checking whether to use inline functions... auto
checking libpri.h usability... no
checking libpri.h presence... no
checking for libpri.h... no
checking for Postgress SQL in /usr... no
checking for Zaptel linux headers... no
checking for Wanpipe linux headers... no
checking for gsm.h in /usr/include... yes
checking for iLBC in contrib... yes
checking for Pwlib in /usr... no RTTI: none
checking for IAX 2 in contrib... yes
checking for Gtk2 using pkg-config... 2.8.6
checking for Gtk Mozilla embedding using pkg-config... no
checking whether to enable RTTI support... none
configure: creating ./config.status
config.status: creating yate.spec
config.status: creating yate.pc
config.status: creating yateversn.h
config.status: creating Makefile
config.status: creating engine/Makefile
config.status: creating modules/Makefile
config.status: creating modules/skin/Makefile
config.status: creating clients/Makefile
config.status: creating scripts/Makefile
config.status: creating conf.d/Makefile
config.status: creating contrib/iax/Makefile
config.status: creating contrib/ilbc/Makefile
config.status: creating contrib/ysip/Makefile
config.status: creating contrib/yrtp/Makefile
config.status: creating contrib/gtk2/Makefile
config.status: creating test/Makefile
config.status: creating yate-config
config.status: creating run
maciejka@maciejka:~/projekty/9/yate$ make
...
make[2]: Opuszczenie katalogu `/home/maciejka/projekty/9/yate/contrib/gtk2'
g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -o yate-gtk2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include main-gtk2.cpp -lpthread -L.. -lyate ../contrib/gtk2/libgtk2client.a -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXinerama -lXi -lXrandr -lXext -lXcursor -lXfixes -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `gtkIdleCb(void*)':
gtk2client.cpp:(.text+0x198): undefined reference to `TelEngine::Client::idleActions()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `widgetCbShow(_GtkWidget*, void*)':
gtk2client.cpp:(.text+0x1259): undefined reference to `TelEngine::Client::setVisible(TelEngine::String const&, bool)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::GTKWindow(char const*, TelEngine::GTKWindow::Layout)':
gtk2client.cpp:(.text+0x229c): undefined reference to `TelEngine::Window::Window(char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::GTKWindow(char const*, TelEngine::GTKWindow::Layout)':
gtk2client.cpp:(.text+0x249c): undefined reference to `TelEngine::Window::Window(char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::title(TelEngine::String const&)':
gtk2client.cpp:(.text+0x3bfb): undefined reference to `TelEngine::Window::title(TelEngine::String const&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::init()':
gtk2client.cpp:(.text+0x414a): undefined reference to `TelEngine::Client::setCheck(TelEngine::String const&, bool, TelEngine::Window*, TelEngine::Window*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::show()':
gtk2client.cpp:(.text+0x4227): undefined reference to `TelEngine::Client::setCheck(TelEngine::String const&, bool, TelEngine::Window*, TelEngine::Window*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::geometry(int, int, int, int)':
gtk2client.cpp:(.text+0x4404): undefined reference to `TelEngine::Client::moveRelated(TelEngine::Window const*, int, int)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::hide()':
gtk2client.cpp:(.text+0x45b8): undefined reference to `TelEngine::Client::setCheck(TelEngine::String const&, bool, TelEngine::Window*, TelEngine::Window*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::~GTKWindow()':
gtk2client.cpp:(.text+0x478a): undefined reference to `TelEngine::Window::~Window()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::~GTKWindow()':
gtk2client.cpp:(.text+0x4950): undefined reference to `TelEngine::Window::~Window()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::~GTKWindow()':
gtk2client.cpp:(.text+0x4b16): undefined reference to `TelEngine::Window::~Window()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::setParams(TelEngine::NamedList const&)':
gtk2client.cpp:(.text+0x4cc3): undefined reference to `TelEngine::Window::setParams(TelEngine::NamedList const&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::menu(int, int)':
gtk2client.cpp:(.text+0x6873): undefined reference to `TelEngine::Client::listWindows()'
gtk2client.cpp:(.text+0x68ca): undefined reference to `TelEngine::Client::getWindow(TelEngine::String const&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKClient::GTKClient()':
gtk2client.cpp:(.text+0x6ae2): undefined reference to `TelEngine::Client::Client(char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKClient::GTKClient()':
gtk2client.cpp:(.text+0x6e6c): undefined reference to `TelEngine::Client::Client(char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKClient::~GTKClient()':
gtk2client.cpp:(.text+0x721d): undefined reference to `TelEngine::Client::~Client()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKClient::~GTKClient()':
gtk2client.cpp:(.text+0x728d): undefined reference to `TelEngine::Client::~Client()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKClient::~GTKClient()':
gtk2client.cpp:(.text+0x72fd): undefined reference to `TelEngine::Client::~Client()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::GTKDriver()':
gtk2client.cpp:(.text+0x7731): undefined reference to `TelEngine::ClientDriver::ClientDriver()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::GTKDriver()':
gtk2client.cpp:(.text+0x7775): undefined reference to `TelEngine::ClientDriver::ClientDriver()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::~GTKDriver()':
gtk2client.cpp:(.text+0x77d6): undefined reference to `TelEngine::ClientDriver::~ClientDriver()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::~GTKDriver()':
gtk2client.cpp:(.text+0x7832): undefined reference to `TelEngine::ClientDriver::~ClientDriver()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::~GTKDriver()':
gtk2client.cpp:(.text+0x788e): undefined reference to `TelEngine::ClientDriver::~ClientDriver()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKDriver::initialize()':
gtk2client.cpp:(.text+0x792c): undefined reference to `TelEngine::ClientDriver::s_device'
gtk2client.cpp:(.text+0x7a1d): undefined reference to `TelEngine::ClientDriver::setup()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WindowFactory::WindowFactory(char const*, char const*)':
gtk2client.cpp:(.text+0x7b01): undefined reference to `TelEngine::UIFactory::UIFactory(char const*, char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WindowFactory::WindowFactory(char const*, char const*)':
gtk2client.cpp:(.text+0x7b3d): undefined reference to `TelEngine::UIFactory::UIFactory(char const*, char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WidgetFactory::WidgetFactory(char const*, char const*)':
gtk2client.cpp:(.text+0x7b79): undefined reference to `TelEngine::UIFactory::UIFactory(char const*, char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WidgetFactory::WidgetFactory(char const*, char const*)':
gtk2client.cpp:(.text+0x7bb5): undefined reference to `TelEngine::UIFactory::UIFactory(char const*, char const*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTIN9TelEngine9GTKClientE[typeinfo for TelEngine::GTKClient]+0x8): undefined reference to `typeinfo for TelEngine::Client'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTIN9TelEngine9GTKDriverE[typeinfo for TelEngine::GTKDriver]+0x8): undefined reference to `typeinfo for TelEngine::ClientDriver'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTIN9TelEngine9GTKWindowE[typeinfo for TelEngine::GTKWindow]+0x8): undefined reference to `typeinfo for TelEngine::Window'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKWindowE[vtable for TelEngine::GTKWindow]+0x14): undefined reference to `TelEngine::Window::toString() const'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKWindowE[vtable for TelEngine::GTKWindow]+0x74): undefined reference to `TelEngine::Window::related(TelEngine::Window const*) const'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x8): undefined reference to `TelEngine::Client::run()'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x2c): undefined reference to `TelEngine::Client::setStatus(TelEngine::String const&, TelEngine::Window*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x30): undefined reference to `TelEngine::Client::action(TelEngine::Window*, TelEngine::String const&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x34): undefined reference to `TelEngine::Client::toggle(TelEngine::Window*, TelEngine::String const&, bool)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x38): undefined reference to `TelEngine::Client::select(TelEngine::Window*, TelEngine::String const&, TelEngine::String const&, TelEngine::String const&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x3c): undefined reference to `TelEngine::Client::callIncoming(TelEngine::String const&, TelEngine::String const&, TelEngine::Message*)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x44): undefined reference to `TelEngine::Client::initWindows()'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKClientE[vtable for TelEngine::GTKClient]+0x48): undefined reference to `TelEngine::Client::initClient()'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKDriverE[vtable for TelEngine::GTKDriver]+0x2c): undefined reference to `TelEngine::ClientDriver::msgTimer(TelEngine::Message&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTVN9TelEngine9GTKDriverE[vtable for TelEngine::GTKDriver]+0x50): undefined reference to `TelEngine::ClientDriver::msgExecute(TelEngine::Message&, TelEngine::String&)'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTIN9TelEngine13WidgetFactoryE[typeinfo for TelEngine::WidgetFactory]+0x8): undefined reference to `typeinfo for TelEngine::UIFactory'
../contrib/gtk2/libgtk2client.a(gtk2client.o):(.gnu.linkonce.d._ZTIN9TelEngine13WindowFactoryE[typeinfo for TelEngine::WindowFactory]+0x8): undefined reference to `typeinfo for TelEngine::UIFactory'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::Client::self()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine6Client4selfEv[TelEngine::Client::self()]+0x11): undefined reference to `TelEngine::Client::s_client'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::Client::changing()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine6Client8changingEv[TelEngine::Client::changing()]+0x11): undefined reference to `TelEngine::Client::s_changing'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::ClientDriver::self()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine12ClientDriver4selfEv[TelEngine::ClientDriver::self()]+0x11): undefined reference to `TelEngine::ClientDriver::s_driver'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WidgetFactory::~WidgetFactory()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine13WidgetFactoryD1Ev[TelEngine::WidgetFactory::~WidgetFactory()]+0x29): undefined reference to `TelEngine::UIFactory::~UIFactory()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WidgetFactory::~WidgetFactory()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine13WidgetFactoryD0Ev[TelEngine::WidgetFactory::~WidgetFactory()]+0x29): undefined reference to `TelEngine::UIFactory::~UIFactory()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WindowFactory::~WindowFactory()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine13WindowFactoryD1Ev[TelEngine::WindowFactory::~WindowFactory()]+0x29): undefined reference to `TelEngine::UIFactory::~UIFactory()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::WindowFactory::~WindowFactory()':
gtk2client.cpp:(.gnu.linkonce.t._ZN9TelEngine13WindowFactoryD0Ev[TelEngine::WindowFactory::~WindowFactory()]+0x29): undefined reference to `TelEngine::UIFactory::~UIFactory()'
collect2: ld returned 1 exit status
make[1]: *** [yate-gtk2] B³±d 1
make[1]: Opuszczenie katalogu `/home/maciejka/projekty/9/yate/clients'
make: *** [clients] B³±d 2
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000008)
diana (administrator)
2005-12-08 18:30

Which GTK version?
(0000009)
paulc (administrator)
2005-12-08 19:26

Please tell us the gcc and ld (binutils) versions.
It seems the order of libraries on the command line is critical.
Newest CVS version (post Dec 08, 2005) should fix it.
(0000010)
maciejka (reporter)
2005-12-08 20:50

gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
GNU ld version 2.16.1 Debian GNU/Linux

Still does not compile:
g++ -Wall -I.. -I.. -O2 -fno-check-new -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -o yate-gtk2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include main-gtk2.cpp -lpthread ../contrib/gtk2/libgtk2client.a -L.. -lyate -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXinerama -lXi -lXrandr -lXext -lXcursor -lXfixes -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `gtkIdleCb(void*)':
gtk2client.cpp:(.text+0x198): undefined reference to `TelEngine::Client::idleActions()'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `widgetCbShow(_GtkWidget*, void*)':
gtk2client.cpp:(.text+0x1259): undefined reference to `TelEngine::Client::setVisible(TelEngine::String const&, bool)'
../contrib/gtk2/libgtk2client.a(gtk2client.o): In function `TelEngine::GTKWindow::GTKWindow(char const*, TelEngine::GTKWindow::Layout)':
...
(0000014)
paulc (administrator)
2005-12-14 16:39

It was in fact a modified Makefile that didn't link all the modules in engine.

- Issue History
Date Modified Username Field Change
2005-11-25 18:14 maciejka New Issue
2005-12-08 18:30 diana Note Added: 0000008
2005-12-08 19:26 paulc Note Added: 0000009
2005-12-08 20:50 maciejka Note Added: 0000010
2005-12-14 16:39 paulc Note Added: 0000014
2005-12-14 16:39 paulc Status new => closed
2005-12-14 16:39 paulc Resolution open => no change required
2005-12-14 16:39 paulc Category => engine


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker