Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too. - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too.
Date
Msg-id 52FF818F.1070405@dunslane.net
Whole thread Raw
In response to Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too.  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too.  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-committers
On 02/15/2014 09:49 AM, Andres Freund wrote:
> On 2014-02-15 09:47:08 -0500, Andrew Dunstan wrote:
>> However, the build now fails like this:
>>     pg_buffercache_pages.o: In function `pg_buffercache_pages':
>>
c:/MinGW/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.6024/../pgsql/contrib/pg_buffercache/pg_buffercache_pages.c:119:
>>     undefined reference to `MainLWLockArray'
>>
c:/MinGW/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.6024/../pgsql/contrib/pg_buffercache/pg_buffercache_pages.c:160:
>>     undefined reference to `MainLWLockArray'
>>     collect2.exe: error: ld returned 1 exit status
>>     make[1]: *** [pg_buffercache.dll] Error 1
>>     make[1]: Leaving directory
>>     `/home/pgrunner/bf/root/HEAD/pgsql.6024/contrib/pg_buffercache'
>>
>>
>> Note that by this time "make check" has already passed.
> That's expected atm, that's breaking all the windows builds right
> now. Now that brolga is alive again, it should be able to progress past
> this... How often does it build master?

Twice a day as long as currawong and frogmouth aren't running.

But it failed a few hours ago:

    gcc-4 -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -g zic.o ialloc.o scheck.o localtime.o
-L../../src/port-L../../src/common -Wl,--allow-multiple-definition -Wl,--disable-auto-import -L/usr/lib
-L/usr/local/lib-Wl,--as-needed   -lpgcommon -lpgport -lxslt -lxml2 -lz -lreadline -lcrypt -o zic.exe 
    zic.o: In function `main':
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:511: undefined reference to `_optarg'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:544: undefined reference to `_optarg'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:533: undefined reference to `_optarg'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:522: undefined reference to `_optarg'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:555: undefined reference to `_optarg'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:575: undefined reference to `_optind'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:584: undefined reference to `_optind'
    /cygdrive/d/cygwin-bf/root/HEAD/pgsql.3216/src/timezone/zic.c:590: undefined reference to `_optind'
    collect2: ld returned 1 exit status


cheers

andrew


cheers

andrew




pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too.
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Use --disable-auto-import linker switch in Mingw builds, too.