pkgsrc-Bugs archive

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

pkg/36356: x11/kdelibs3 fails to build with gcc-4.1.1 on Sparc Solaris 10



>Number:         36356
>Category:       pkg
>Synopsis:       x11/kdelibs3 fails to build with gcc-4.1.1 on Sparc Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 18 00:15:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-36 sun4u sparc SUNW,Ultra-5_10
>Description:
x11/kdelibs3 fails to build with gcc-4.1.1 on Sparc Solaris 10 with the 
following error message:

if /bin/ksh ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H 
-I. -I. -I.. -I../dcop -I../kdecore -I../kio/kssl -I. -I/opt/pkg/include 
-I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore 
-I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. 
-I/opt/pkg/qt3/include -I/usr/openwin/include -I/opt/pkg/include 
-I/opt/pkg/include -I/usr/openwin/include  -mt -DQT_THREAD_SUPPORT 
-DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/krb5 
-I/opt/pkg/include/db4 -I/opt/pkg/qt3/include -DGLX_GLXEXT_LEGACY 
-I/opt/pkg/include/freetype2 -I/usr/include -D_REENTRANT 
-D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wno-long-long -Wundef -Wall 
-W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O -I/opt/pkg/include 
-I/opt/pkg/include/krb5 -I/opt/pkg/include/db4 -I/opt/pkg/qt3/include 
-DGLX_GLXEXT_LEGACY -I/opt/pkg/include/freetype2 -I/usr/include 
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -
 DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT operations.lo -MD -MP -MF 
".deps/operations.Tpo" -c -o operations.lo operations.cpp; \
        then mv -f ".deps/operations.Tpo" ".deps/operations.Plo"; else rm -f 
".deps/operations.Tpo"; exit 1; fi
operations.cpp: In function 'bool KJS::isInf(double)':
operations.cpp:70: error: 'isinf' was not declared in this scope
operations.cpp: In function 'bool KJS::isPosInf(double)':
operations.cpp:83: error: 'isinf' was not declared in this scope
operations.cpp: In function 'bool KJS::isNegInf(double)':
operations.cpp:96: error: 'isinf' was not declared in this scope

...

gmake[3]: *** [operations.lo] Error 1
gmake[3]: Leaving directory 
`/opt/pkg.obj/x11/kdelibs3/work.ultra10/kdelibs-3.5.6/kjs'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/opt/pkg.obj/x11/kdelibs3/work.ultra10/kdelibs-3.5.6/kjs'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/opt/pkg.obj/x11/kdelibs3/work.ultra10/kdelibs-3.5.6'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/x11/kdelibs3
*** Error code 1


>How-To-Repeat:

>Fix:
It looks like the function isinf is missing a prototype on Solaris 10. Adding 
the following prototype to file operations.cpp fixes the problem:

int isinf(double);




Home | Main Index | Thread Index | Old Index