Re: [Newbie] First compile

From: George Greer (
Date: 05/12/02

On Sun, 12 May 2002, Mark Gerritsen wrote:

>>>gcc -c -g -O2 -Wall  utils.c
>>>utils.c:118: parse error before `__extension__'
>>>utils.c:118: `__len' undeclared here (not in a function)
>>The C library #define for strdup() interefered with the CircleMUD-provided
>>version of strdup(), which should only be included if you don't have
>>strdup() in the first place.
>>Check your config.log to see why HAVE_STRDUP is off.
>config.log doesn't show anything but it checking for strdup... no other
>messages to indicate it's turned off or anything...

That's a standard 'configure' test:

AC_CHECK_FUNCS(gettimeofday select snprintf strcasecmp strdup strerror
stricmp strlcpy strncasecmp strnicmp strstr vsnprintf)

so you're saying all you see in config.log is:

configure:2234: checking for strdup
configure:2263: gcc -o conftest -g -O2   conftest.c  1>&5
configure:2234: checking for strerror
configure:2263: gcc -o conftest -g -O2   conftest.c  1>&5


If so, then what platform again, exactly, are  you on?

George Greer

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT