From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22908 invoked by alias); 22 Jun 2012 18:26:24 -0000 Received: (qmail 22784 invoked by uid 22791); 22 Jun 2012 18:26:21 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ey0-f177.google.com (HELO mail-ey0-f177.google.com) (209.85.215.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 18:26:04 +0000 Received: by eaaf11 with SMTP id f11so748977eaa.36 for ; Fri, 22 Jun 2012 11:26:03 -0700 (PDT) Received: by 10.14.48.76 with SMTP id u52mr603504eeb.180.1340389562944; Fri, 22 Jun 2012 11:26:02 -0700 (PDT) Received: from localhost.localdomain (host-2-96-99-49.as13285.net. [2.96.99.49]) by mx.google.com with ESMTPS id a16sm115232681eeg.0.2012.06.22.11.26.00 (version=SSLv3 cipher=OTHER); Fri, 22 Jun 2012 11:26:01 -0700 (PDT) Message-ID: <4FE4B8BC.30004@googlemail.com> Date: Fri, 22 Jun 2012 18:26:00 -0000 From: David Fernandez User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: John Dallaway CC: eCos Discussion References: <4FE22BA0.6040705@googlemail.com> <4FE3A6C0.10706@googlemail.com> <4FE424A2.8070503@dallaway.org.uk> In-Reply-To: <4FE424A2.8070503@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/msg00038.txt.bz2 >> 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? > > Hi John, 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). If you want the full link command (two or three screens), let me know, and I'll recompile. Cheers -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss