Skip to content

Do not include libgen.h on Linux, to fix Alpine 3.19 #198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2025

Conversation

gaborcsardi
Copy link
Member

Alpine 3.19 libgen.h and string.h have conflicting declaration of basename()

@gaborcsardi gaborcsardi force-pushed the fix/alpine-3.19/basename branch from f2c4aa4 to 87af0c1 Compare April 12, 2025 08:09
Alpine 3.19 libgen.h and string.h have conflicting
declaration of `basename()`:

```
In file included from api-posix.c:19:
/usr/include/libgen.h:9:7: error: conflicting types for 'basename'; have 'char *(char *)'
     9 | char *basename(char *);
       |       ^~~~~~~~
In file included from api-posix.c:12:
/usr/include/string.h:99:7: note: previous declaration of 'basename' with type 'char *(void)'
   99 | char *basename();
      |       ^~~~~~~~
make: *** [/usr/local/lib/R/etc/Makeconf:202: api-posix.o] Error 1
ERROR: compilation failed for package ‘ps’
```
@gaborcsardi gaborcsardi force-pushed the fix/alpine-3.19/basename branch from 87af0c1 to e4bb7c2 Compare April 12, 2025 08:15
@gaborcsardi gaborcsardi merged commit 3732746 into main Apr 12, 2025
20 checks passed
gaborcsardi added a commit to r-lib/pingr that referenced this pull request Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant