Bug 40327 - cmake "NMake Makefiles" generated, but does not work with 1.5.7-55
Summary: cmake "NMake Makefiles" generated, but does not work with 1.5.7-55
Status: RESOLVED NOTOURBUG
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.5
Hardware: All Windows (All)
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
: 40326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-23 13:55 UTC by rony
Modified: 2011-09-21 05:36 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description rony 2011-08-23 13:55:48 UTC
Trying to get the latest dbus 1.5.7-55 to compile under Windows, this time with
"cmake" on Windows XP, SP3.

Using cmake 2.8.5, set environment to Microsoft C compiler.

cmake creates all necessary files.

Doing "nmake" according to the instructions in "README.cmake" leads to
an error.


F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus-build-cmake-msc>cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYP
E=Debug -DLIBXML2_INCLUDE_DIR=e:\gnuwin32\include -DLIBXML2_LIBRARIES=e:\gnuwin32\lib\libxml2.dll.a -DDBUS_BUILD_TESTS=OFF -D
DBUS_ENABLE_XML_DOCS=OFF ../cmake
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1500
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: E:/Programme/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working C compiler: E:/Programme/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working CXX compiler: E:/Programme/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- FIXME set DBUS_BUILD_TIMESTAMP to current date or fix current time stamp generation for having actual build date in versio
n file info
-- Found LibXml2: e:/gnuwin32/lib/libxml2.dll.a
-- Looking for dirent.h
-- Looking for dirent.h - not found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for grp.h
-- Looking for grp.h - not found
-- Looking for sys/poll.h
-- Looking for sys/poll.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - not found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for ws2tcpip.h
-- Looking for ws2tcpip.h - found
-- Looking for wspiapi.h
-- Looking for wspiapi.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for sys/syslimits.h
-- Looking for sys/syslimits.h - not found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for backtrace
-- Looking for backtrace - not found.
-- Looking for getgrouplist
-- Looking for getgrouplist - not found.
-- Looking for getpeerucred
-- Looking for getpeerucred - not found.
-- Looking for nanosleep
-- Looking for nanosleep - not found.
-- Looking for getpwnam_r
-- Looking for getpwnam_r - not found.
-- Looking for setenv
-- Looking for setenv - not found.
-- Looking for unsetenv
-- Looking for unsetenv - not found.
-- Looking for clearenv
-- Looking for clearenv - not found.
-- Looking for writev
-- Looking for writev - not found.
-- Looking for setrlimit
-- Looking for setrlimit - not found.
-- Looking for socketpair
-- Looking for socketpair - not found.
-- Looking for socklen_t
-- Looking for socklen_t - not found.
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for strtoll
-- Looking for strtoll - not found.
-- Looking for strtoull
-- Looking for strtoull - not found.
-- Performing Test HAVE_CMSGCRED
-- Performing Test HAVE_CMSGCRED - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - done

set -DDBUS_INSTALL_SYSTEM_LIBS=1 to install runtime libraries too
set DBUSDIR (environment or cmake option) to overwrite the default install directory


                  D-BUS 1.5.7
                  ===========

        install prefix:           D:/Programme/dbus
        install exec_prefix:      D:/Programme/dbus
        install libdir:           D:/Programme/dbus/lib
        install bindir:           D:/Programme/dbus/bin
        install sysconfdir:       D:/Programme/dbus/etc
        install datadir:          D:/Programme/dbus/share
        source code location:     F:/work/git/dbus-temp/dbus-1.5.7-55-g3d170cc.tar/dbus-1.5.7/cmake/..
        build dir:                F:/work/git/dbus-temp/dbus-1.5.7-55-g3d170cc.tar/dbus-1.5.7/dbus-build-cmake-msc

        c compiler:               cl.exe
        cflags:                    /DWIN32 /D_WINDOWS /W3 /Zm1000
        cflags debug:             /D_DEBUG /MDd /Zi  /Ob0 /Od /RTC1   /FIconfig.h  /we4028 /we4013 /we4133 /we4047 /we4031 /w
e4002 /we4003 /we4114  /wd4127 /wd4090 /wd4101 /wd4244  -D_DEBUG
        cflags release:           /MD /O2 /Ob2 /D NDEBUG /FIconfig.h  /we4028 /we4013 /we4133 /we4047 /we4031 /we4002 /we4003
 /we4114  /wd4127 /wd4090 /wd4101 /wd4244
        cxx compiler:             cl.exe
        cxxflags:                  /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
        cxxflags debug:           /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
        cxxflags release:         /MD /O2 /Ob2 /D NDEBUG
        64-bit int:               long long
        32-bit int:               int
        16-bit int:               short
        Doxygen:                  DOXYGEN-NOTFOUND
        Docbook Generator:
        gcc coverage profiling:
        Building unit tests:      OFF
        Building verbose mode:    ON
        Building w/o assertions:  OFF
        Building w/o checks:      OFF
        Building bus stats API:   OFF
        installing system libs:   OFF
        Building Doxygen docs:
        Building XML docs:        OFF
        Using XML parser:         LibXML2
        Daemon executable name:   dbus-daemon
        System bus address:       nonce-tcp:
        Session bus address:      nonce-tcp:
        Test listen address:
        build timestamp:          20091231

NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance.
NOTE: building with assertions increases library size and decreases performance.

-- Configuring done
-- Generating done
-- Build files have been written to: F:/work/git/dbus-temp/dbus-1.5.7-55-g3d170cc.tar/dbus-1.5.7/dbus-build-cmake-msc

F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus-build-cmake-msc>
F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus-build-cmake-msc>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Scanning dependencies of target dbus-1
[  0%] Building C object dbus/CMakeFiles/dbus-1.dir/F_/work/git/dbus-temp/dbus-1.5.7-55-g3d170cc.tar/dbus-1.5.7/dbus/dbus-add
ress.obj
dbus-address.c
F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus/dbus-sysdeps.h(31) : fatal error C1083: Cannot open include
file: 'stdint.h': No such file or directory
NMAKE : fatal error U1077: 'E:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus-build-cmake-msc>
Comment 1 Ralf Habacker 2011-09-19 08:14:44 UTC
This problem could not be reproduced with git master using vc90 and cmake 2.8.x on windows. 

Because stdint.h is not available with msvc compilers, HAVE_STDINT_H is undefined in <build-root>/config.h 

-- Looking for stdint.h
-- Looking for stdint.h - not found

This error would occur, if stdint.h is in the compiler include path at configure time and not while make time, which is not supported.

in dbus-sysdeps.h including stdint.h is wrapped with 

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

which is undefined in this case. 

The error message
F:\work\git\dbus-temp\dbus-1.5.7-55-g3d170cc.tar\dbus-1.5.7\dbus/dbus-sysdeps.h(31): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory

indicates that there has been something modified in the sources.
Comment 2 rony 2011-09-19 12:27:11 UTC
Ralf, 

thank you very much for looking into this.

Started out with a new git from the master, but also made sure that my environment was not referencing cygwin, mingw, nor gnuwin32.

Doing so (and configuring libexpat), allowed me to create D-Bus in 32- bit on Windows and install it successfully!

Vielen herzlichen Dank!

---rony
Comment 3 Ralf Habacker 2011-09-21 05:36:36 UTC
*** Bug 40326 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.