This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: configtool for linux building problems.
- From: John Dallaway <john at dallaway dot org dot uk>
- To: scas at itu dot dk
- Cc: eCos Discussion <ecos-discuss at sourceware dot org>
- Date: Thu, 11 Jul 2013 13:54:02 +0100
- Subject: Re: configtool for linux building problems.
- References: <CAA6dH339upC=a0B-YqSpU040z+HfPo=MLY2x243wF_VU50jcGA at mail dot gmail dot com> <4FE4CA79 dot 7020809 at dallaway dot org dot uk> <1373538270022-238249 dot post at n7 dot nabble dot com>
Hi Stefan
On 11/07/13 11:24, scas wrote:
> I have encoutered David's problem with "XGetWindowAttributes" but this is
> happening when using the "-lX11" flag. I am stuck at this point, don't know
> what to do.
>
> Here is the error:
>
> /usr/bin/ld:
> /home/scas/ecos-stuff/wxGTK-2.8.8/lib/libwx_gtk2_core-2.8.a(corelib_utilsx11.o):
> undefined reference to symbol 'XGetWindowAttributes'
> /usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libX11.so so try
> adding it to the linker command line
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libX11.so: could not
> read symbols: Invalid operation
> collect2: ld returned 1 exit status
>
> If anyone could give me a hint what to do, I would greatly appreciate it.
Are you use the latest makefile.gnu file from CVS? Ref:
http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/host/tools/configtool/standalone/wxwin/makefile.gnu.diff?r1=1.15&r2=1.16&cvsroot=ecos&f=h
Note that the ordering of libraries on the linker command line is important.
I hope this helps.
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss