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: 3046
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
Site Admin
Posts: 33202
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?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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: 3046
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