Thread

  1. Compile fail on 7.1b6 on cygwin with --enable-cassert

    PostgreSQL Bugs List <pgsql-bugs@postgresql.org> — 2001-03-23T12:07:23Z

    stuart (shenshall@westcountrypublications.co.uk) reports a bug with a severity of 4
    The lower the number the more severe it is.
    
    Short Description
    Compile fail on 7.1b6 on cygwin with --enable-cassert
    
    Long Description
    Postgresql-7.1beta6
    uname -srm
    CYGWIN_98-4.10 1.1.7(0.31/3/2) i586
    spec:
    win98SE, PIII 733MHz, 64MB
    Having configured with ./configure --enable-cassert
    when I make I get an error:
    $make
    <snip>
    gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -I. -I../../../../src/include -I/usr/local/include  -c -o pl_funcs.o pl_funcs.c
    dlltool --export-all --output-def plpgsql.def pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
    dllwrap -o plpgsql.dll --dllname plpgsql.dll --def plpgsql.def pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o ../../../../src/utils/dllinit.o  -L../../../../src/backend -lpostgres -lcygipc -lcygwin -lcrypt -lkernel32 
    pl_exec.o(.text+0x709):pl_exec.c: undefined reference to `assert_enabled'
    pl_exec.o(.text+0x730):pl_exec.c: undefined reference to `FailedAssertion'
    collect2: ld returned 1 exit status
    dllwrap: gcc exited with status 1
    make[4]: *** [libplpgsql.a] Error 1
    make[4]: Leaving directory `/usr/src/postgresql-7.1beta6/src/pl/plpgsql/src'
    make[3]: *** [all] Error 2
    make[3]: Leaving directory `/usr/src/postgresql-7.1beta6/src/pl/plpgsql'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/usr/src/postgresql-7.1beta6/src/pl'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/src/postgresql-7.1beta6/src'
    make: *** [all] Error 2
    
    I have also included the full configure and make output (in the example code bit) - no I havn't this form only accepts 8140bytes (time for 7.1 I think :)
    If any one wants the full configure and make output I can send them on.
    
    Sample Code
    
    
    
    No file was uploaded with this report
    
    
    
  2. Re: Compile fail on 7.1b6 on cygwin with --enable-cassert

    Tom Lane <tgl@sss.pgh.pa.us> — 2001-03-23T16:32:03Z

    pgsql-bugs@postgresql.org writes:
    > dllwrap -o plpgsql.dll --dllname plpgsql.dll --def plpgsql.def pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o ../../../../src/utils/dllinit.o  -L../../../../src/backend -lpostgres -lcygipc -lcygwin -lcrypt -lkernel32 
    > pl_exec.o(.text+0x709):pl_exec.c: undefined reference to `assert_enabled'
    > pl_exec.o(.text+0x730):pl_exec.c: undefined reference to `FailedAssertion'
    > collect2: ld returned 1 exit status
    
    Hm.  Looks like these variables need to be marked DLLIMPORT.  Thanks for
    the report.
    
    			regards, tom lane