Bug report #4585

Building QGIS 1.7.2 fails on SLES 11

Added by Otto Dassau over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Build/Install
Affected QGIS version: Regression?:No
Operating System:SLES 11 Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:14492

Description

Hi,

QGIS 1.7.1 and 1.7.2 doesn't build (1.7.0 was ok) on SLES 11 anymore. Any help is welcome. Below you find the CMakeError.log:

Regards
Otto

  1. CMakeError.log #########
Determining if the function openpty exists failed with the following output:
Change Dir: /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" 
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o
/usr/bin/gcc   -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g   -DCHECK_FUNCTION_EXISTS=openpty   -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/gcc   -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g   -DCHECK_FUNCTION_EXISTS=openpty  -fPIC CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o cmTryCompileExec -rdynamic 
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o: In function `main':
/usr/share/cmake/Modules/CheckFunctionExists.c:11: undefined reference to `openpty'
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" 
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o
/usr/bin/gcc   -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g    -I/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/util.h   -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o   -c /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: 'Q_WS_WIN' undeclared (first use in this function)
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

File /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef Q_WS_WIN
  cmakeRequireSymbol(0,&Q_WS_WIN);
#endif
  return 0;
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" 
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o
/usr/bin/gcc   -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g    -I/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/util.h   -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o   -c /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: 'Q_WS_QWS' undeclared (first use in this function)
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

File /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef Q_WS_QWS
  cmakeRequireSymbol(0,&Q_WS_QWS);
#endif
  return 0;
}

Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" 
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o
/usr/bin/gcc   -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g    -I/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/util.h   -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o   -c /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: 'Q_WS_MAC' undeclared (first use in this function)
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

File /usr/src/packages/BUILD/qgis-1.7.2/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef Q_WS_MAC
  cmakeRequireSymbol(0,&Q_WS_MAC);
#endif
  return 0;
}

History

#1 Updated by Otto Dassau over 9 years ago

  • Resolution set to fixed
  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Hi,

this ticket is fixed. QGIS 1.7.3 builds again with SLES_11

Regards
Otto

Also available in: Atom PDF