From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19989 invoked by alias); 11 Jul 2013 12:54:15 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 19978 invoked by uid 89); 11 Jul 2013 12:54:15 -0000 X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED autolearn=ham version=3.3.1 Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 11 Jul 2013 12:54:13 +0000 Received: from cog.dallaway.org.uk (cpc1-cmbg10-0-0-cust34.5-4.cable.virginmedia.com [81.102.132.35]) by tetra.codeconfidence.com (Postfix) with ESMTP id 7E774234C021; Thu, 11 Jul 2013 13:54:02 +0100 (BST) Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id r6BCs2mi016820; Thu, 11 Jul 2013 13:54:02 +0100 Message-ID: <51DEAAEA.1080806@dallaway.org.uk> Date: Thu, 11 Jul 2013 12:54:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121120 Thunderbird/10.0.11 MIME-Version: 1.0 To: scas@itu.dk CC: eCos Discussion References: <4FE4CA79.7020809@dallaway.org.uk> <1373538270022-238249.post@n7.nabble.com> In-Reply-To: <1373538270022-238249.post@n7.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: configtool for linux building problems. X-SW-Source: 2013-07/txt/msg00001.txt.bz2 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