Mail Archives: cygwin/2008/12/20/10:44:16
--------------050203080801010109000200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Yaakov (Cygwin/X) schrieb:
> René Berber wrote:
>> You're wrong, libraries shared or static are dealt the same way by the
>> compiler which looks for its list of unresolved symbols and doesn't
>> re-scan libraries when another symbol appears.
>
> Since I apparently didn't make myself clear the last two times, let me
> say it again. If libfoo is a shared library, and libbar is another
> shared library that depends on libfoo (and on Cygwin is, by definition,
> already linked against it), it does NOT matter if you do this:
>
> gcc -o baz.exe baz.o -lbar -lfoo
>
> or this:
>
> gcc -o baz.exe baz.o -lfoo -lbar
>
> Now if we link with -static, then of course it needs to be before -lfoo,
> just like baz.o which depends on libbar needs to be before -lbar.
>
> But that's not the case here; all the GNOME libraries are shared, and
> pkg-config's order is ultimately correct.
>
> Bottom line: this linking order discussion is a red herring. My
> suspicion is that there is a mixing of the versions provided by the
> distro and Ports.
Anyway, it compiles with my fixed order and gives the unresolved symbols
with the original $(pkg-config --libs gtk+-2.0) order of libs.
Please try it our yourself.
--
Reini Urban
--------------050203080801010109000200
Content-Type: message/rfc822;
name="Nachricht als Attachment"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Nachricht als Attachment"
X-Account-Key: account1
X-Mozilla-Keys:
Return-path: <cygwin-return-146410-rurban=x-ray DOT at AT cygwin DOT com>
Envelope-to: ru AT x-ray DOT at
Delivery-date: Tue, 16 Dec 2008 21:20:47 +0100
Received: from localhost ([127.0.0.1]:50131 helo=smartmx-20.inode.at)
by smartmx-20.inode.at with esmtp (Exim 4.69)
(envelope-from <cygwin-return-146410-rurban=x-ray DOT at AT cygwin DOT com>)
id 1LCgPO-00062S-Uc
for ru AT x-ray DOT at; Tue, 16 Dec 2008 21:20:47 +0100
Received: from localhost ([127.0.0.1]:35610 helo=smartmx-20.inode.at)
by smartmx-20.inode.at with esmtp (Exim 4.69)
(envelope-from <cygwin-return-146410-rurban=x-ray DOT at AT cygwin DOT com>)
id 1LCgPO-000626-Cn
for ru AT x-ray DOT at; Tue, 16 Dec 2008 21:20:46 +0100
Received: from [209.132.176.174] (port=14252 helo=sourceware.org)
by smartmx-20.inode.at with smtp (Exim 4.69)
(envelope-from <cygwin-return-146410-rurban=x-ray DOT at AT cygwin DOT com>)
id 1LCgPN-00060l-KK
for rurban AT x-ray DOT at; Tue, 16 Dec 2008 21:20:46 +0100
Received: (qmail 17886 invoked by alias); 16 Dec 2008 20:20:41 -0000
Received: (qmail 17878 invoked by uid 22791); 16 Dec 2008 20:20:41 -0000
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Received: from WARSL404PIP2.highway.telekom.at (HELO email.aon.at) (195.3.96.113) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Dec 2008 20:19:46 +0000
Received: (qmail 23547 invoked from network); 16 Dec 2008 20:19:42 -0000
Received: from 212-183-58-193.adsl.highway.telekom.at (HELO [10.0.0.5]) ([212.183.58.193]) (envelope-sender <rurban AT x-ray DOT at>) by smarthub91.highway.telekom.at (qmail-ldap-1.03) with SMTP for <cygwin AT cygwin DOT com>; 16 Dec 2008 20:19:42 -0000
Message-ID: <49480D5D DOT 8090002 AT x-ray DOT at>
Date: Tue, 16 Dec 2008 21:19:41 +0100
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.18) Gecko/20081031 SeaMonkey/1.1.13
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: GTK+ externals are unresolved
References: <loom DOT 20081215T211641-645 AT post DOT gmane DOT org> <002701c95f06$c7c2e190$4001a8c0 AT mycomputer> <loom DOT 20081216T190513-304 AT post DOT gmane DOT org>
In-Reply-To: <loom DOT 20081216T190513-304 AT post DOT gmane DOT org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-rurban=x-ray DOT at AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Inode-Forwarded: rurban AT x-ray DOT at
X-Inode-Scanner: clean
X-Inode-SpamScore: 0.1
X-Inode-SpamBar: /
X-Inode-SpamReport: Spam detection software on "smartmx-20.inode.at"
has analyzed this mail, the results are include below.
Content analysis details:
pts rule name description
---- ---------------------- --------------------------------------------------
0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS
M.O.D. schrieb:
> John Emmas <johne53 <at> tiscali.co.uk> writes:
>
>> Perhaps you're missing the file 'libgtk-x11-2.0.la'
> I included a directory listing in my message, showing that this file is there.
>
> Perhaps you and John Emmas should read the messages before you reply to them.
The order of libs is wrong for $(pkg-config --libs gtk+-2.0)
-lgtk-x11-2.0 -lgdk-x11-2.0 should be at the end.
$ pkg-config --libs gtk+-2.0
-L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig
-lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -liconv
=>
-L/usr/X11R6/lib -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft
-lfreetype -lXrender -lXext -lfontconfig -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0
-lX11 -lz -lintl -liconv
With that linker line it works okay.
But I don't know how pkgconfig should be patched to resolve the required
pkg's recursively into the other direction.
Windows need the libs in the correct order, i.e. backwards.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------050203080801010109000200
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------050203080801010109000200--
- Raw text -