cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3494968 ] CMake: list_spaces_append_once fails with spaces in filename

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 04 Mar 2012 14:42:57 -0800

Bugs item #3494968, was opened at 2012-02-27 03:12
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3494968&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: portability problem
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: theret (theret)
Assigned to: Daniel Stenberg (bagder)
Summary: CMake: list_spaces_append_once fails with spaces in filename

Initial Comment:
This is to confirm bug 3413233. Patch attached.

Curl version: 7.24.0
OS: Windows XP 32-bit, Windows 7 64-bit (any Windows with MSVC)
CMake version: 2.8.7

Windows standard libraries are located in C:/Program Files/Microsoft SDKs/[...]. They are already included in the default MSVC LIBPATH. Hence, find_library(WSOCK32_LIBRARY wsock32) and find_library(WS2_32_LIBRARY ws2_32) are not needed. They return the full path to the libraries including spaces. Of course, list_spaces_append_once will mangle the result and the build fails. Here is the build log from MSVC or SDK command prompt:

cd curl-7.24.0
mkdir build
cd build

cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=z:\software -DCMAKE_BUILD_TYPE=Release -DCURL_ZLIB=OFF -DCMAKE_USE_OPENSSL=OFF ..

nmake VERBOSE=1

Linking C shared library ..\libcurl.dll
        cd Z:\software\src\curl-7.24.0\build\lib
        "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E vs_link_dll C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\libcurl.dir\objects1.rsp @C:\Users\drno\AppData\Local\Temp\nm1C79.tmp
Visual Studio Non-Incremental Link
LINK:
C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\libcurl.dir\objects1.rsp /out:..\libcurl.dll /implib:..\libcurl_imp.lib /pdb:Z:\software\src\curl-7.24.0\build\lib\..\libcurl.pdb /dll /version:0.0 /STACK:10000000 /machine:x64 /INCREMENTAL:NO winmm.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib C:/Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64/WSock32.Lib SDKs/Windows/v7.1/Lib/x64/WS2_32.Lib C:/Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64/WSock32.Lib C:/Program Files/Microsoft SDKs/Windows/v7.1/Lib/x64/WS2_32.Lib /MANIFEST
LINK : fatal error LNK1181: cannot open input file 'C:/Program.obj'
LINK failed. with 1181
NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"' :
return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-03-04 14:42

Message:
Thanks for the report and the patch!

If you give me your name + email I'll give you proper credit when
committing this!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3494968&group_id=976
Received on 2012-03-04

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET