Marco, Andrew: On 2014-02-15 22:11:37 +0100, Marco Atzeri wrote: > ../../src/timezone/localtime.o ../../src/timezone/strftime.o > ../../src/timezone/pgtz.o ../../src/port/libpgport_srv.a > ../../src/common/libpgcommon_srv.a -lintl -lssl -lcrypto -lcrypt -lldap -o > postgres > libpq/auth.o:auth.c:(.text+0x1940): undefined reference to `in6addr_any' > libpq/auth.o:auth.c:(.text+0x1954): undefined reference to `in6addr_any' > libpq/auth.o:auth.c:(.text+0x196d): undefined reference to `in6addr_any' > libpq/auth.o:auth.c:(.text+0x1979): undefined reference to `in6addr_any' > /usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: > libpq/auth.o: bad reloc address 0xce4 in section `.rdata' > collect2: error: ld returned 1 exit status > Makefile:66: recipe for target 'postgres' failed > make[2]: *** [postgres] Error 1 > make[2]: Leaving directory > '/pub/devel/postgresql/git/postgresql_build/src/backend'
Could either of you try whether compiling with the attached hack fixes anything on cygwin? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
diff --git a/src/backend/Makefile b/src/backend/Makefile index 870a022..a991134 100644 --- a/src/backend/Makefile +++ b/src/backend/Makefile @@ -62,6 +62,8 @@ endif ifeq ($(PORTNAME), cygwin) +LIBS += -lwsock32 -lws2_32 + postgres: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) -Wl,--stack,$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.a $(call expand_subsys,$^) $(LIBS) -o $@
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers