-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
libmodbus: fix for cross compilation #57824
Conversation
@@ -8,6 8,11 @@ stdenv.mkDerivation rec { | |||
sha256 = "0drnil8bzd4n4qb0wv3ilm9zvypxvwmzd65w96d6kfm7x6q65j68"; | |||
}; | |||
|
|||
preConfigure = '' |
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.
should add a comment here
@@ -8,6 8,11 @@ stdenv.mkDerivation rec { | |||
sha256 = "0drnil8bzd4n4qb0wv3ilm9zvypxvwmzd65w96d6kfm7x6q65j68"; | |||
}; | |||
|
|||
preConfigure = '' | |||
export ac_cv_func_malloc_0_nonnull=yes |
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.
Same concern as #57825 (comment)
preConfigure = '' | ||
export ac_cv_func_malloc_0_nonnull=yes | ||
export ac_cv_func_realloc_0_nonnull=yes | ||
''; |
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.
Usually it is enough to pass this to configureFlags like this:
configureFlags = [
"ac_cv_func_realloc_0_nonnull=yes"
"ac_cv_func_malloc_0_nonnull=yes"
];
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.
yup, you were right!
fee5c11
to
bce7e3b
Compare
Motivation for this change
Currently:
this seems related: stephane/libmodbus#297
setting these variables fixing this error, even though it looks ugly.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)