Re: narwhal and PGDLLIMPORT

From: Marco Atzeri <marco(dot)atzeri(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: narwhal and PGDLLIMPORT
Date: 2014-02-16 17:26:36
Message-ID: 5300F4CC.7000007@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16/02/2014 15:43, Andres Freund wrote:
> 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
>

on cygwin32 bit it works, but it stops later on
-------------------------------------------
sl -lcrypto -lz -lreadline -lcrypt -o psql.exe
tab-complete.o:tab-complete.c:(.text+0xa98): undefined reference to
`rl_line_buffer'
tab-complete.o:tab-complete.c:(.text+0xa387): undefined reference to
`rl_attempted_completion_function'
tab-complete.o:tab-complete.c:(.text+0xa391): undefined reference to
`rl_basic_word_break_characters'
tab-complete.o:tab-complete.c:(.text+0xa3a4): undefined reference to
`rl_readline_name'
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld:
tab-complete.o: bad reloc address 0x30ec in section `.rdata'
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld:
final link failed: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:33: recipe for target 'psql' failed
-----------------------------------------------

on cygwin 64bit, that I was not testing before,
something is strange
------------------------------------------------------
-lintl -lssl -lcrypto -lcrypt -lldap -lwsock32 -lws2_32 -o postgres
postmaster/postmaster.o:postmaster.c:(.rdata$.refptr.environ[.refptr.environ]+0x0):
undefined reference to `environ'
collect2: error: ld returned 1 exit status
Makefile:68: recipe for target 'postgres' failed
make[2]: *** [postgres] Error 1
-------------------------------------------------------

of course 9.3.2 builds fine on cygwin 64bit.

Regards
Marco

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-02-16 17:57:46 Re: narwhal and PGDLLIMPORT
Previous Message Andres Freund 2014-02-16 17:12:42 Re: Changeset Extraction v7.6.1