Skip to content
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

Couldn't compile on CentOS 7 #21

Closed
breezewish opened this issue Apr 10, 2020 · 2 comments · Fixed by #22
Closed

Couldn't compile on CentOS 7 #21

breezewish opened this issue Apr 10, 2020 · 2 comments · Fixed by #22

Comments

@breezewish
Copy link

# github.com/goccy/go-graphviz/internal/ccall
In file included from expat.c:3:
../expat/xmlparse.c:75:14: fatal error: sys/random.h: No such file or directory
   75 | #    include <sys/random.h> /* getrandom */
      |              ^~~~~~~~~~~~~~
compilation terminated.

CentOS 7 doesn't ship with a recent enough glibc, so that sys/random.h isn't actually available. I saw that this is manually configured here. The libc in my system is:

GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.5 20150623 (Red Hat 4.8.5-39).
Compiled on a Linux 3.10.0 system on 2019-08-06.
@breezewish
Copy link
Author

I confirmed that PR #22 works 🎉 Thanks a lot! (maybe also better to modify GitHub action to include the OS?)

@goccy goccy closed this as completed in #22 Apr 13, 2020
@goccy
Copy link
Owner

goccy commented Apr 13, 2020

Thank you for confirmation!
I merged #22 and released as v0.0.5.

maybe also better to modify GitHub action to include the OS?

Yes, I think it's better to add OS type to GitHub action. ( And I welcome PR ...! 😄 )

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 a pull request may close this issue.

2 participants