-
Notifications
You must be signed in to change notification settings - Fork 496
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
Facter not working on AIX with FFI resolvers #2785
Comments
I think this is more of a "how to compile ffi with native extensions on AIX" than a facter issue. Using Ruby 3.3, if you do
|
Hello, thanks for the response. I get that it is ffi related. Facter now depends on ffi, which does not work out of the box on AIX, thus causing facter to not work properly on AIX as well. Which in turn causes puppet to not work on AIX. Hard to know where to log this issue as they are separate components that are related. Requested output:
The facter project has AIX as one of its supported platforms, the ffi project does not list such support. Is facter version 4 supposed to work on AIX? Do I need to ask for ffi project for assistance instead? Cheers, |
Describe the Bug
Facter not working on AIX with FFI resolvers, which prevents open source puppet from working
Expected Behavior
Facter and its dependent FFI to work on AIX, instead of failing with resolver errors. Puppet working properly.
Steps to Reproduce
Install the gems after prerequisite RPMs installed (as in the environment below):
Running facter then fails with FFI errors for networking facts:
And the execerror of the above errors:
Environment
AIX version:
AIX 7.3 TL2 SP2
Prerequisite RPMs installed (installed from AIX toolbox for open source applications - https://www.ibm.com/support/pages/node/882892) :
ruby-3.3.5
ruby-devel-3.3.5
libffi-3.4.4
libffi-devel-3.4.4
gcc10-10.3.0-6
GEMs:
thor-1.2.2.gem
facter-4.10.0.gem
ffi-1.17.1.gem
hocon-1.4.0.gem
Additional Context
We are currently forced to run facter version 2 on AIX - as facter version 4 introduces the dependency on FFI. Facter version 2 is very old now and we need to upgrade it, but we are unable to get it to work.
I have tried several different versions of facter (all on version 4) and different versions of ffi, but all have the same behaviour. I have also tried on AIX version 7.2 and 7.3, but neither work. I have tried an earlier version of ruby (3.1.4) as well, which still failed. I also tried using gcc compilers of version 8 and 10, same behaviour with either.
I have also tried to install ffi with --disable-system-libffi option to bypass the system libffi and use its own- it makes no difference, same error occurs when running facter.
The text was updated successfully, but these errors were encountered: