View Single Post
  #3   (View Single Post)  
Old 13th January 2022
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 202
Default

I got it working. You have to change this file:

include/strfunc.h

Change this:
#if !defined(linux) && !defined(__CYGWIN32__) && !defined(MSDOS) && !defined(__sun)
int strcasecmp (const char *, const char *);
int strncasecmp (const char *, const char *, int);
#endif

to this:
#if !defined(__OpenBSD__) && !defined(linux) && !defined(__CYGWIN32__) && !defined(MSDOS) && !defined(__sun)
int strcasecmp (const char *, const char *);
int strncasecmp (const char *, const char *, int);
#endif

Change this:
void strlcat (char *, const char *);


to this:
#if !defined(__OpenBSD__)
void strlcat (char *, const char *);
#endif

Don't forget to install gmake and use gmake instead of make to build in each directory.

I tried doing a global build for all of the programs and it is listing a few bug warnings and function defintions that need to be hidden using the !defined(__OpenBSD__) directive.

To see that you can copy the Makefile.lin to Makefile.obsd then:

Change
CC = gcc
to
CC = egcc

Change:
MAKE = make
to
MAKE = gmake

The instructions to make it are in the INSTALL file.

Last edited by Prevet; 13th January 2022 at 01:43 PM.
Reply With Quote