From xemacs-m  Sat May 24 09:23:43 1997
Received: from mantar.slip.netcom.com (mantar.slip.netcom.com [192.187.167.134])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA20175
	for <xemacs-beta@xemacs.org>; Sat, 24 May 1997 09:23:41 -0500 (CDT)
Received: from mantar.slip.netcom.com (localhost [127.0.0.1])
	by mantar.slip.netcom.com (8.8.5/8.8.5) with ESMTP id AAA13081;
	Sat, 24 May 1997 00:54:40 -0700 (PDT)
Message-Id: <199705240754.AAA13081@mantar.slip.netcom.com>
X-Mailer: exmh version 2.0gamma 1/27/96
To: Martin Buchholz <mrb@Eng.Sun.COM>
cc: xemacs-beta@xemacs.org
Subject: Re: Build semi-faliure b2 
In-reply-to: Your message of "Sat, 24 May 1997 00:32:41 PDT."
             <199705240732.AAA26904@xemacs.eng.sun.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 24 May 1997 00:54:40 -0700
From: "Manfred A. Antar" <manfred@mantar.slip.netcom.com>

> >> Try adding
> >> #define LIB_STANDARD -lc
> >> to s/freebsd.h
> >> 
> >> Does that fix it?  (rerun configure and make to test it).
> >> 
> >> I am surprised there are compilation environments today where the -lc
> >> is not implicit.  This behavior is standardized in XPG4, for example.
> >> I could make "-lc" the default value for LIB_STANDARD instead (this
> >> was the case previously), but that should be necessary only in
> >> exceptional cases.  BSD has had an implicit -lc for 20 years.  Is
> >> FreeBSD really this broken?  Perhaps there are 2 copies of libc installed?
> >> 
> >> Martin
> >> 
> 
> Manfred> Ya that works! funny i've never had that happen before.i guess i should mention
> Manfred> that i'm running FreeBSD current which is also beta :).
> Manfred> Thanks Manfred
> 
> But we need to dig deeper.  Does Hello World not link on your system.
> If it does, more investigation is required as to why -lc was
> necessary.
> 
> Martin
> 

It works:

#include <stdio.h>
int main (void) {
printf ("\033[32m Hello World! \033[m\n");
}

gcc -o test test.c

This gives me a green Hello World

The last beta did not do this and i do a make world on the system daily
and have never had to include -lc in anyrhing.
There is a libc_r that has just been included in FreBSD current but i dont 
think that is the problem.
gcc version is 2.7.2.1
and i am using gnumake
I don't know where else to look.
Manfred
===========================
||	mantar@netcom.com	||
||	Ph. (415) 647-4843	||
===========================


