Skip to content
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

VS16 has /DEFAULTLIB:"MSVCRTD" on windows.php.net #5

Closed
Jan-E opened this issue Jul 21, 2019 · 7 comments
Closed

VS16 has /DEFAULTLIB:"MSVCRTD" on windows.php.net #5

Jan-E opened this issue Jul 21, 2019 · 7 comments
Assignees

Comments

@Jan-E
Copy link

Jan-E commented Jul 21, 2019

The downloads of wineditline-2.205 at https://windows.php.net/downloads/php-sdk/deps/vs16 contain a edit_a.lib with
/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRTD" /DEFAULTLIB:"OLDNAMES"
This ia triggering a conflicting a DEFAULTLIB warning when building PHP 7.4 release versions.
Please recompile with MSVCRT in stead of MSVCRTD.

@Jan-E
Copy link
Author

Jan-E commented Jul 21, 2019

@weltling @cmb69
These are the scripts I used for a MSVCRT compilation:

if exist CMakeCache.txt del CMakeCache.txt
if exist CMakeFiles rd CMakeFiles /s /q
cmake -G "Visual Studio 16 2019" -A Win32 .
perl -pi.bak -e "s/\/ObjectFileName>/\/ObjectFileName><ProgramDataBaseFileName>\$\(OutDir)\$\(TargetName).pdb<\/ProgramDataBaseFileName>/gi" edit_a.vcxproj
msbuild Project.sln -t:Build -p:Configuration=RelWithDebInfo -p:Platform=Win32

and

if exist CMakeCache.txt del CMakeCache.txt
if exist CMakeFiles rd CMakeFiles /s /q
cmake -G "Visual Studio 16 2019" -A x64 .
perl -pi.bak -e "s/\/ObjectFileName>/\/ObjectFileName><ProgramDataBaseFileName>\$\(OutDir)\$\(TargetName).pdb<\/ProgramDataBaseFileName>/gi" edit_a.vcxproj
msbuild Project.sln -t:Build -p:Configuration=RelWithDebInfo -p:Platform=x64

To be executed in the wineditline\src directory. The pecl line is a adjustment of the Cmake generated (RelWithDebInfo) edit_a.vcxproj to make sure that edit_a.pdb is created alongside of edit_a.lib

@cmb69
Copy link
Contributor

cmb69 commented Jul 21, 2019

Indeed, a bad build. Thank for reporting!

@cmb69 cmb69 self-assigned this Jul 21, 2019
@Jan-E
Copy link
Author

Jan-E commented Jul 21, 2019

Just wondering: I did not see a defaultlib warning in the snaps builds. Do they use other libs?

@cmb69
Copy link
Contributor

cmb69 commented Jul 21, 2019

Hmm, the warnings are there, e.g. in https://windows.php.net/downloads/snaps/php-7.4/r30de357/logs/make-nts-windows-vs16-x64-r30de357.txt (search for MSVCRTD).

@Jan-E
Copy link
Author

Jan-E commented Jul 21, 2019

OK. I must have been looking with my nose.

@Jan-E Jan-E closed this as completed Jul 21, 2019
@cmb69
Copy link
Contributor

cmb69 commented Jul 21, 2019

The new packages (2.205-1) are now available.

@Jan-E
Copy link
Author

Jan-E commented Jul 21, 2019

Thx. But no need to replace my own compiled version ;-)

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

No branches or pull requests

2 participants