FreeRDP/FreeRDP — Issue #273: Compile error on Solaris
Author: sunds
Created: 2011-12-14 00:39:15+00:00
State: open

Recent change no longer compiles on Solaris 10. These macros do not appear in any Solaris include file.

[ 46%] Building C object libfreerdp-core/CMakeFiles/freerdp-core.dir/tcp.c.o
/export/home/sunds/FreeRDP/libfreerdp-core/tcp.c: In function `tcp_set_keep_alive_mode':
/export/home/sunds/FreeRDP/libfreerdp-core/tcp.c:281: error: `SOL_TCP' undeclared (first use in this function)
/export/home/sunds/FreeRDP/libfreerdp-core/tcp.c:281: error: (Each undeclared identifier is reported only once
/export/home/sunds/FreeRDP/libfreerdp-core/tcp.c:281: error: for each function it appears in.)
/export/home/sunds/FreeRDP/libfreerdp-core/tcp.c:281: error: `TCP_KEEPIDLE' undeclared (first use in this function)
*** Error code 1
The following command caused the error:
cd /export/home/sunds/FreeRDP/libfreerdp-core && /usr/sfw/bin/gcc -Dfreerdp_core_EXPORTS -DEXT_PATH=\"/usr/lib/freerdp/extensions\" -Wall -Wno-unused-but-set-variable -O2 -O3 -DNDEBUG -fPIC -I/export/home/sunds/FreeRDP -I/export/home/sunds/FreeRDP/include -I/opt/csw/include -o CMakeFiles/freerdp-core.dir/tcp.c.o -c /export/home/sunds/FreeRDP/libfreerdp-core/tcp.c
make: Fatal error: Command failed for target `libfreerdp-core/CMakeFiles/freerdp-core.dir/tcp.c.o'
Current working directory /export/home/sunds/FreeRDP
*** Error code 1
The following command caused the error:
make -f libfreerdp-core/CMakeFiles/freerdp-core.dir/build.make libfreerdp-core/CMakeFiles/freerdp-core.dir/build
make: Fatal error: Command failed for target `libfreerdp-core/CMakeFiles/freerdp-core.dir/all'
Current working directory /export/home/sunds/FreeRDP
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'