GNOME Bugzilla – Bug 159672
log2() function already defined under cygwin
Last modified: 2004-12-22 21:47:04 UTC
# ./configure # make ... gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -DORBIT2=1 -I/usr/include/glib-2. 0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/incl ude/freetype2 -I/opt/cxclient/usr/X11R6/include -I/usr/include/libgnome-2.0 -I/u sr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/ include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-act ivation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/u sr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/u sr/include/gnome-vfs-module-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgn omeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -DGTHUMB_MODULEDIR=\"/usr/local/ lib/gthumb/modules\" -DGTHUMB_GLADEDIR=\"/usr/local/share/gthumb/glade\" -g -O2 -MT print-callbacks.lo -MD -MP -MF .deps/print-callbacks.Tpo -c print-callbacks. c -DPIC -o .libs/print-callbacks.o print-callbacks.c:2017: error: parse error before '/' token make[3]: *** [print-callbacks.lo] Error 1 make[3]: Leaving directory `/cygdrive/c/users/Nevek/marci/src/gthumb-2.6.1/libgt humb' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/cygdrive/c/users/Nevek/marci/src/gthumb-2.6.1/libgt humb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdrive/c/users/Nevek/marci/src/gthumb-2.6.1' make: *** [all] Error 2 --- gthumb-2.6.1.orig/libgthumb/print-callbacks.c 2004-11-20 21:26:56.000000000 +0100 +++ gthumb-2.6.1/libgthumb/print-callbacks.c 2004-11-28 01:19:28.000000000 +0100 @@ -2014,11 +2014,13 @@ #define IMAGE_SPACE 36 +#ifndef log2 static double log2 (double x) { g_print ("%f / %f\n", log(x), log(2)); return log(x) / log(2); } +#endif static void
Created attachment 34202 [details] [review] disable function log2() if already defined
Created attachment 34205 [details] Packages installed under cygwin This is the output of "cygcheck -c". This is not a minimal package list to compile gThumb, but it almost works.
patch applied.