X-Spam-Check-By: sourceware.org
Date: Wed, 4 Jan 2006 13:15:26 +0100
From: "Gerrit P. Haase" <gerrit@familiehaase.de>
Reply-To: "Gerrit P. Haase" <gerrit@familiehaase.de>
Message-ID: <1711208879216.20060104131526@familiehaase.de>
To: Vijay Kiran Kamuju <infyquest@gmail.com>
CC: cygwin@cygwin.com
Subject: Re: imlib2-1.2.1 compilation errors with cygwin 1.5.18 and binutils-20050610
In-Reply-To: <36bf289b0601040235s1fb6ca37jaf9de5c7e84a159e@mail.gmail.com>
References: <36bf289b0601030256h58a1832erbda960cabbcab2e9@mail.gmail.com>  <1731197412708.20060104100419@familiehaase.de>  <36bf289b0601040235s1fb6ca37jaf9de5c7e84a159e@mail.gmail.com>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Vijay schrieb:

> Hi,

> I tried that before sending it to the list.
> Even that failed due to the errors u mentioned.
> The issues regarding missing leading underscores in symbols when
> linking the objects later.
> How to fix that?

I see that there is this in the source file:

#ifdef __EMX__
/* Due to strange behaviour of as.exe we use this macros */
/* For all OS/2 coders - please use PGCC to compile this code */
#define PR_(foo) ___##foo
#define PT_(foo,func) ___##foo,##func
#define SIZE(sym)                              \
                .___end_##sym:;                        \
                .size ___##sym,.___end_##sym-___##sym; \
                .align 8;
#else
#define PR_(foo) __##foo
#define PT_(foo,func) __##foo,##func
#define SIZE(sym)                           \
                .__end_##sym:;                      \
                .size __##sym,.__end_##sym-__##sym; \
                .align 8;
#endif

So it may work without problems.

If not try if it works when defining
#if defined(__EMX__) || defined(__CYGWIN__)
instead of
#ifdef __EMX__
at the beginning of this file and see if there are similar definitions
at the beginning of other assembler files, it seems that EMX has the
same problems. 


> Well why do the following psuedo-ops fail with cygwin 'as.exe'
> .type
> .comm a,b,c
> .size

Should work to remove the lines.



Gerrit
-- 
=^..^=



--
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/

