X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Fabrizio Gennari User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: libc.a compiled from CVS doesn't work for me Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Lines: 27 Message-ID: Date: Thu, 24 Mar 2005 15:05:59 GMT NNTP-Posting-Host: 82.49.163.231 X-Complaints-To: "Please send abuse reports to abuse AT tin DOT it and technical notifications to newsmaster AT tin DOT it" X-Trace: news3.tin.it 1111676759 82.49.163.231 (Thu, 24 Mar 2005 16:05:59 MET) NNTP-Posting-Date: Thu, 24 Mar 2005 16:05:59 MET Organization: TIN To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? By the way, some more files in djgpp CVS tree still do not compile, even with this modification: v2load.c in djgpp/src/debug/common, and go32-v2.c in djgpp/src/stub give an error "undefined reference to 'environ'". Regards, Fabrizio