After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 159672 - log2() function already defined under cygwin
log2() function already defined under cygwin
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.6.x
Other Windows
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2004-11-28 00:36 UTC by Márton Németh
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
disable function log2() if already defined (362 bytes, patch)
2004-11-28 00:37 UTC, Márton Németh
none Details | Review
Packages installed under cygwin (10.17 KB, text/plain)
2004-11-28 00:40 UTC, Márton Németh
  Details

Description Márton Németh 2004-11-28 00:36:52 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
Comment 1 Márton Németh 2004-11-28 00:37:57 UTC
Created attachment 34202 [details] [review]
disable function log2() if already defined
Comment 2 Márton Németh 2004-11-28 00:40:37 UTC
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.
Comment 3 Paolo Bacchilega 2004-11-28 09:23:15 UTC
patch applied.