pan-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-devel] Building PAN on Windows


From: DPA
Subject: Re: [Pan-devel] Building PAN on Windows
Date: Wed, 08 Feb 2006 23:36:57 -0500
User-agent: Thunderbird 1.5 (Windows/20051201)

Ok ignore my earlier email here is an update, after adding #include <stdio.h> and properly following all the instructions properly ;-) I got past the first set of errors and then got this:

$ make
make  all-recursive
make[1]: Entering directory `/home/Darren/pan'
Making all in po
make[2]: Entering directory `/home/Darren/pan/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Darren/pan/po'
Making all in gmime
make[2]: Entering directory `/home/Darren/pan/gmime'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmime -IC:/msys/1.0/opt/gtk/include/glib-2.0 -IC:/msys/1.0/opt/gtk/lib/glib-2.0/include -IC:/msys/1.0/opt/pcre/include -I/c/mingw/include -DWINDOWS -DWIN32 -I/opt/gtk/include -I/c/mingw/include -DWINDOWS -DWIN32 -I/opt/gtk/include -mwindows -mno-cygwin -mms-bitfields -I. -mms-bitfields -mwin32 -mwindows -MT gmime-parser.o -MD -MP -MF ".deps/gmime-parser.Tpo" \ -c -o gmime-parser.o `test -f 'gmime-parser.c' || echo './'`gmime-parser.c; \
then mv ".deps/gmime-parser.Tpo" ".deps/gmime-parser.Po"; \
else rm -f ".deps/gmime-parser.Tpo"; exit 1; \
fi
In file included from gmime-parser.c:30:
C:/msys/1.0/opt/pcre/include/pcreposix.h:112: error: syntax error before "int" C:/msys/1.0/opt/pcre/include/pcreposix.h:113: error: syntax error before "int" C:/msys/1.0/opt/pcre/include/pcreposix.h:114: error: syntax error before "size_t" C:/msys/1.0/opt/pcre/include/pcreposix.h:115: error: syntax error before "void"
In file included from gmime-stream.h:35,
                from gmime-object.h:37,
                from gmime-parser.h:36,
                from gmime-parser.c:33:
c:/mingw/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate' C:/msys/1.0/opt/gtk/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here c:/mingw/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate' C:/msys/1.0/opt/gtk/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here
make[2]: *** [gmime-parser.o] Error 1
make[2]: Leaving directory `/home/Darren/pan/gmime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Darren/pan'
make: *** [all] Error 2

I resolved it by commenting out the reference to ftruncate in unistd.h. Then I received the default browser error and used the fix documented at http://lists.gnu.org/archive/html/pan-devel/2005-05/msg00012.html.

Next I received
".deps/util.Tpo" ".deps/util.Po"; \
else rm -f ".deps/util.Tpo"; exit 1; \
fi
util.c: In function `pan_url_show':
util.c:244: error: `SW_SHOWNORMAL' undeclared (first use in this function)
util.c:244: error: (Each undeclared identifier is reported only once
util.c:244: error: for each function it appears in.)
util.c: In function `menu_translate':
util.c:287: warning: return discards qualifiers from pointer target type
make[3]: *** [util.o] Error 1
make[3]: Leaving directory `/home/Darren/pan/pan'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Darren/pan/pan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Darren/pan'
make: *** [all] Error 2

I added #include <shellapi.h> to util.c which seems to be the Header file for the ShellExecute Function but that resulted in a number of other errors so I commented out the #ifndef that called SW_SHOWNORMAL. According to Microsoft this is used to launch a window with the original size. I guess that removing this broke the ability to launch a link from within Pan?

At this point I am having a problem with libxml2, I could not get 2.6.2 to build so I used the latest and like the readme warns it gave an error. So tomorrow I will work on building libxml2....

So will the changes I made cause any larger issues? Should I try to truly resolve them instead of hacking them out?

Thank you!


DPA wrote:
I added #include <stdio.h> to gmime-steam.h and it got further but now I get the following:
$ make
make  all-recursive
make[1]: Entering directory `/home/Darren/pan'
Making all in po
make[2]: Entering directory `/home/Darren/pan/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Darren/pan/po'
Making all in gmime
make[2]: Entering directory `/home/Darren/pan/gmime'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmime -IC:/msys/1.0/opt/gtk/include/glib-2.0 -IC:/msys/1.0/opt/gtk/lib/glib-2.0/include -Ic:/progra~1/Pcre/include -I/c/mingw/include -DWINDOWS -DWIN32 -I/opt/gtk/include -I/c/mingw/include -DWINDOWS -DWIN32 -I/opt/gtk/include -mwindows -mno-cygwin -mms-bitfields -I. -mms-bitfields -mwin32 -mwindows -MT gmime-parser.o -MD -MP -MF ".deps/gmime-parser.Tpo" \ -c -o gmime-parser.o `test -f 'gmime-parser.c' || echo './'`gmime-parser.c; \
then mv ".deps/gmime-parser.Tpo" ".deps/gmime-parser.Po"; \
else rm -f ".deps/gmime-parser.Tpo"; exit 1; \
fi
gmime-parser.c:30:41: /opt/pcre/include/pcreposix.h: No such file or directory
In file included from gmime-stream.h:35,
                from gmime-object.h:37,
                from gmime-parser.h:36,
                from gmime-parser.c:33:
c:/mingw/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate' C:/msys/1.0/opt/gtk/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here c:/mingw/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate' C:/msys/1.0/opt/gtk/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here
gmime-parser.c:87: error: syntax error before "regex_t"
gmime-parser.c:87: warning: no semicolon at end of struct or union
gmime-parser.c:99: error: syntax error before ':' token
gmime-parser.c:100: error: syntax error before ':' token
gmime-parser.c:101: error: syntax error before ':' token
gmime-parser.c:102: error: syntax error before ':' token
gmime-parser.c:103: error: syntax error before ':' token
gmime-parser.c:109: error: syntax error before '}' token
gmime-parser.c: In function `parser_push_boundary':
gmime-parser.c:126: error: dereferencing pointer to incomplete type
gmime-parser.c:126: error: dereferencing pointer to incomplete type
gmime-parser.c:129: error: dereferencing pointer to incomplete type
gmime-parser.c:130: error: dereferencing pointer to incomplete type
gmime-parser.c: In function `parser_pop_boundary':
gmime-parser.c:151: error: dereferencing pointer to incomplete type
gmime-parser.c:156: error: dereferencing pointer to incomplete type


I tried various versions on mingw, various versions of PCRE and Gnome-Common 2.4 and 2.8. I am obviously doing something wrong but I can't think of what. Any tips?

Thanks!

Charles Kerr wrote:
K. Haley wrote:
DPA wrote:

gmime-stream.h:48: error: `SEEK_SET' undeclared here (not in a function)
gmime-stream.h:48: error: enumerator value for `GMIME_STREAM_SEEK_SET'
not integer constant
gmime-stream.h:49: error: `SEEK_CUR' undeclared here (not in a function)
gmime-stream.h:49: error: enumerator value for `GMIME_STREAM_SEEK_CUR'
not integer constant
gmime-stream.h:50: error: `SEEK_END' undeclared here (not in a function)
gmime-stream.h:50: error: enumerator value for `GMIME_STREAM_SEEK_END'
not integer constant


I was able to compile it fine on Linux, so am I possibly missing a
library or is something else wrong?


IIRC those are defined in stdlib.h or stdio.h.  Just grep for SEEK_SET
and add the appropriate include to gmime-stream.h.

Adding #include <stdio.h> to the top of gmime-stream.h should do it.


_______________________________________________
Pan-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/pan-devel




_______________________________________________
Pan-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/pan-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]