www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/06/08/14:19:32

To: pgcc AT delorie DOT com
Date: Tue, 08 Jun 1999 11:17:58 -0700
From: "Johnny Casey" <johnnycasey AT theglobe DOT com>
Message-ID: <NLGFKBBDFNFBGAAA@theglobe.com>
Mime-Version: 1.0
X-Sent-Mail: off
X-Mailer: MailCity Service
Subject: Re: trouble compiling gcc as cross-compiler to m68k
X-Sender-Ip: 168.122.12.78
Organization: E-Mail @ theglobe.com (http://www.globe-mail.com:80)
Reply-To: pgcc AT delorie DOT com

Hi Emmanuel,

correct me if i am wrong, but glibc 2.x defines a lot of string functions (*str*) with hand tuned macros and *a lot* of older source decided to not use headers when all they wanted was one function definition.  often all that needs be done is the commenting out of the offending definition.  this also appears with rogue definitions of sys_error not being as generous with const as the recent glibc.
HTH
BTW, there exists, i think, a macro to turn off these inline macros.  or you could edit the code to use..

strdup (... 

instead of 

strdup(...

(though i might have that backwards... might enfoce macros...)

gee, cost analysis is a rare thing it seems...
--

On 08 Jun 1999 12:30:33 +020   Emmanuel Michon wrote:
>Hi,
>
>there's a tool to compile programs for the USR Palm Pilot that
>is essentially gcc used as a cross-compiler to produce m68k code.
>It's called prc-tools-0.5.0.tar.gz, you can find it here:
>http://elf.org/pilot/develop.html
>
>This tool has a Makefile to patch and compile the following:
>
>-r--r--r--   1 root     root      7134021 Mar 16 16:36 gcc-2.7.2.2.tar.gz
>-r--r--r--   1 root     root      5996836 Mar 17 17:02 gdb-4.16.tar.gz
>-r--r--r--   1 root     root      4480163 Mar 16 16:34 binutils-2.7.tar.gz
>
>for the PalmPilot.
>
>With pgcc-1.1.3-3mdk, from Linux Mandrake 6.0 (Venus), there are a lot
>of failures, essentially due to bad macro use that did not happen
>when compiling with gcc on an older distribution.
>
>gcc -O2 -c -I. -I. -I../bfd -I./../bfd -I./../include  -g arsup.c
>arsup.c:41: macro `strdup' used without args
>make[3]: *** [arsup.o] Error 1
>make[3]: Leaving directory `/home/michon/binutils-2.7/binutils'
>make[2]: *** [all-binutils] Error 2
>make[2]: Leaving directory `/home/michon/binutils-2.7'
>make[1]: *** [stamp.binutils] Error 2
>make[1]: Leaving directory `/home/michon/prc-tools-0.5.0'
>make: *** [doeverything] Error 2
>
>-- 
>Emmanuel Michon (http://www.stud.enst.fr/~michon)
>


"Free web-based email available now at http://www.theglobe.com"

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019