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

fail to compile on AlpineLinux #9

Closed
ogoudron opened this issue May 1, 2017 · 5 comments
Closed

fail to compile on AlpineLinux #9

ogoudron opened this issue May 1, 2017 · 5 comments
Assignees

Comments

@ogoudron
Copy link

ogoudron commented May 1, 2017

Hello,
Etherate failed to compile on Alpine Linux (musl libc based distro) with this error mesage.
In file included from etherate.cpp:77:0:
etherate.h:164:21: error: field 'TV_SELECT_DELAY' has incomplete type 'timeval'
struct timeval TV_SELECT_DELAY; // Elapsed time struct for polling the socket FD
^~~~~~~~~~~~~~~
etherate.h:164:13: note: forward declaration of 'struct timeval'
struct timeval TV_SELECT_DELAY; // Elapsed time struct for polling the socket FD
^~~~~~~
make: *** [Makefile:444: etherate.o] Error 1

@jwbensley jwbensley self-assigned this May 2, 2017
@jwbensley
Copy link
Owner

Thanks for reporting the issue. I'll check it out when I get some time. This might not be fixable, due to the vast number of Linux distro's fixing this for Alpine might break it for Ubuntu for example. I personally am only interested in running Etherate on Ubuntu and CentOS (happy to make a new branch and someone can submit a pull request though!). I'll see if there is a fix that doesn't hinder Ubunt and CentOS compiling and update when I know more.

@ogoudron
Copy link
Author

ogoudron commented May 5, 2017

Thanks for your reply. I think Etherate would be a nice tool to have for Alpine Linux.

@jwbensley
Copy link
Owner

jwbensley commented Mar 31, 2018

I had every intention of fixing this issue :)

I will update the INSTALL documentation, I have it compiling now by using the following steps:

apk add gcc automake autoconf libtool m4 alpine-sdk linux-headers

Then either:

./configure.sh
make

Or:

gcc -o etherate etherate.c -Wall -Werror -ftrapv -pedantic -lrt -lm -std=gnu11 -O3

@jwbensley jwbensley reopened this Mar 31, 2018
@ogoudron
Copy link
Author

ogoudron commented Apr 3, 2018

Hello, thanks for your answer.
FYI, i closed this ticket because i switched to VoidLinux. Compilation worked on VoidLinux (Glibc version) but i have not done yet all tests.

@jwbensley
Copy link
Owner

This is fixed version 1.17 (2018-04) - I have updated the INSTALL file for any future users of Alpine with the install requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants