Bug 1467363 - /usr/include/stdsoap2.h includes removed <xlocale.h>
Summary: /usr/include/stdsoap2.h includes removed <xlocale.h>
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gsoap
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mattias Ellert
QA Contact: Fedora Extras Quality Assurance
URL: https://apps.fedoraproject.org/kosche...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-03 14:11 UTC by Petr Pisar
Modified: 2017-07-03 23:07 UTC (History)
2 users (show)

Fixed In Version: gsoap-2.8.48-2.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-03 23:07:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2017-07-03 14:11:35 UTC
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.