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 442384 - compilation problem in cygwin
compilation problem in cygwin
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.5.2
Other Cygwin
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2007-05-30 18:21 UTC by Hiroki Yagita
Modified: 2007-07-27 09:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hiroki Yagita 2007-05-30 18:21:05 UTC
Please describe the problem:
I happened compile and link error.
The original doxygen-1.5.2.src.tar.gz doesn't build in cygwin.


Steps to reproduce:
1. download the doxygen-1.5.2.src.tar.gz tar ball.
2. extract the tar ball.
3. ./configure win32-g++ && make    <--- failed.


Actual results:
I cannot compile it.

Expected results:


Does this happen every time?
Yes.

Other information:
I made a patch.


diff -uNr doxygen-1.5.2/configure doxygen-1.5.2.new/configure
--- doxygen-1.5.2/configure	2007-04-04 03:45:31.000000000 +0900
+++ doxygen-1.5.2.new/configure	2007-05-31 02:11:16.861358700 +0900
@@ -214,10 +214,7 @@
     UNIX_SV:4.2*)
       f_platform=unixware-g++
       ;;
-    Cygwin:*)
-      f_platform=win32-g++
-      ;;
-    CYGWIN:*)
+    Cygwin*|CYGWIN*)
       f_platform=win32-g++
       ;;
     *MiNT:*)
diff -uNr doxygen-1.5.2/src/doxygen.pro.in doxygen-1.5.2.new/src/doxygen.pro.in
--- doxygen-1.5.2/src/doxygen.pro.in	2007-02-21 03:27:35.000000000 +0900
+++ doxygen-1.5.2.new/src/doxygen.pro.in	2007-05-31 01:51:43.810462200 +0900
@@ -26,7 +26,7 @@
 win32-borland:LIBS         += qtools.lib png.lib md5.lib doxygen.lib doxycfg.lib shell32.lib 
 win32-borland:TMAKE_LFLAGS += -L..\lib -L$(BCB)\lib\psdk
 win32:TMAKE_CXXFLAGS       += -DQT_NODLL
-win32-g++:LIBS             = -L../lib -ldoxygen -ldoxycfg -lqtools -lpng -lmd5 
+win32-g++:LIBS             = -L../lib -ldoxygen -ldoxycfg -lqtools -lpng -lmd5 -liconv
 win32-g++:TMAKE_CXXFLAGS   += -fno-exceptions -fno-rtti
 INCLUDEPATH                += ../qtools ../libpng ../libmd5 .
 #win32-g++:INCLUDEPATH      -= ../libpng
diff -uNr doxygen-1.5.2/src/portable.cpp doxygen-1.5.2.new/src/portable.cpp
--- doxygen-1.5.2/src/portable.cpp	2007-03-14 01:58:17.000000000 +0900
+++ doxygen-1.5.2.new/src/portable.cpp	2007-05-31 01:58:38.140388700 +0900
@@ -373,7 +373,7 @@
 size_t portable_iconv (void *cd, const char** inbuf,  size_t *inbytesleft, 
                                        char** outbuf, size_t *outbytesleft)
 {
-#if (defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION==0x0109))
+#if (defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109))
 #define CASTNEEDED(x) (x)
 #else
 #define CASTNEEDED(x) (char **)(x)
Comment 1 Dimitri van Heesch 2007-07-24 16:57:23 UTC
Fixed should already by included in the latest CVS update.
Comment 2 Dimitri van Heesch 2007-07-27 09:22:43 UTC
This bug was marked ASSIGNED and as a result has been moved to the FIXED state with the release of 1.5.3, since I believe the bug has been fixed in this release. I kindly ask you to verify this and reopen the bug should this not be the case.