pkgsrc-Bugs archive

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

pkg/56034: devel/pkgconf fails to compile on Solaris 10u7 w/ SunStudio 12u1



>Number:         56034
>Category:       pkg
>Synopsis:       devel/pkgconf fails to compile on Solaris 10u7 w/ SunStudio 12u1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 04 17:05:01 +0000 2021
>Originator:     Malte Dehling
>Release:        pkgsrc-2020Q4
>Organization:
>Environment:
SunOS deuterium 5.10 Generic_139555-08 sun4u sparc sun4u
cc: Sun C 5.10 SunOS_sparc 2009/06/03

>Description:
Add USE_LANGUAGES=c99 to the Makefile (see pkg/56033), then try to compile.  This will fail with:

--- pkgconf ---
  CCLD     pkgconf
cc: Warning: Option -d=gnu99 passed to ld, if ld is invoked, ignored otherwise
ld: fatal: option -d has illegal argument `=gnu99'
ld: fatal: Flags processing errors
*** [pkgconf] Error code 1

>How-To-Repeat:

>Fix:
The problem is that the configure script detects that cc accepts -std=gnu99.  From config.log:

configure:3231: checking whether C compiler accepts -std=gnu99
configure:3250: cc -c -fast -Wall -Wextra -Wformat=2  -std=gnu99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE conftest.c >&5
cc: Warning: Option -d=gnu99 passed to ld, if ld is invoked, ignored otherwise
configure:3250: $? = 0
configure:3258: result: yes

I'm not sure what the best solution is.  A workaround is simply removing the relevant lines from the configure script.


Home | Main Index | Thread Index | Old Index