Skip to content

Add strftime* for illumos. #4453

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented May 11, 2025

ref

Fixes: #4449

@rustbot
Copy link
Collaborator

rustbot commented May 11, 2025

Some changes occurred in solarish module

cc @jclulow, @pfmooney

@tgross35 tgross35 changed the title Fix GH-4449: adding strftime* for illumos. Add strftime* for illumos. May 12, 2025
@psumbera
Copy link
Contributor

Any chance to get this added also for Solaris? This should be common for both Illumos and Solaris.

@devnexen devnexen force-pushed the gh4449 branch 2 times, most recently from eed2acb to 40673d5 Compare May 13, 2025 18:13
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is a Solaris test failure, does this need a different link name or something?

bad strftime function pointer: rust: 140736400656704 (0x7fffbf2b0940) != c 140736400656800 (0x7fffbf2b09a0)

@devnexen
Copy link
Contributor Author

Seems like it, I ll have a look later today.

@devnexen devnexen marked this pull request as draft May 14, 2025 12:06
@@ -3202,6 +3202,21 @@ extern "C" {
pub fn arc4random_uniform(upper_bound: u32) -> u32;

pub fn secure_getenv(name: *const c_char) -> *mut c_char;

#[link_name = "__xpg4_strftime"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this unconditionally for both Solaris and illumos is going to break the latter, I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in fact I m just trying to see if it fixes solaris case :) thus this PR being a draft for now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfmooney would you be able to check the current version?

@devnexen devnexen force-pushed the gh4449 branch 2 times, most recently from 283f069 to 237d749 Compare May 14, 2025 20:02
@devnexen devnexen marked this pull request as ready for review May 14, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing strftime on Illumos
5 participants