www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Andris Pavenis <pavenis AT latnet DOT lv> |
To: | djgpp AT delorie DOT com |
Subject: | Re: libc.a compiled from CVS doesn't work for me |
Date: | Wed, 30 Mar 2005 09:19:20 +0300 |
User-Agent: | KMail/1.8 |
References: | <rHA0e.693969$b5 DOT 31374356 AT news3 DOT tin DOT it> |
In-Reply-To: | <rHA0e.693969$b5.31374356@news3.tin.it> |
MIME-Version: | 1.0 |
Message-Id: | <200503300919.20511.pavenis@latnet.lv> |
X-Virus-Scanned: | by amavisd-new at fgi.fi |
Reply-To: | djgpp AT delorie DOT com |
On Thursday 24 March 2005 17:05, Fabrizio Gennari wrote: > I downloaded the latest CVS version of djgpp and compiled it (using > tools downladed in binary form drom a DJGPP mirror). But there was a > problem: every time a program linked with the newly-compiled libc.a, a > link error occurred. > > libc.a:undefined reference to '_environ' (in crt1.c and spawnp.c) > > Example: symify.c in djgpp/src/debug/common > > In order t make things work, I replaced one line in src\libc\crt0\crt1.c > > extern char **_environ; > > with > > char **_environ; > > Is that the right thing to do? Or is there a cleaner fix? Yes. Download latest update of gcc-3.4.3 (or gcc-3.3.5 if You are stick with gcc-3.3.X) for DJGPP, which I uploaded in begin of March. The linker script is modified to provide _environ. Andris PS. It's highly recommended not to mix object files generated by this update (and perhaps later versions) with ones generated by any earlier releases. So You must rebuild them after upgrade.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |