[gnet-dev] problems with compilation on cygwin



hi!

I cannot compile gnet-src-2.0-20030531.zip on cygwin (latest
installation). I use glib-2.2.1 from
http://web.sfc.keio.ac.jp/~s01397ms/cygwin/index.html.en
installed with setup.exe

I attach some usefull info. in makefile I added -I/bin because on my
cygwin libraries are in /bin directory (default instalation).

please help me, I need gnet2 working on cygwin.

thanks in advance
hs
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from gnet-private.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
gnet-private.c: In function `gnet_private_io_channel_new':
gnet-private.c:103: warning: implicit declaration of function `g_io_channel_win32_new_socket'
gnet-private.c:103: warning: assignment makes pointer from integer without a cast
gnet-private.c: In function `DllMain':
gnet-private.c:345: warning: implicit declaration of function `g_io_channel_win32_new_messages'
gnet-private.c:345: warning: assignment makes pointer from integer without a cast
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from gnet.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from inetaddr.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from iochannel.c:22:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from tcp.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from udp.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from mcast.c:20:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from socks-private.c:20:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from socks-private.h:23,
                 from socks.c:20:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from server.c:21:
gnetconfig.h:16:26: warning: no newline at end of file
In file included from gnet.h:26,
                 from gnet-private.h:45,
                 from uri.c:20:
gnetconfig.h:16:26: warning: no newline at end of file
dllwrap: no export definition file provided.
Creating one, but that may not be what you want
gnet-private.o(.text+0xa5): In function `gnet_private_io_channel_new':
/home/Pawel Sokolowski/gnet/gnet-private.c:103: undefined reference to `_g_io_channel_win32_new_socket'
gnet-private.o(.text+0x463): In function `DllMain':
/home/Pawel Sokolowski/gnet/gnet-private.c:345: undefined reference to `_g_io_channel_win32_new_messages'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [all] Error 1
CC = gcc

FLAGS = -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1

INCLUDE = -I./ `pkg-config --cflags glib-2.0`

LIBS = `pkg-config --libs glib-2.0` -lws2_32 -L/bin -L/usr/bin

OFILES = gnet-private.o gnet.o ipv6.o inetaddr.o iochannel.o tcp.o udp.o mcast.o socks-private.o socks.o conn.o server.o pack.o md5.o sha.o uri.o base64.o



all:

	$(CC) $(FLAGS) $(INCLUDE) -c gnet-private.c

	$(CC) $(FLAGS) $(INCLUDE) -c gnet.c

	$(CC) $(FLAGS) $(INCLUDE) -c ipv6.c

	$(CC) $(FLAGS) $(INCLUDE) -c inetaddr.c

	$(CC) $(FLAGS) $(INCLUDE) -c iochannel.c

	$(CC) $(FLAGS) $(INCLUDE) -c tcp.c

	$(CC) $(FLAGS) $(INCLUDE) -c udp.c

	$(CC) $(FLAGS) $(INCLUDE) -c mcast.c

	$(CC) $(FLAGS) $(INCLUDE) -c socks-private.c

	$(CC) $(FLAGS) $(INCLUDE) -c socks.c

	$(CC) $(FLAGS) $(INCLUDE) -c conn.c

	$(CC) $(FLAGS) $(INCLUDE) -c server.c

	$(CC) $(FLAGS) $(INCLUDE) -c pack.c

	$(CC) $(FLAGS) $(INCLUDE) -c md5.c

	$(CC) $(FLAGS) $(INCLUDE) -c sha.c

	$(CC) $(FLAGS) $(INCLUDE) -c uri.c

	$(CC) $(FLAGS) $(INCLUDE) -c base64.c

	dllwrap $(INCLUDE) --export-all --output-def gnet.def --implib libgnet-2.0.a -o gnet-2.0.dll $(OFILES) $(LIBS)

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c mcast.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c socks-private.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c socks.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c conn.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c server.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c pack.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c md5.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c sha.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c uri.c

gcc -g -Wall -mno-cygwin -mcpu=pentium -DGNET_EXPERIMENTAL=1 -I./ `pkg-config -

cflags glib-2.0` -c base64.c

dllwrap -I./ `pkg-config --cflags glib-2.0` --export-all --output-def gnet.def

-implib libgnet-2.0.a -o gnet-2.0.dll gnet-private.o gnet.o ipv6.o inetaddr.o i

channel.o tcp.o udp.o mcast.o socks-private.o socks.o conn.o server.o pack.o md

.o sha.o uri.o base64.o `pkg-config --libs glib-2.0` -lws2_32 -L/bin -L/usr/bin

$



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