I got really really close to compiling the alephone1.3 engine on Haiku!

I just discovered Haiku and I’m having a lot of fun getting used to it. I thought it would be really fun to play some Pathways Into Darkness and Marathon Infinity, so I tried to compile alephone1.3 and I got really close! It seems that I’m running into a compilation error related to sdl2_net.

First and foremost, I made sure to install the dependencies as best as I could from this wiki guide: https://github.com/Aleph-One-Marathon/alephone/wiki/Linux-Install-Instructions

After running make, everything seemed to compile just fine until the end. I ran into this error:
https://ghostbin.co/paste/kcny/raw

I’m not quite sure what the problem is. Can anyone help me?

1 Like

Welcome to the forum! Have you tried looking up those two missing constants feeding into ioctrl? They may just have a different name on Haiku. (I’m basing the idea that they are constants by the fact that the names are all uppercase.)

Edit:
Here’s a thought: the networking code on Haiku is largely based on that of BSD. That may give you the search term you need.

2 Likes

Thanks for the welcome :slight_smile: I’m just starting to learn programming but I’m mighty fine with a search engine. Let me see what I can dig up with your hint of inspiration!

1 Like

SIOCGIFCONF on Haiku resides in sockio.h. Add to SDL_netx.cpp the following:

#ifdef __HAIKU__
#  ifndef SIOCGIFCONF
#    include <sys/sockio.h>
#  endif
#endif

Yes, sockio.h is indeed what I’m looking for:

both SIOCGIFCONF and SIOCGIFBRDADDR are defined in this header! I’m soooo close

I tried adding

to SDL_netx.cpp but still didn’t compile. I’ll add a paste of the output in a second, I’ve got my hands full at the moment!

This is very exciting

Some inspiration:

1 Like