Article View: gnu.gcc.help
Article #50785Include file problem on sun-sparc-sunos-4.1.3 GCC 2.4.5
From: Steve Veit
Date: Tue, 24 Aug 1993 16:50
Date: Tue, 24 Aug 1993 16:50
38 lines
2132 bytes
2132 bytes
I am having trouble with the include files for my installation of GCC 2.4.5 on SunOS 4.1.3. I run configure with --target=sun-sparc-sunos-4.1.3. The installation procedes fine. When I try using the g++ compile on a file that includes <arpa/inet.h> I get the error message: /usr/include/arpa/inet.h:16: too many arguments to function `long unsigned int inet_addr ()' I look at inet.h and sure enough, it doesn't have a prototype for inet_addr that takes arguments. Well, we have the Sun C++ compiler headers, so I think why not use them as the default system includes instead of /usr/include. So I recompile gcc using make SYSTEM_HEADER_DIR=/pkg/lang/SC2.0.1/include/CC_413 ... Now when I compile with this g++, I get an error in <c_varieties.h>. It seems that fixinclueds fixed a C++ comment "//" that was inside a C comment to a C comment so that now we have a C comment inside a C comment (illegal). That is, this line in <c_varieties.h> * #ifdef __cplusplus // for C++ only * was changed to * #ifdef __cplusplus /* for C++ only **/ which causes all sorts of parse errors. I think this is a bug in fixincludes. It shouldn't fix anything inside of comments. My question: How can I install GCC properly so that it gets a proper prototype for inet_addr() (and others? Any help is greatly appreciated. -- Stephen R. Veit | Ascom Timeplex, Inc. veit@timeplex.com | 1807 Park 270 Drive, Suite 350 +1 314 579 6518 | St. Louis, MO 63146
Technical Details
Message-ID:
<9308241643.AA11059@timeplex.com>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!noc.near.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!corp.timeplex.com!veitShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b3e3eac908a25a46,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-24 10:28:13 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!noc.near.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!corp.timeplex.com!veit From: veit@corp.timeplex.com (Steve Veit) Newsgroups: gnu.gcc.help Subject: Include file problem on sun-sparc-sunos-4.1.3 GCC 2.4.5 Date: 24 Aug 1993 12:50:29 -0400 Organization: GNUs Not Usenet Lines: 39 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9308241643.AA11059@timeplex.com>