[X2Go-Dev] Bug#412: imake issues

Orion Poplawski orion at cora.nwra.com
Fri Jan 24 22:01:02 CET 2014


Package: nx-libs
Version: 3.5.0.22

The imake in 3.5.0.22 does not compile in current Fedora rawhide due to the
use of -Werror=format-security:

make[4]: Entering directory
`/builddir/build/BUILD/nx-libs-3.5.0.22/nx-X11/config/imake'
gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard    -I../../include
-I../../exports/include/X11  -I../.. -I../../exports/include   -Dlinux
-D__arm__ -D__arm32__ -U__arm -Uarm -D_POSIX_C_SOURCE=199309L 			
-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE
                   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				
-D_GNU_SOURCE 				  -DFUNCPROTO=15 -DNARROWPROTO     -DCPP_PROGRAM="\"cpp\""
-DHAS_MERGE_CONSTANTS=`if gcc -fmerge-constants -xc /dev/null -S -o /dev/null
2> /dev/null 1> /dev/null; then echo 1; else echo 0; fi` 	  -DMONOLITH   -c -o
imake.o imake.c
imake.c: In function 'get_libc_version':
imake.c:1018:5: error: format not a string literal and no format arguments
[-Werror=format-security]
     fprintf (inFile, command);
     ^
imake.c: In function 'get_ld_version':
imake.c:1135:5: warning: ignoring return value of 'fscanf', declared with
attribute warn_unused_result [-Wunused-result]
     (void) fscanf (ldprog, "%d.%d", &ldmajor, &ldminor);
     ^
imake.c: In function 'ReadLine':
imake.c:1998:12: warning: ignoring return value of 'ftruncate', declared with
attribute warn_unused_result [-Wunused-result]
   ftruncate(fileno(tmpfd), (off_t) 0);
            ^
cc1: some warnings being treated as errors
make[4]: *** [imake.o] Error 1

Ideally, I would like to avoid building a local imake altogether and just use
the system imake, but I have been unable to figure out how to do that yet.

In the meantime, I'm patching imake.c as attached to bring it up to the
version that is in Fedora Rawhide.


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nx-libs-imake.patch
Type: text/x-patch
Size: 29437 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20140124/6da4a5f4/attachment.bin>


More information about the x2go-dev mailing list