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

build failure SmartOS because of setsockopt IPV6_V6ONLY #1212

ingenthr opened this issue Mar 30, 2019 · 1 comment


None yet
2 participants
Copy link

commented Mar 30, 2019

Trying to build 1.5.8 on SmartOS with clang. Failed with:

net.c:442:34: error: use of undeclared identifier 'IPV6_V6ONLY'
                setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ss_opt, sizeof(ss_opt));
1 error generated.
Makefile:122: recipe for target 'net.o' failed
make[1]: *** [net.o] Error 1
make[1]: Leaving directory '/root/src/mosquitto-1.5.8/src'
Makefile:26: recipe for target 'mosquitto' failed
make: *** [mosquitto] Error 2

A quick search seems to indicate the setup can be changed to avoid this as in this patch in iperf:



# cat /etc/release
                                SmartOS x86_64
              Copyright 2010 Sun Microsystems, Inc.  All Rights Reserved.
                   Copyright 2015 Joyent, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                   See joyent_20161108T160947Z for assembly date and time.

ralight added a commit that referenced this issue Apr 11, 2019

Fix build on SmartOS due to missing IPV6_V6ONLY.
Thanks to Matt Ingenthron.

Closes #1212.

This comment has been minimized.

Copy link

commented Apr 11, 2019

Thank you, that's a nice easy fix and will be in 1.6 shortly.

@ralight ralight closed this Apr 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.