pkgsrc-Users archive

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

gtk3 vs. current: nearbyint



gtk3 doesn't build on -current.

config.log:
configure:21687: checking for nearbyint
configure:21687: gcc -std=gnu99 -o conftest -O2 -pthread -I/usr/pkg/include 
-I/usr/include -I/usr/pkg/include/freetype2 -Wall -DPREFIX="\"/usr/pkg\"" 
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread conftest.c -lm  -lintl  
>&5
conftest.c:76:6: warning: conflicting types for built-in function 'nearbyint'
/var/tmp//ccS8CZpZ.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `nearbyint'
configure:21687: $? = 1

work/gtk+-3.6.4/gtk/fallback-c89.c:
...
#ifndef HAVE_NEARBYINT
/* Workaround for nearbyint() for non-GCC/non-C99 compilers */
/* This is quite similar to rint() in most respects */

static inline double
nearbyint (double x)
{
  return floor (x + 0.5);
}
#endif

make:
In file included from gtkborderimage.c:38:0:
fallback-c89.c:63:1: error: static declaration of 'nearbyint' follows 
non-static declaration


Suggestions?


Home | Main Index | Thread Index | Old Index