pkgsrc-Bugs archive

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

pkg/37206: databases/sqlite3 fails to build on SPARC Solaris with gcc-4.2.2



>Number:         37206
>Category:       pkg
>Synopsis:       databases/sqlite3 fails to build on SPARC Solaris with 
>gcc-4.2.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 25 12:35:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-5_10
>Description:
The following error is produced

===> Building for sqlite3-3.4.2
gcc -O -I/opt/pkg/include -o lemon ./tool/lemon.c
./tool/lemon.c:111: error: redeclaration of enumerator 'B_FALSE'
/usr/include/sys/types.h:176: error: previous definition of 'B_FALSE' was here
./tool/lemon.c:111: error: redeclaration of enumerator 'B_TRUE'
/usr/include/sys/types.h:176: error: previous definition of 'B_TRUE' was here
gmake: *** [lemon] Error 1
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/databases/sqlite3
*** Error code 1

>How-To-Repeat:

>Fix:
lookes like boolan B_TRUE and B_FALSE are already defined on Solaris in 
/usr/include/sys/types.h

Fix is to edit lemon.c file and change every B_TRUE/B_FALSE to 
BOOL_TRUE/BOOL_FALSE




Home | Main Index | Thread Index | Old Index