trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2014

[Issue ID]Re: [trinity-devel] undefined symbols in all builds

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 10 Feb 2014 14:38:03 -0600
On 02/10/2014 02:09 PM, David C. Rankin wrote:
> On 02/10/2014 02:02 PM, Darrell Anderson wrote:
>>> Search in the build-log 'cppeditor' in the context with linking.
>>
>> Here is a full build log:
>>
>> http://humanreadable.nfshost.com/misc/trinity-tqt3-pre_R14.0.0-i586-
>> 14.1_32_git_3285_1-build.log
>>
>> Darrell
>>
> 
> Give me a bit, but if any of the commits changed any of the way headers were
> included of added/removed any of the extern calls:
> 
> extern "C" {
> 
> #include foo
> }
> 
> That might do it as well:
> 
> https://groups.google.com/forum/#!topic/comp.lang.tcl/P7A3Kprg1-E
> 

OK,

  I found your problem. You are never building cppeditor which causes all
subsequent attempts to use it to fail with the error:

/dev/shm/tqt3/plugins/designer/libcppeditor.so: undefined symbol:
_ZN6Editor11eventFilterEP8TQObjectP7TQEvent

  Here is the situation. For whatever reason (I can't explain) when you get to:

line 3536:
cd cppeditor && make -f Makefile
  <no cppeditor build follows>
cd dlg && make -f Makefile
cd glade && make -f Makefile
make[5]: Entering directory `/dev/shm/tqt3/tools/designer/plugins/wizards'

  In my log, when I get to:

line 3025:
cd cppeditor && make -f Makefile
make[4]: Entering directory
'/build/tde-tqt3/src/tqt3/tools/designer/plugins/cppeditor'^M
/build/tde-tqt3/src/tqt3/bin/tquic -L /build/tde-tqt3/src/tqt3/plugins
projectsettings.ui -o projectsettings.h^M
/build/tde-tqt3/src/tqt3/bin/tquic -L /build/tde-tqt3/src/tqt3/plugins
mainfilesettings.ui -o mainfilesettings.h^M
g++ -c -pipe -I/usr/include/mysql -I/usr/include/postgresql/server
-I/usr/include/libiodbc -fno-exceptions -Wall -W -
march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_REENTRANT -fPIC  -DQT_NO_DEBUG -
DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED
-I/build/tde-tqt3/src/tqt3/mkspecs/linux-g++-64 -I. -I/usr/include/freetyp
e2 -I../../interfaces -I../../editor -I../../editor -I../../../../include
-I/usr/X11R6/include -I.moc/release-shared-
mt/ -o .obj/release-shared-mt/cppeditor.o cppeditor.cpp^M
<I get a log of cppeditor building>

  So you are legitimately getting the undefined symbol errors because the
cppeditor files were not built. -- Why were they not built? (I don't know, but
we will blame Slavek for now) Seriously, I have no clue why you don't have build
information following the 'cd cppeditor && make -f Makefile' line, but you do not.

-- 
David C. Rankin, J.D.,P.E.