Casey Bralla on 31 Dec 2008 07:17:04 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Perils of building from source?


I'm a big fan of compiling from source code (I run Gentoo unstable and had a 
lot of fun with Linux-from-Scratch), but as a general rule, choosing to 
compile from source instead of using a pre-packaged binary to correct an 
unstable condition is the modern equivalent of tilting at windmills.

The issues you're having are probably indicative of a poorly debugged program, 
and that's why the package maintainers weren't able to make it any more 
stable than you can.

Sorry, but you're probably out of luck.





On Wednesday 31 December 2008 9:53:40 am Eric wrote:
> Happy New Year to all!
>
> I'm building some software from source code ( Kompozer: nvu spin-off
> which is a Mozilla Composer spin-off ).  I'm doing this because I
> installed it from the package (apt-get install kompozer) but the darn
> thing crashes at the slightest provocation.
>
> What is the recommended way to do this in Ubuntu?  Should I uninstall
> the binary package first?
>
>
> UGH....  Now as I'm writing this email the compile fails.  This command:
>
> c++ -o mozilla-xremote-client  -fno-rtti -fno-exceptions -Wall
> -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
> -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -DDEBIAN
> -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O
> mozilla-xremote-client.o XRemoteClient_standalone.o
> -L../../../dist/bin -L../../../dist/lib
> -L/usr/local/src/kompozer-0.7.10/mozilla/dist/lib -lplds4 -lplc4 -lnspr4
> -lpthread -ldl -lc -lpthread    -ldl -lm
>
> produces this string of errors:
>
> XRemoteClient_standalone.o: In function
> `XRemoteClient::DoSendCommand(unsigned long, char const*, char**, int*)':
> XRemoteClient.cpp:(.text+0x95): undefined reference to `XChangeProperty'
> XRemoteClient.cpp:(.text+0xe7): undefined reference to `XNextEvent'
> XRemoteClient.cpp:(.text+0x1aa): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x305): undefined reference
> to `XFree'
> XRemoteClient_standalone.o: In function
> `XRemoteClient::FreeLock(unsigned long)':
> XRemoteClient.cpp:(.text+0x3b8): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x3e9): undefined reference
> to `XFree'
> XRemoteClient_standalone.o: In function
> `XRemoteClient::CheckChildren(unsigned long)':
> XRemoteClient.cpp:(.text+0x454): undefined reference to `XQueryTree'
> XRemoteClient.cpp:(.text+0x4d4): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x536): undefined reference
> to `XFree'
> XRemoteClient_standalone.o: In function
> `XRemoteClient::CheckWindow(unsigned long)':
> XRemoteClient.cpp:(.text+0x5c0): undefined reference to
> `XGetWindowProperty' XRemoteClient_standalone.o: In function
> `XRemoteClient::FindBestWindow(char const*, char const*, char const*)':
> XRemoteClient.cpp:(.text+0x643): undefined reference to `XQueryTree'
> XRemoteClient.cpp:(.text+0x720): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x735): undefined reference
> to `XFree'
> XRemoteClient.cpp:(.text+0x7d4): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x7fa): undefined reference
> to `XFree'
> XRemoteClient.cpp:(.text+0x809): undefined reference to `XFree'
> XRemoteClient.cpp:(.text+0x88a): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x8a9): undefined reference
> to `XFree'
> XRemoteClient.cpp:(.text+0x8b9): undefined reference to `XFree'
> XRemoteClient.cpp:(.text+0x929): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0x94b): undefined reference
> to `XFree'
> XRemoteClient.cpp:(.text+0x956): undefined reference to `XFree'
> XRemoteClient_standalone.o: In function `XRemoteClient::GetLock(unsigned
> long, int*)':
> XRemoteClient.cpp:(.text+0xab4): undefined reference to `XGrabServer'
> XRemoteClient.cpp:(.text+0xb25): undefined reference to
> `XGetWindowProperty' XRemoteClient.cpp:(.text+0xb91): undefined reference
> to `XChangeProperty' XRemoteClient.cpp:(.text+0xba2): undefined reference
> to `XUngrabServer' XRemoteClient.cpp:(.text+0xbbb): undefined reference to
> `XSync'
> XRemoteClient.cpp:(.text+0xbd6): undefined reference to `XUngrabServer'
> XRemoteClient.cpp:(.text+0xbef): undefined reference to `XSync'
> XRemoteClient.cpp:(.text+0xc8f): undefined reference to `XNextEvent'
> XRemoteClient.cpp:(.text+0xd03): undefined reference to `XFree'
> XRemoteClient_standalone.o: In function `XRemoteClient::SendCommand(char
> const*, char const*, char const*, char const*, char**, int*)':
> XRemoteClient.cpp:(.text+0xdb9): undefined reference to `XSelectInput'
> XRemoteClient_standalone.o: In function `XRemoteClient::Shutdown()':
> XRemoteClient.cpp:(.text+0xe51): undefined reference to `XCloseDisplay'
> XRemoteClient_standalone.o: In function `XRemoteClient::Init()':
> XRemoteClient.cpp:(.text+0xf1d): undefined reference to `XOpenDisplay'
> XRemoteClient.cpp:(.text+0xf49): undefined reference to `XInternAtom'
> XRemoteClient.cpp:(.text+0xf69): undefined reference to `XInternAtom'
> XRemoteClient.cpp:(.text+0xf89): undefined reference to `XInternAtom'
> XRemoteClient.cpp:(.text+0xfa9): undefined reference to `XInternAtom'
> XRemoteClient.cpp:(.text+0xfc9): undefined reference to `XInternAtom'
> XRemoteClient_standalone.o:XRemoteClient.cpp:(.text+0xfe9): more
> undefined references to `XInternAtom' follow
> collect2: ld returned 1 exit status
>
>
> I've added all the packages I could determine that I needed:
> apt-get install libgtk2.0-dev
> apt-get install libidl-dev
> apt-get install libxt-dev
>
> Anybody see what I'm missing here?
>
> Perhaps I should just buy Dreamweaver ? (barf)
>
>
> TIA
>
> Eric



-- 


Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug