Repository navigation
Build and run on Haiku - #60
duncanmcqueen wants to merge 3 commits into
Conversation
Haiku has inet_pton(), the other socket functions and h_errno in libnetwork. Without it, the JNI libraries fail to load (undefined __h_errno) and configure does not find the socket functions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: duncanmcqueen <206344294+duncanmcqueen@users.noreply.github.com>
Haiku does not define IFF_RUNNING. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: duncanmcqueen <206344294+duncanmcqueen@users.noreply.github.com>
On Haiku, gethostbyname_r() is in libnetwork but no header declares it, so configure finds the function but not the number of arguments, and cpnet.c stops with #error. Use gethostbyname() in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: duncanmcqueen <206344294+duncanmcqueen@users.noreply.github.com>
b7089a2 to
611618a
Compare
|
Hi @duncanmcqueen, thanks for these too! As with #59, could you split this into separate PRs, one per fix? Steps to reproduce or a small test case for each would be very helpful as well. One general note: we’re a bit cautious with platform-specific changes, and prefer fixes that improve portability in general rather than ones that target a single OS. So when you open the new PRs, it would help if each one mentioned whether the issue is specific to Haiku or could possibly impact other systems. Thanks! |
|
Thank you for the review. I split this pull request into one pull request for each fix:
Each pull request tells if the problem is specific to Haiku:
I reproduced each problem on Haiku with the While I wrote the test for #75, I found an error in this pull request: it defined I close this pull request, because the three new pull requests replace it. 🤖 Generated with Claude Code |
Summary
This pull request lets GNU Classpath build and run on Haiku (x86_64). It has three small changes:
h_errnoinlibnetwork. NowAC_SEARCH_LIBSforinet_ptonalso looks innetwork.IFF_RUNNING. The file now defines it if necessary.gethostbyname_r()is inlibnetwork, but no header declares it. Configure finds the function but not the number of arguments, andcpnet.cstops with#error. Nowcpnet.cusesgethostbyname()in this case.With the
config.guessandconfig.subfrom current automake, configure runs on Haiku asx86_64-unknown-haiku.Tests
On Haiku R1/beta6 x86_64:
autoreconf -fi, configure with--enable-jni --disable-gtk-peer --disable-gconf-peer --disable-plugin --disable-gjdoc --disable-examples --enable-default-preferences-peer=file --disable-tools,makeandmake installcomplete. I used the result with Kaffe 1.1.10. A command line test (including network and processes) passes.AI assistance
An AI model (Claude Code, by Anthropic) wrote these changes and this text. The repository owner directed the work. Please review the changes as you review other contributions.
The commits do not have a
Signed-off-byline. If you need one, the owner will add it.🤖 Generated with Claude Code