-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Plugin multimeter: fix compilation error in AIX. #549
Conversation
So I trust you this makes the build pass :-) But what can be the implications of this change on the way the plugin works ? Also on other platforms than AIX ? |
The other option is disable this plugin in AIX. |
@@ -170,7 +170,7 @@ static int multimeter_init (void) | |||
|
|||
tcflush(fd, TCIFLUSH); | |||
tcsetattr(fd, TCSANOW, &tios); | |||
ioctl(fd, TIOCMBIC, &rts); | |||
ioctl(fd, (int)TIOCMBIC, &rts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this arg is a u_long on other platform (e.g: linux) maybe it's worth doing an #ifdef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's easy to disable this plugin for AIX. Nobody is going to plug this:http://www.reinhardweiss.de/pictures/metex/m4650cr.gif to an AIX server.
Do I make a pull request to disable it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great!
On Jul 28, 2014 11:26 PM, "manuelluis" notifications@github.com wrote:
In src/multimeter.c:
@@ -170,7 +170,7 @@ static int multimeter_init (void)
tcflush(fd, TCIFLUSH); tcsetattr(fd, TCSANOW, &tios);
ioctl(fd, TIOCMBIC, &rts);
ioctl(fd, (int)TIOCMBIC, &rts);
I think that it's easy to disable this plugin for AIX. Nobody is going to
plug this:http://www.reinhardweiss.de/pictures/metex/m4650cr.gif to an
AIX server.Do I make a pull request to disable it?
—
Reply to this email directly or view it on GitHub
https://github.com/collectd/collectd/pull/549/files#r15492101.
Disable in #684 |
The plugin multimeter is build by default, in AIX when you compile in 64 bit you get the error:
The TIOCMBIC is defined:
and the other defines:
in /usr/include/sys/ioctl.h more than a half have a cast to int, for example:
If you compile in AIX collectd in 32 bits you will not get the error.
Other option is to disable the build of multimeter in AIX.