pkgsrc-Bugs archive

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

pkg/46273: textproc/groff does not compile on Solaris with older compilers



>Number:         46273
>Category:       pkg
>Synopsis:       textproc/groff does not compile on Solaris with older compilers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 28 14:15:00 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Configuring text/groff on Solaris 10 using lang/gcc34 fails:

checking that header files support C++... no
configure: error: header files do not support C++
                   (if you are using a version of gcc/g++ earlier than 2.5,

more details in config.log:

cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not 
for C++
<command line>:1:1: warning: "_XOPEN_SOURCE" redefined
<built-in>:83:1: warning: this is the location of the previous definition
In file included from /usr/include/stdio.h:22,
                 from conftest.cpp:11:
/usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; 
UNIX 03 and POSIX.1-2001 applications      require
the use of c99"

Removing the recently added CFLAGS options for SunOS from Makefile lets this 
package compile again.

It's starting to get annoying to constantly remove the breakages one single 
committer introduces...
>How-To-Repeat:

>Fix:
Use the CFLAGS only on Solaris 11 or with GCC 4.



Home | Main Index | Thread Index | Old Index