Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem building gnu make 3.82 on OVMS Alpha 8.3

SOLVED
Go to solution
EdgarZamora
Trusted Contributor

Problem building gnu make 3.82 on OVMS Alpha 8.3

In case someone (*cough* Hartmut *cough*) has the time to take a look...

I just downloaded gnu make 3.82 and tried to build it on OpenVMS Alpha 8.3 and encountered this c error (see attached simple log file of the build.) I did not change any default settings on the config.h-vms at all.

8 REPLIES
Joseph Huber_1
Honored Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

At the time this version for VMS was written, there was no strncasecmp() in C RTL.
If You really want to rebuild 3.82 (isn't this or a newer version in GNV ?), just delete the prototype of strncasecmp from make.h, and #include if not yet there.

Help CRTL strncasecmp says:
#include
int strncasecmp (const char *s1, const char *s2, size_t n);
http://www.mpp.mpg.de/~huber
Steven Schweda
Honored Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

> I just downloaded [...]

You just downloaded what, exactly, from
where, exactly?

> Help CRTL strncasecmp says:

Rather than toss the old, built-in
str[n]casecmp stuff, you might make it
conditional on the same stuff (or its
complement) as uses:

#if !defined _ANSI_C_SOURCE && __CRTL_VER >= 70000000

or :

#if __CRTL_VER >= 70000000

depending on which one you use.
Joseph Huber_1
Honored Contributor
Solution

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

ah no, don't change make.h, it has
#if !HAVE_STRNCASECMP
before it defines strncasecmp.
Activate/add #define HAVE_STRNCASECMP 1
in config.h-vms .
http://www.mpp.mpg.de/~huber
EdgarZamora
Trusted Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

>> Activate/add #define HAVE_STRNCASECMP 1
in config.h-vms <<

That did it! I found

/* Define to 1 if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1

but no STRNCASECMP so I added

#define HAVE_STRNCASECMP 1

to the config.h-vms file. Thank you!
Steven Schweda
Honored Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

> [...] so I added [...]

#if __CRTL_VER >= 70000000
# define HAVE_STRNCASECMP 1
#endif
EdgarZamora
Trusted Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

Thanks Steven.
EdgarZamora
Trusted Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

Thanks all.
H.Becker
Honored Contributor

Re: Problem building gnu make 3.82 on OVMS Alpha 8.3

This problem is known for some time. It was on ITRC in last September. And I submited a fix. Today's report reminded me to check whether the fix made it to the sources: it didn't. Anyway, the fix will very likely appear only in the next release of GNU make.