As far as I know the errors you're seeing should be fixed in the
subversion sources. However, I've never tried this myself. Lalo was the
one that got it working, and he's on vacation. I haven't heard of anyone
getting it working after that.

pgserver should not be linking with -mno-cygwin, since it still needs
cygwin for BSD-style socket support among other things. IMHO it's wrong
of sdl-config to give us that flag.

--Micah

As for -mno-cygwin, that should

On Fri, Jun 27, 2003 at 12:47:26AM +0000, Mark and Janice Juszczec wrote:
> 
> Hi folks
> 
> I got the source from the Subversion archive and followed the instructions 
> on the website.  But I'm still having trouble trying to compiling for 
> cygwin.
> 
> I configure with ./configure
> 
> When I compile video_drivers.c
>               input_drivers.c
>               pnm.c
> 
> I get errors like
> 
> cc1: warning: changing search order for system directory 
> "/usr/include/mingw"
> cc1: warning:   as it has already been specified as a non-system directory
> In file included from ../include/pgserver/common.h:40,
>                 from pnm.c:30:
> ../include/picogui/types.h:49:23: asm/types.h: No such file or directory
> In file included from ../include/pgserver/common.h:42,
>                 from pnm.c:30:
> ../include/pgserver/types.h:39: parse error before "__s16"
> ../include/pgserver/types.h:39: warning: no semicolon at end of struct or 
> union
> ../include/pgserver/types.h:43: parse error before "__s16"
> ../include/pgserver/types.h:43: warning: no semicolon at end of struct or 
> union
> ../include/pgserver/types.h:51: parse error before "__s16"
> ../include/pgserver/types.h:51: warning: no semicolon at end of struct or 
> union
> ../include/pgserver/types.h:55: parse error before "__s16"
> ../include/pgserver/types.h:55: warning: no semicolon at end of struct or 
> union
> 
> The compile string looked like
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include 
> -I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 
> -Uunix -mno-cygwin -O2 -g -Wp,-MD,.deps/input_drivers.pp -c input_drivers.c 
> -o input_drivers.o
> 
> In the Makefiles for those files, I removed -mno-cygwin from
> 
> DRIVER_CFLAGS =  -I/usr/local/include/SDL -Dmain=SDL_main 
> -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin
> 
> and everything compiled.
> 
> But at link time, I get:
> 
> make[2]: Entering directory `/usr/local/src/picogui/pg1/server'
> /bin/sh ./libtool --mode=link gcc  -O2 -g  -o libpgserver.la -rpath 
> /usr/local/lib   
> net/libnet.la                 theme/libtheme.la        debug/libdebug.la 
> input/libinput.la             video/libvideo.la        gcore/libgcore.la 
> appmgr/libappmgr.la           widget/libwidget.la 
>               vidwrap/libvidwrap.la           vidbase/libvidbase.la    
>               formats/libformats.la           font/libfont.la          
>               os/libos.la                     -L/usr/local/lib -lmingw32 -lSDLmain 
> -lSDL 
> -mwindows -mno-cygwin -lm -lz -lpng            -lpng -ljpeg -ljpeg
> mkdir .libs
> extracting exported symbol list from `cygSDL-0.dll'
> test -f .libs/impgen.c || \
>      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends 
> here \*\// { s/^# //;s/^# *$//; p; }" -e d < ./libtool > .libs/impgen.c
>      test -f .libs/impgen.exe || (cd .libs && \
>      if test "x" != "x" ; then  -o impgen impgen.c ; \
>      else gcc -o impgen impgen.c ; fi)
>      .libs/impgen /usr/local/lib/cygSDL-0.dll > .libs/cygSDL-0.dll-def
> make[2]: *** [libpgserver.la] Error 1
> make[2]: Leaving directory `/usr/local/src/picogui/pg1/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/picogui/pg1/server'
> make: *** [all-recursive-am] Error 2
> 
> The first question is why do I need to remove -mno-cygwin from the above 
> files?  Should I remove all occurrences of this flag from all Makefiles?  
> Is it screwing up the link?  What version of cygwin and the other tools 
> (make, gcc etc) did you use to compile?
> 
> Mark
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to