🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50447

Trouble compiling FlexFAX w/gcc-2.4.5

#50447
From: Jim Levie
Date: Thu, 30 Sep 1993 18:05
29 lines
1879 bytes
This has probably already been solved, but I missed the solution...

Trying to compile FlexFAX on SunOS 4.1.3 with GCC 2.4.5 fails with the
following message:

In file included from InterViews/regexp.c++:31:
/usr/local/lib/g++-include/string.h:28: declaration of `int  strlen (const char *)'
<built-in>:0: conflicts with built-in declaration `long unsigned int  strlen (const char *)'
*** Error code 1

Looking in string.h I see:

// NOTE: If you get a error message from g++ that this declaration
// conflicts with a <built-in> declaration of strlen(), that usually
// indicates that __SIZE_TYPE__ is incorrectly defined by gcc.
// Fix or add SIZE_TYPE in the appropriate file in gcc/config/*.h.
size_t    strlen(const char*);

Looking in the config files for gcc doesn't suggest anything to me as
to why this is happening or how to fix it. Anybody want to volunteer a
solution? 

Thanks...

-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Jim Levie                                  email: jim@chimera.remtech.com
 REMTECH Inc  Huntsville, Al                (or)  ...uunet!remtech!chimera!jim
 The opinions expressed above are just that     Ph.     (205) 536-8581
Technical Details
Message-ID: <CE6IA0.3Jt@remtech.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!infonode!ingr!remtech!jim

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5b0c55c7ae032095,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-30 18:15:02 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!infonode!ingr!remtech!jim
From: jim@remtech.com (Jim Levie)
Subject: Trouble compiling FlexFAX w/gcc-2.4.5
Message-ID: <CE6IA0.3Jt@remtech.com>
Summary: Confict between declaration of strlen and built-n declaration
Keywords: FlexFax
Sender: usenet@remtech.com
Organization: Remtech Inc.
Distribution: na
Date: Thu, 30 Sep 1993 18:05:59 GMT
Lines: 29