pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43020: devel/scmgit-base: _XOPEN_SOURCE problem on DragonFly



>Number:         43020
>Category:       pkg
>Synopsis:       devel/scmgit-base: _XOPEN_SOURCE problem on DragonFly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 20 11:05:00 +0000 2010
>Originator:     YONETANI Tomokazu
>Release:        
>Organization:
>Environment:
DragonFly atom64 2.5.1-DEVELOPMENT DragonFly v2.5.1.995.g8af66-DEVELOPMENT #0: 
Wed Mar 17 07:02:46 JST 2010     y0netan1@atom64:/usr/obj/ATOM64  x86_64
>Description:
The current git source code doesn't know about DragonFly BSD, and it
defines _XOPEN_SOURCE to 600 for OSes unknown to it.
On recent DragonFly BSD, when _XOPEN_SOURCE is set to 600, some
 (POSIX-ly?) non-standard function prototype declarations are hidden
from the programs when GCC is operating in C99 mode (-std=gnu99).
With those symbols undefined (but not for configure script), the return
type of thems are assumed to be int.  It seems to be harmless on architectures
where sizeof(int)==sizeof(void *), but it's not the case on x86_64.
This only happens on DragonFly 2.3-DEVELOPMENTor later, and on earlier
versions those functions are exposed even with_XOPEN_SOURCE set, so it
wasn't a problem.  Same thing happened to FreeBSD, and it's been resolved
in git source by not defining it for defined(__FreeBSD__).

>How-To-Repeat:
Try building devel/scmgit-base on DragonFly 2.4-RELEASE or later and see
the warnings.  Note that this won't reproduce when you try to compile it
directly in ${WRKSRC}, as it's the pkgsrc wrapper script which adds the option
-std=gnu99 to GCC's command line.
>Fix:
Apply this patch on top of pkgsrc source code.  This shouldn't affect earlier 
releases of
DragonFly BSD, or any other OSes.

begin-base64 644 dfly-scmgit-base.patch.gz
H4sIAFSfpEsCA61UbW/bNhD+PP2KG1oUSWXJJEVSkrEO8WoXC5Y6wZwAGTBA4MvR1iZLgaWsy379
SDvZZqdNv4wfCL7c89zxn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