GNOME Bugzilla – Bug 442384
compilation problem in cygwin
Last modified: 2007-07-27 09:22:43 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)
Fixed should already by included in the latest CVS update.
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.