Skip to content

Conversation

@stephanlachnit
Copy link
Contributor

@stephanlachnit
Copy link
Contributor Author

Interesting, for some reason the Ubuntu CI builds openssl, Windows fails due to a rather odd linking error and MacOS fails from ERROR: test_releases (__main__.TestReleases) (step='check_meson_version', name='openssl'), which I suspect has nothing to do with inih.

@eli-schwartz
Copy link
Member

Another PR was merged which breaks everything. We're waiting for the submitter to fix it!

@stephanlachnit
Copy link
Contributor Author

Another PR was merged which breaks everything. We're waiting for the submitter to fix it!

Figured, just ping me when I should rebase :)

@eli-schwartz
Copy link
Member

Alright, time to rebase. :)

@stephanlachnit
Copy link
Contributor Author

stephanlachnit commented Mar 22, 2022

Rebased. The VSC linking error still persists though...

[1/5] Compiling C object subprojects/inih-r53/inih-0.dll.p/ini.c.obj
[2/5] Linking target subprojects/inih-r53/inih-0.dll
[3/5] Generating symbol file subprojects/inih-r53/inih-0.dll.p/inih-0.dll.symbols
[4/5] Compiling C++ object subprojects/inih-r53/INIReader-0.dll.p/cpp_INIReader.cpp.obj
[5/5] Linking target subprojects/inih-r53/INIReader-0.dll
FAILED: subprojects/inih-r53/INIReader-0.dll subprojects/inih-r53/INIReader-0.pdb 
"link"  /MACHINE:x64 /OUT:subprojects/inih-r53/INIReader-0.dll subprojects/inih-r53/INIReader-0.dll.p/cpp_INIReader.cpp.obj "/nologo" "/release" "/nologo" "/DEBUG" "/PDB:subprojects\inih-r53\INIReader-0.pdb" "/DLL" "/IMPLIB:subprojects\inih-r53\INIReader.lib" "subprojects\inih-r53\inih.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
LINK : fatal error LNK1181: cannot open input file 'subprojects\inih-r53\inih.lib'

I guess this had to be the case before, I just don't quite get what the problem of the linker is. I don't see an issue in the meson.build wrt linking: https://github.com/benhoyt/inih/blob/r53/meson.build

I have no Windows experience, but I think subprojects\inih-r53\inih.lib should probably be subprojects/inih-r53/inih-0.dll or something - seems link a Meson/VSC bug to me?

Anyway, I think this should still be merged.

@eli-schwartz
Copy link
Member

Tachi107 added a commit to Tachi107/inih that referenced this pull request Mar 22, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
Tachi107 added a commit to Tachi107/inih that referenced this pull request Mar 22, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
Tachi107 added a commit to Tachi107/inih that referenced this pull request Mar 22, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
Tachi107 added a commit to Tachi107/inih that referenced this pull request Mar 22, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
Tachi107 added a commit to Tachi107/inih that referenced this pull request Mar 22, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
@stephanlachnit
Copy link
Contributor Author

Thanks, learned yet something again.

Can we still merge this anyway for r53? Since a half working version is still better than a non-working version.

@eli-schwartz
Copy link
Member

I would prefer to just ask for an r54 release. :)

benhoyt pushed a commit to benhoyt/inih that referenced this pull request Mar 23, 2022
They are required to properly build DLLs on Windows, and improve the
quality of shared objects on Linux.
See https://gcc.gnu.org/wiki/Visibility for details.

This issue was first discovered here:
mesonbuild/wrapdb#340 (comment)
@stephanlachnit stephanlachnit changed the title inih: Fix INIReader_dep to upper case inih: update to r54 Mar 23, 2022
@stephanlachnit
Copy link
Contributor Author

Alright, I changed this PR to r54 instead now.

Fixes a bug reported here: Tachi107/cloudflare-ddns#10 (comment)

Signed-off-by: Stephan Lachnit <[email protected]>
@eli-schwartz
Copy link
Member

Thanks!

@eli-schwartz eli-schwartz merged commit 0477552 into mesonbuild:master Mar 23, 2022
@Tachi107
Copy link
Contributor

Thanks everyone for the help :)

Tachi107 added a commit to Tachi107/cloudflare-ddns that referenced this pull request Mar 23, 2022
@stephanlachnit stephanlachnit deleted the p/inih-inireader-fix branch March 24, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants