🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51359

Getting the right header files on a sparc

#51359
From: -Kevin Smolkowski-
Date: Tue, 25 May 1993 11:24
28 lines
1708 bytes
This isn't a bug in gcc, just my lack of understanding
of what is going on with my sparcstation.

I sucessfully built 2.4 on my SparcStation 2, running Sunos 4.2, gcc
compiles fine, but when I compile -Wall, I gets lots of warnings along the
line of:

merge.c: In function `main':
merge.c:43: warning: implicit declaration of function `printf'
merge.c:44: warning: implicit declaration of function `puts'
merge.c:91: warning: implicit declaration of function `fclose'

I have all the proper header files included, this same program
compiles cleanly on a DecStation running ultrix.

I grepped though the fix-includes directory, which is 

/usr/local/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.4.0/include/

on my system and there is no printf declaration in any of the
header files.  Then to my surprise, I looked through /usr/include
and no header file there has a declaration for printf either.

Am I missing something?  Should I grab the Gnu libc and build
that?  Am I just confused?

-Kevins
Technical Details
Message-ID: <KEVINS.93May25112448@aragorn.ori.org>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!bnr.co.uk!bnrgate!nott!torn!utnut!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!cs.uoregon.edu!news.uoregon.edu!pith.uoregon.edu!kevins

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cceac570d665de8,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-25 13:15:50 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!pipex!bnr.co.uk!bnrgate!nott!torn!utnut!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!cs.uoregon.edu!news.uoregon.edu!pith.uoregon.edu!kevins
From: kevins@aragorn.ori.org (-Kevin Smolkowski-)
Newsgroups: gnu.gcc.help
Subject: Getting the right header files on a sparc
Date: 25 May 93 11:24:48
Organization: Oregon Research Institute
Lines: 30
Distribution: gnu
Message-ID: <KEVINS.93May25112448@aragorn.ori.org>
NNTP-Posting-Host: aragorn.ori.org