Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2021, 04:15 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 654
Default Cmake Error

I am having trouble getting cmake to configure and generate. TBH it has been several years since I last tried to compile the source code and I suspect a few things may have changed. Here is some system information which people usually ask for.

Windows 7 x64
Cmake v3.21.3 x86
Mariadb v10.4.11.0 x64
ActivePerl v5.12.4 Build 1205 x86
Visual Studio 2019 v2.11.40.25675

Not sure if this is just a config issue or if I have completely missed a step. Below is the Cmake error log.

Code:
Determining if the include file sys/sdt.h exists failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_c1e64.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  CheckIncludeFile.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c1e64.dir\Debug\\" /Fd"cmTC_c1e64.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'sys/sdt.h': No such file or directory [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c1e64.vcxproj]




Determining if the include file unistd.h exists failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_a0053.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  CheckIncludeFile.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_a0053.dir\Debug\\" /Fd"cmTC_a0053.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_a0053.vcxproj]




Determining size of off64_t failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_250e9.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  OFF64_T.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D _LARGEFILE64_SOURCE=1 /D __USE_LARGEFILE64 /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_250e9.dir\Debug\\" /Fd"cmTC_250e9.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c(29,12): error C2065: 'off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_250e9.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c(30,12): error C2065: 'off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_250e9.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c(31,12): error C2065: 'off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_250e9.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c(32,12): error C2065: 'off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_250e9.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\OFF64_T.c(33,12): error C2065: 'off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_250e9.vcxproj]



D:/Everquest/SVN/Server Binaries/CMakeFiles/CheckTypeSize/OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__PPC64__)
# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__PPC__)
# define KEY '_','_','P','P','C','_','_'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(off64_t))
static char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining size of _off64_t failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_10b4c.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  _OFF64_T.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D _LARGEFILE64_SOURCE=1 /D __USE_LARGEFILE64 /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_10b4c.dir\Debug\\" /Fd"cmTC_10b4c.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c(29,12): error C2065: '_off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_10b4c.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c(30,12): error C2065: '_off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_10b4c.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c(31,12): error C2065: '_off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_10b4c.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c(32,12): error C2065: '_off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_10b4c.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\_OFF64_T.c(33,12): error C2065: '_off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_10b4c.vcxproj]



D:/Everquest/SVN/Server Binaries/CMakeFiles/CheckTypeSize/_OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__PPC64__)
# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__PPC__)
# define KEY '_','_','P','P','C','_','_'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(_off64_t))
static char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining size of __off64_t failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_c637d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  __OFF64_T.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D _LARGEFILE64_SOURCE=1 /D __USE_LARGEFILE64 /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c637d.dir\Debug\\" /Fd"cmTC_c637d.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c(29,12): error C2065: '__off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c637d.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c(30,12): error C2065: '__off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c637d.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c(31,12): error C2065: '__off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c637d.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c(32,12): error C2065: '__off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c637d.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CheckTypeSize\__OFF64_T.c(33,12): error C2065: '__off64_t': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_c637d.vcxproj]



D:/Everquest/SVN/Server Binaries/CMakeFiles/CheckTypeSize/__OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__PPC64__)
# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__PPC__)
# define KEY '_','_','P','P','C','_','_'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif

#define SIZE (sizeof(__off64_t))
static char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}


Determining if the function fseeko exists failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_9c123.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  CheckFunctionExists.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=fseeko /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_9c123.dir\Debug\\" /Fd"cmTC_9c123.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.21\Modules\CheckFunctionExists.c"

CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_9c123.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\Debug\cmTC_9c123.exe : fatal error LNK1120: 1 unresolved externals [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_9c123.vcxproj]




Performing C SOURCE FILE Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_ad260.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  src.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D HAVE_ATTRIBUTE_VISIBILITY_HIDDEN /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_ad260.dir\Debug\\" /Fd"cmTC_ad260.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing ')' before '(' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2091: function returns function [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing ')' before 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing '{' before 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2059: syntax error: 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2059: syntax error: ')' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_ad260.vcxproj]



Source file was:
#define Z_INTERNAL __attribute__((visibility ("hidden")))
    int Z_INTERNAL foo;
    int main() {
        return 0;
    }
Performing C SOURCE FILE Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_e8e05.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  src.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D HAVE_ATTRIBUTE_VISIBILITY_INTERNAL /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e8e05.dir\Debug\\" /Fd"cmTC_e8e05.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing ')' before '(' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2091: function returns function [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing ')' before 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2143: syntax error: missing '{' before 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2059: syntax error: 'string' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(2,9): error C2059: syntax error: ')' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_e8e05.vcxproj]



Source file was:
#define Z_INTERNAL __attribute__((visibility ("internal")))
    int Z_INTERNAL foo;
    int main() {
        return 0;
    }
Performing C SOURCE FILE Test HAVE_BUILTIN_CTZ failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_cbf66.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  src.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D HAVE_BUILTIN_CTZ /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_cbf66.dir\Debug\\" /Fd"cmTC_cbf66.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(3,34): warning C4013: '__builtin_ctz' undefined; assuming extern returning int [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_cbf66.vcxproj]

src.obj : error LNK2019: unresolved external symbol __builtin_ctz referenced in function main [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_cbf66.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\Debug\cmTC_cbf66.exe : fatal error LNK1120: 1 unresolved externals [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_cbf66.vcxproj]



Source file was:
int main(void) {
        unsigned int zero = 0;
        long test = __builtin_ctz(zero);
        (void)test;
        return 0;
    }
Performing C SOURCE FILE Test HAVE_BUILTIN_CTZLL failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_75201.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  src.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D HAVE_BUILTIN_CTZLL /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_75201.dir\Debug\\" /Fd"cmTC_75201.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(3,36): warning C4013: '__builtin_ctzll' undefined; assuming extern returning int [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_75201.vcxproj]

src.obj : error LNK2019: unresolved external symbol __builtin_ctzll referenced in function main [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_75201.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\Debug\cmTC_75201.exe : fatal error LNK1120: 1 unresolved externals [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_75201.vcxproj]



Source file was:
int main(void) {
        unsigned int zero = 0;
        long test = __builtin_ctzll(zero);
        (void)test;
        return 0;
    }
Performing C SOURCE FILE Test HAVE_SSE42CRC_INLINE_ASM failed with the following output:
Change Dir: D:/Everquest/SVN/Server Binaries/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_918d2.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.



  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30136 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  src.c

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D ZLIB_DEBUG /D HAVE_SSE42CRC_INLINE_ASM /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_918d2.dir\Debug\\" /Fd"cmTC_918d2.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c"

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,15): error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,25): error C2065: 'mov': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,25): error C2146: syntax error: missing ';' before identifier 'edx' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,28): error C2065: 'edx': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,32): error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,38): error C2146: syntax error: missing ';' before identifier 'mov' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,42): error C2065: 'mov': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,42): error C2146: syntax error: missing ';' before identifier 'eax' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,45): error C2065: 'eax': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,51): error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,57): error C2146: syntax error: missing ';' before identifier 'crc32' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,63): error C2065: 'crc32': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,63): error C2146: syntax error: missing ';' before identifier 'eax' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,66): error C2065: 'eax': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,72): error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,78): error C2065: 'edx': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,78): error C2146: syntax error: missing ';' before identifier 'mov' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,82): error C2065: 'mov': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,82): error C2146: syntax error: missing ';' before identifier 'val' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,91): error C2065: 'eax': undeclared identifier [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]

D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\src.c(4,91): error C2143: syntax error: missing ';' before '}' [D:\Everquest\SVN\Server Binaries\CMakeFiles\CMakeTmp\cmTC_918d2.vcxproj]



Source file was:
int main(void) {
            unsigned val = 0, h = 0;
        #if defined(_MSC_VER)
            { __asm mov edx, h __asm mov eax, val __asm crc32 eax, edx __asm mov val, eax }
        #else
            __asm__ __volatile__ ( "crc32 %1,%0" : "+r" (h) : "r" (val) );
        #endif
            return (int)h;
        }
Any help would be greatly appreciated. Thanks in advance.
Reply With Quote
  #2  
Old 12-07-2021, 10:06 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 654
Default

Finally solved this problem. I was missing a couple of sub modules. Not sure why it did not pull those down with everything else.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:32 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3