Project

General

Profile

Bug #1139

oident implementation breaks windows builds

Added by cpuesser almost 13 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Quassel Core
Target version:
Start date:
02/20/2012
Due date:
% Done:

100%

Estimated time:
Version:
0.8-pre
OS:
Windows

Description

The Windows build of the 0.8-beta1 does not compile
The error is the following:
[ 21%] Building CXX object src/core/CMakeFiles/mod_core.dir/oidentdconfiggenerator.cpp.obj
oidentdconfiggenerator.cpp
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'mode_t': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'prev_umask'
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'prev_umask': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'S_IXUSR': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'S_IWGRP': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'S_IXGRP': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'S_IWOTH': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C2065: 'S_IXOTH': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(105) : error C3861: "umask": Bezeichner wurde nicht gefunden.
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(107) : error C2065: 'prev_umask': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\oidentdconfiggenerator.cpp(107) : error C3861: "umask": Bezeichner wurde nicht gefunden.
NMAKE : fatal error U1077: "C:\PROGRA~2\MICROS~2.0\VC\bin\amd64\cl.exe": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"": Rückgabe-Code "0x2"
Stop.

Associated revisions

Revision 26ab99ec (diff)
Added by al over 12 years ago

let CMake check for umask()

Fixes #1139

Revision b2034ad5 (diff)
Added by al over 12 years ago

don't use umask on Windows

Fixes #1139

History

#1 Updated by cpuesser almost 13 years ago

Seems even like the whole module shouldn't be build under windows, as there is no oident build.
If it should be possible to build the config anyway i.e. for a linux router in the network the attached patch should work.

#2 Updated by cpuesser almost 13 years ago

Sorry, but in the first one the permissions for the umask were wrong.

#3 Updated by al over 12 years ago

  • Status changed from New to Assigned
  • Assignee set to al
  • % Done changed from 0 to 100

#4 Updated by Anonymous over 12 years ago

  • Status changed from Assigned to Resolved

#5 Updated by cpuesser over 12 years ago

  • Status changed from Resolved to Feedback

Sorry, but that doesn't fix the build,
umask is known under windows but there are two things.
At first umask is in windows deklared in the io.h
and the masks are named different under windows, so it doesn't build at all.

D:\Neuer Ordner\quassel\src\core\core.cpp(83) : error C2065: 'S_IRWXG': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\core.cpp(83) : error C2065: 'S_IRWXO': nichtdeklarierter Bezeichner
D:\Neuer Ordner\quassel\src\core\core.cpp(83) : error C3861: "umask": Bezeichner wurde nicht gefunden.

#6 Updated by Anonymous over 12 years ago

  • Status changed from Feedback to Resolved

#7 Updated by cpuesser over 12 years ago

Thank, builds and works.

Also available in: Atom PDF