Bug 1467363 - /usr/include/stdsoap2.h includes removed <xlocale.h>
/usr/include/stdsoap2.h includes removed <xlocale.h>
Product: Fedora
Classification: Fedora
Component: gsoap (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Mattias Ellert
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-03 10:11 EDT by Petr Pisar
Modified: 2017-07-03 19:07 EDT (History)
2 users (show)

See Also:
Fixed In Version: gsoap-2.8.48-2.fc27
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-07-03 19:07:01 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Petr Pisar 2017-07-03 10:11:35 EDT
gsoap-devel-2.8.48-1.fc27 delivers /usr/include/stdsoap2.h that includes <xlocale.h> that was removed from glibc-2.25.90-8. The removal was intentional.

The xlocale.h is included with this condition:

#  if defined(HAVE_XLOCALE_H)
#   include <xlocale.h>
#  else

But the HAVE_XLOCALE_H is wrongly set with this code:

# elif defined(__GLIBC__) || defined(__GNU__)
#  if !defined(__GNUC__) || __GNUC__ >= 4 /* gcc 3 and earlier often refuse to compile _l functions */
#   define HAVE_XLOCALE_H
#  endif

In other words it's always includes if GCC >= 4 is used.

This prevents from building lcgdm package:

cc -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 -m64 -mtune=generic -fno-strict-aliasing -fno-tree-sink -fPIC -D_LARGEFILE64_SOURCE -g -I../h -I/usr/include -pthread -DCTHREAD_LINUX -D_THREAD_SAFE -D_REENTRANT -DLOGFILE=\"/usr/var/log/lfc-dli/log\" -DWITH_IPV6   -c -o dli.o dli.c
In file included from dliStub.h:18:0,
                 from dliH.h:16,
                 from dli.c:20:
/usr/include/stdsoap2.h:684:13: fatal error: xlocale.h: No such file or directory
 #   include <xlocale.h>
compilation terminated.
make[1]: *** [<builtin>: dli.o] Error 1
make[1]: Leaving directory '/home/test/fedora/lcgdm/lcgdm-1.9.0/lfc-mysql/lcgdm-1.9.0/dli'

Please stop including HAVE_XLOCALE_H.

Note You need to log in before you can comment on or make changes to this bug.