To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=42504 Issue #:|42504 Summary:|patch for build myspell latest mingw32 Component:|lingucomponent Version:|OOo 2.0 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|PATCH Priority:|P3 Subcomponent:|www Assigned to:|[EMAIL PROTECTED] Reported by:|tonal
------- Additional comments from [EMAIL PROTECTED] Fri Feb 11 02:47:40 -0800 2005 ------- ? source/spellcheck/myspell/dictmgr.cxx ? source/spellcheck/myspell/dictmgr.hxx Index: source/spellcheck/myspell/Makefile =================================================================== RCS file: /cvs/whiteboard/lingucomponent/source/spellcheck/myspell/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- source/spellcheck/myspell/Makefile 9 Mar 2004 12:40:54 -0000 1.9 +++ source/spellcheck/myspell/Makefile 11 Feb 2005 10:40:33 -0000 @@ -77,6 +77,22 @@ RANLIB=ranlib endif +ifeq "$(PLATFORM)" "MINGW32_NT-5.1" + CXX ?= g++ + CXXFLAGS ?= -O2 -Wall -ansi -pedantic -I. + CC = gcc + CFLAGS ?= -O2 -Wall -ansi -pedantic -I. + PICFLAGS = -fno-common + SHARED = -mdll -Wl,--export-all-symbols -s + SOSUFFIX = dll + SOPREFIX = lib + UNIXVERSIONING=NO + SONAME = -Wl,-h + LIBPATH = DYLD_LIBRARY_PATH + STATICLIB=libmyspell.a + AR=ar rc + RANLIB=ranlib +endif ifeq "$(UNIXVERSIONING)" "YES" @@ -97,8 +113,7 @@ # targets -all: example munch unmunch $(STATICLIB) - +all: example munch unmunch $(STATICLIB) $(SOLIBFULL) check: example $(LIBPATH)=. ./example en_US.aff en_US.dic checkme.lst Index: source/spellcheck/myspell/csutil.cxx =================================================================== RCS file: /cvs/whiteboard/lingucomponent/source/spellcheck/myspell/csutil.cxx,v retrieving revision 1.7 diff -u -r1.7 csutil.cxx --- source/spellcheck/myspell/csutil.cxx 9 Mar 2004 12:41:29 -0000 1.7 +++ source/spellcheck/myspell/csutil.cxx 11 Feb 2005 08:41:16 -0000 @@ -4092,7 +4092,7 @@ } } return ccs; -}; +} struct lang_map lang2enc[] = { @@ -4126,5 +4126,5 @@ } } return NULL; -}; +} Index: source/spellcheck/myspell/munch.c =================================================================== RCS file: /cvs/whiteboard/lingucomponent/source/spellcheck/myspell/munch.c,v retrieving revision 1.7 diff -u -r1.7 munch.c --- source/spellcheck/myspell/munch.c 26 Mar 2003 13:02:45 -0000 1.7 +++ source/spellcheck/myspell/munch.c 11 Feb 2005 08:56:04 -0000 @@ -11,8 +11,8 @@ #ifdef __linux__ #include <error.h> #include <errno.h> -#endif #include <sys/mman.h> +#endif #include "munch.h" Index: source/spellcheck/myspell/suggestmgr.cxx =================================================================== RCS file: /cvs/whiteboard/lingucomponent/source/spellcheck/myspell/suggestmgr.cxx,v retrieving revision 1.11 diff -u -r1.11 suggestmgr.cxx --- source/spellcheck/myspell/suggestmgr.cxx 13 Jul 2004 16:00:25 -0000 1.11 +++ source/spellcheck/myspell/suggestmgr.cxx 11 Feb 2005 08:40:25 -0000 @@ -116,7 +116,7 @@ for (int j = 0; j < nummap; j++) { if (strchr(maptable[j].set,c) != 0) { in_map = 1; - char * newword = strdup(word); + char * newword = mystrdup(word); for (int k = 0; k < maptable[j].len; k++) { *(newword + i) = *(maptable[j].set + k); ns = map_related(newword, (i+1), wlst, ns, maptable, nummap); @@ -403,7 +403,7 @@ int thresh = 0; char * mw = NULL; for (int sp = 1; sp < 4; sp++) { - mw = strdup(word); + mw = mystrdup(word); for (int k=sp; k < n; k+=4) *(mw + k) = '*'; thresh = thresh + ngram(n, word, mw, NGRAM_ANY_MISMATCH); free(mw); Index: source/spellcheck/myspell/unmunch.c =================================================================== RCS file: /cvs/whiteboard/lingucomponent/source/spellcheck/myspell/unmunch.c,v retrieving revision 1.7 diff -u -r1.7 unmunch.c --- source/spellcheck/myspell/unmunch.c 26 Mar 2003 13:02:49 -0000 1.7 +++ source/spellcheck/myspell/unmunch.c 11 Feb 2005 08:56:25 -0000 @@ -13,8 +13,8 @@ #ifdef __linux__ #include <error.h> #include <errno.h> -#endif #include <sys/mman.h> +#endif #include "unmunch.h" --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]