From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31992 invoked by alias); 22 Jun 2012 19:42:02 -0000 Received: (qmail 31982 invoked by uid 22791); 22 Jun 2012 19:42:01 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 19:41:47 +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 4893C234C54E; Fri, 22 Jun 2012 20:41:46 +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 q5MJfjSm029686; Fri, 22 Jun 2012 20:41:46 +0100 Message-ID: <4FE4CA79.7020809@dallaway.org.uk> Date: Fri, 22 Jun 2012 19:42:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120606 Thunderbird/10.0.5 MIME-Version: 1.0 To: David Fernandez CC: eCos Discussion References: <4FE4C8BC.80600@dallaway.org.uk> In-Reply-To: <4FE4C8BC.80600@dallaway.org.uk> X-Forwarded-Message-Id: <4FE4C8BC.80600@dallaway.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 Subject: [ECOS] Re: configtool for linux building problems. X-SW-Source: 2012-06/txt/msg00039.txt.bz2 Hi David On 22/06/12 19:26, David Fernandez wrote: >>> 2.- Edit the makefile.gnu in ecos/host/tools/configtool/standalone, and >>> add to the line EXTRALDFLAGS, at the end, after leaving a space, -lX11 >>> >> I have not found -lX11 to be necessary. The invocation of wx-config >> within makefile.gnu should return all the flags necessary to link with >> the X window system. Which Linux distro and version are you using? Can >> you forward the link-time error you observe without this change >> (including all the command-line arguments) please? > > This is the "simplified" output: > > c++ -o configtool -LTCLDIR_use_system/lib -L/usr/local/lib > -l... -ltcl `/usr/local/bin/wx-config --libs std,gizmos` > /usr/bin/ld: /usr/local/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/libX11.so.6 so try adding it to the linker command line > /usr/lib/libX11.so.6: could not read symbols: Invalid operation > collect2: ld returned 1 exit status > make: *** [/] Error 1 > > I compiled this in Fedora14+wxGTK-2.8.12 and Fedora15+wxGTK-2.8.8, and I > get the same problem in both of them (both wxGTK were compiled from > sources and installed in /usr/local, I know that /usr/local/bin is in > the PATH, but my LD_LIBRARY_PATH is empty, as I rely in the config > scripts for wx and tcl). This is almost certainly due to recent Fedora builds of GNU ld using different DSO-linking semanics. Ref: http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking Specifying -lX11 explictly for Linux builds seems reasonable and should be safe for other users. I've attached a patch at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001613 Thank you for reporting this. 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