delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/03/24/17:46:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <4243420f$0$172$cc7c7865@news.luth.se>
From: Martin Str|mberg <ams AT speedy DOT ludd DOT ltu DOT se>
Subject: Re: libc.a compiled from CVS doesn't work for me
Newsgroups: comp.os.msdos.djgpp
References: <rHA0e.693969$b5 DOT 31374356 AT news3 DOT tin DOT it>
User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha))
Date: 24 Mar 2005 22:41:19 GMT
Lines: 31
NNTP-Posting-Host: speedy.ludd.ltu.se
X-Trace: 1111704079 news.luth.se 172 130.240.16.13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Fabrizio Gennari <fabrizio DOT ge AT tiscalinet DOT noitspam> 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?

No. If you want to use the whole CVS you should use everything from
cvs. In this case you need lib/djgpp.djl (I think). But you should
really get everything.

(It is possible to selectively pick stuff, but then you shouldn't be
surprised if there are problems; e. g. the one you have right now.)


Right,

						MartinS

- Raw text -


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