[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Error in SDL-1.2.13-1.m68kmint.rpm
- To: mint <mint@lists.fishpool.fi>
- Subject: Re: [MiNT] Error in SDL-1.2.13-1.m68kmint.rpm
- From: Vincent Rivière <vincent.riviere@freesbee.fr>
- Date: Mon, 21 Jun 2010 10:29:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=LaTMBleWTNfWL6v4mr8QDf/tBJn/gek+BJYiUNjPl4s=; b=T+A++uABOvlU7ETLUYtzTL2TF+v/X1UaYxm+aEd/nabp2RFseqVNGjx82pfDfcpqOo uuKADjYvKoS5hW4N15fdnHTYVcXyq5cg3iPdj+xkpWeSA5fdKgMePiKi7pPXflR9YpFr Z7Nx6Vm/fLan8UGreO9qYcgGHJ0cC68UD77TI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=BdkVvUMR+Y9EtAqF3t0h5p4TFJonQVr5+Nzie4g/HypJqQ78tQyjwNG1PUoO6lQaln LwfSqjKGh/nSJf9rbusaJ4y4pjb1vUWXs8NwD/6ZOBuIbidcDB0bCcjWexMCqxl4fnZV dYQSPcQ6uI2wqXwWRwl7kQxLHY/6WuKYu50R8=
- In-reply-to: <c1f8aa1ebbbe7fbc295d64cb692653bb-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYJXl5oBlY6XF1YRkUEW1hQQg==-webmailer2@server02.webmailer.hosteurope.de>
- List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
- List-id: <mint.lists.fishpool.fi>
- List-owner: <mailto:tjhukkan@fishpool.fi>
- List-post: <mailto:mint@lists.fishpool.fi>
- List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
- List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
- References: <c1f8aa1ebbbe7fbc295d64cb692653bb-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYJXl5oBlY6XF1YRkUEW1hQQg==-webmailer2@server02.webmailer.hosteurope.de>
- Sender: mint-bounce@lists.fishpool.fi
- User-agent: Thunderbird 2.0.0.24 (Windows/20100228)
m0n0 a écrit :
I think SDL-1.2.12-1 RPM Contains an error in the sdl.pc pkg-config file.
It defines the following linker flags: -lSDL -lgem -lldg -lgem
You didn't say what the error is...
The fact -lgem appears twice ?
It is sometimes mandatory when libraries have interdependencies.
The important thing to understand is that the order of the libraries on
the linker command line is significant: they are loaded from left to
right. Normally, the most specific libs should appear first, then the
most generic ones. If a library makes use of a previously used library,
AND the required symbols have not been already satisfied, it is
necessary to put the libraries on the command line once again to avoid
unresolved externals.
The above example suggests that libgem has dependencies to libldg (which
is quite improbable) and libldg has dependencies to libgem.
For information, ld has a special options --start-group and --end-group
which can be abbreviated to -( and -)
Libraries listed between these options are searched repeatedly until no
new undefined references are created. The documentation says this should
be used only when unavoidable due to performance costs.
For example, the following options could do the trick here:
-( -lSDL -lgem -lldg -)
--
Vincent Rivière