gcc and stdlib

General support questions
Post Reply
Zenoxio
Posts: 4
Joined: 2012/02/08 16:55:53

gcc and stdlib

Post by Zenoxio » 2018/10/14 05:52:27

I host a number of MUDs and I am migrating from an old CentOS server to a CentOS 6.10 server.

I am running gcc 3.4.6 20060404 on both, but encountering compile errors on the new server that didn't exist on the old server. It appears stdlib.h differs. This does not exist on the new server in stdlib.h:

Code: Select all

/* The internal entry points for `strtoX' take an extra flag argument
   saying whether or not to parse locale-dependent number grouping.  */

extern double __strtod_internal (__const char *__restrict __nptr,
                             char **__restrict __endptr, int __group)
     __THROW __nonnull ((1)) __wur;
extern float __strtof_internal (__const char *__restrict __nptr,
                            char **__restrict __endptr, int __group)
     __THROW __nonnull ((1)) __wur;
extern long double __strtold_internal (__const char *__restrict __nptr,
                                   char **__restrict __endptr,
                                   int __group)
 __THROW __nonnull ((1)) __wur;
 
 
 #  ifndef __LDBL_COMPAT
extern __inline long double
__NTH (strtold (__const char *__restrict __nptr, char **__restrict __endptr))
{
  return __strtold_internal (__nptr, __endptr, 0);
}
Is there anyway to have stdlib or the library be the same as the old server? I am looking to have this migration go as smoothly as possible for the MUD developers.

More details: https://stackoverflow.com/questions/527 ... d/52798513

[EDIT] This may be related? http://www-01.ibm.com/support/docview.w ... wg21455370

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: gcc and stdlib

Post by avij » 2018/10/14 16:59:46

Have you tried compiling using the standard gcc in CentOS 6?

Zenoxio
Posts: 4
Joined: 2012/02/08 16:55:53

Re: gcc and stdlib

Post by Zenoxio » 2018/10/14 17:34:46

avij wrote:
2018/10/14 16:59:46
Have you tried compiling using the standard gcc in CentOS 6?
I have this already as the main gcc. gcc34 is an alt install running to support MUDs, many being from 1994.

User avatar
TrevorH
Forum Moderator
Posts: 27368
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: gcc and stdlib

Post by TrevorH » 2018/10/14 21:17:31

Did you try with the compiler option mentioned in that IBM article?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Zenoxio
Posts: 4
Joined: 2012/02/08 16:55:53

Re: gcc and stdlib

Post by Zenoxio » 2018/10/14 21:19:57

Yes, no difference. I tried finding documentation on that and didn't see anything yet. I'm wondering if there's a typo and it should be: __STRICT_ANSI__

User avatar
avij
Retired Moderator
Posts: 3039
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: gcc and stdlib

Post by avij » 2018/10/14 22:38:01

Zenoxio wrote:
2018/10/14 17:34:46
avij wrote:
2018/10/14 16:59:46
Have you tried compiling using the standard gcc in CentOS 6?
I have this already as the main gcc. gcc34 is an alt install running to support MUDs, many being from 1994.
Yeah, but did you actually try using it to compile your program? It just might work.

Post Reply

Return to “CentOS 6 - General Support”