-
nikolam
Anyone knows how to set default gateway on admin network on the DHCP client/SmartOS machine side? I can't set it up in /usbkey/config and to be honored
-
nikolam
Also I would like to set manually IP address on external interface and not having it always use dhcp with changing MAC address for vnic on global zone on external.
-
nikolam
Is this possible in /usbkey/config or I would need to set it up post-boot with the service
-
» nikolam i'll be back
-
xmerlin
jperkin, I'm attempting to compile FRR on SmartOS, but I'm encountering issues with the dependency 'libyang2' due to a missing 'strndup' function. Is there a patch available to resolve this?
-
jperkin
xmerlin: does the file include string.h? if not then add it, if it does then it'll need to be built with -D_XOPEN_SOURCE=700
-
jperkin
the usual way to diagnose these issues is first look at the manual page of the function to see what the correct header to pull in (we're stricter than other systems so often software neglects to add the correct #include because 'works on my machine'), then if it still fails look at the header itself to see if the symbol is hidden behind any particular feature test, and see
-
jperkin
/usr/include/sys/feature_tests.h for how they are set
-
xmerlin
jperkin, it includes string.h
-
xmerlin
but XOPEN_SOURCE=700 solved the issue ...do you have any tips for "implicit declaration of function 'ioctl' " ?
-
andyf
If you look at the ioctl man page, it will tell you which headers should be included. For this case, it's unistd.h and stropts.h
-
xmerlin
andyf, thank you
-
jbk
we really, really, really, should just make __EXTENSIONS__ the default... not having that has caused far, far, far, far more problems for people than I think it has ever solved
-
rmustacc
jbk: If you actually don't do anything special you do get this by default, fyi. The challenge is that a lot of folks actually have a compiler or something else asking for it. :/
-
rmustacc
The strict symbols construct which strndup and others use actually means it is the default.
-
rmustacc
The act like extensions is set is what we do by default.
-
rmustacc
(For the majority of additions and related)
-
rmustacc
And things that aren't using the strict symbols style thing probably should be convereted. But also that doesn't help if someone asks for it posix x.
-
rmustacc
So aside from more adjustments of the guards to match the newer style, what would you do?
-
rmustacc
So strndup is an interesting case in that if you specify nothing you get it. So why didn't we?
-
mycroft_
jperkin: if possible, mosh should also be flagged so that it isn't silently dropped
-
CmdLnKid
cd
-
jvl
[CmdLnKid@smartos:~]$
-
neirac
I just tried to build smartos-live , but is failing building illumos dmake: Warning: Command failed for target `/home/build/smartos-live/proto/platform/i86pc/ucode/GenuineIntel/00000F41-10'
-
danmcd
Weird. We've built multiple times (including the not-yet-but-soon release 20231116 build) w/o issue.
-
danmcd
Does this happen on a fresh-from-pull workspace?
-
neirac
danmcd I had and old smartos-live instance, let me remove everything and clone again