[ 
https://issues.apache.org/jira/browse/GUACAMOLE-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Couchman updated GUACAMOLE-2182:
-------------------------------------
    Priority: Minor  (was: Major)

> ../../config.h:290:9: error: '_XOPEN_SOURCE' redefined [-Werror]
> ----------------------------------------------------------------
>
>                 Key: GUACAMOLE-2182
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-2182
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-server
>    Affects Versions: 1.6.0
>         Environment: Fedora Rawhide (equals currently to 44), all hardware 
> architectures
>            Reporter: Robert Scheck
>            Priority: Minor
>
> Building guacamole-server 1.6.0 fails at least on Fedora Rawhide like this:
> {code:java}
> …
> /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. 
> -Werror -Wall -pedantic -O2 -flto=auto -ffat-lto-objects -fexceptions -g 
> -grecord-gcc-switches -pipe -Wall -Werror=format-security 
> -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS 
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection 
> -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer 
> -mno-omit-leaf-frame-pointer -c -o libguac_la-client.lo `test -f 'client.c' 
> || echo './'`client.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Werror -Wall -pedantic -O2 
> -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe 
> -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 
> -march=x86-64 -mtune=generic -fasynchronous-unwind-tables 
> -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 
> -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c client.c -fPIC -DPIC 
> -o .libs/libguac_la-client.o
> In file included from encode-png.h:23,
> from client.c:23:
> ../../config.h:290:9: error: '_XOPEN_SOURCE' redefined [-Werror]
> 290 | #define _XOPEN_SOURCE 700
> |^~~~~~~~~~~~~
> In file included from /usr/include/unistd.h:25,
> from guacamole/socket-fntypes.h:31,
> from guacamole/socket.h:31,
> from encode-jpeg.h:25,
> from client.c:22:
> /usr/include/features.h:234:10: note: this is the location of the previous 
> definition
> 234| # define _XOPEN_SOURCE 800|
> |^~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[3]: *** [Makefile:835: libguac_la-client.lo] Error 1
> make[3]: Leaving directory 
> '/builddir/build/BUILD/guacamole-server-1.6.0-build/guacamole-server-1.6.0/src/libguac'
> make[3]: Entering directory 
> '/builddir/build/BUILD/guacamole-server-1.6.0-build/guacamole-server-1.6.0/src/libguac'
> … {code}
> {{Maybe in configure.ac}}
> {code:java}
> AC_DEFINE([_XOPEN_SOURCE], [700], [Uses X/Open and POSIX APIs]){code}
> needs to be somehow conditionalized to handle a modern glibc better?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to