Re: CVS HEAD compile failure - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: CVS HEAD compile failure
Date
Msg-id 3FD3D57B.3020509@dunslane.net
Whole thread Raw
In response to CVS HEAD compile failure  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: CVS HEAD compile failure
List pgsql-hackers
fresh checkout just compiled fine for me on Linux (RH8) with ssl 
enabled. Maybe it is your openssl installation?

cheers

andrew

Bruce Momjian wrote:

>Attached is a compile failure I am seeing in CVS HEAD in bin/pg_dump. 
>The offending lines are:
>    
>    gmake[3]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/backend/parser'
>    gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declar
>    ations -Wpointer-arith -Wcast-align -I../../../src/interfaces/libpq -I../../../src/include
-I/usr/local/include/readline-I/us
 
>    r/contrib/include -DBINDIR=\"/usr/local/pgsql/bin\"  -c -o common.o common.c
>    In file included from /usr/contrib/include/openssl/comp.h:5,
>                     from /usr/contrib/include/openssl/ssl.h:171,
>                     from ../../../src/interfaces/libpq/libpq-fe.h:33,
>                     from pg_backup.h:30,
>                     from pg_backup_archiver.h:58,
>                     from common.c:21:
>    /usr/contrib/include/openssl/crypto.h:358: syntax error before `free_func'
>    /usr/contrib/include/openssl/crypto.h:358: syntax error before `)'
>    /usr/contrib/include/openssl/crypto.h:363: syntax error before `free_func'
>    /usr/contrib/include/openssl/crypto.h:363: syntax error before `)'
>    In file included from /usr/contrib/include/openssl/rsa.h:62,
>                     from /usr/contrib/include/openssl/evp.h:137,
>                     from /usr/contrib/include/openssl/x509.h:67,
>                     from /usr/contrib/include/openssl/ssl.h:177,
>                     from ../../../src/interfaces/libpq/libpq-fe.h:33,
>                     from pg_backup.h:30,
>                     from pg_backup_archiver.h:58,
>                     from common.c:21:
>    /usr/contrib/include/openssl/asn1.h:802: syntax error before `free_func'
>    /usr/contrib/include/openssl/asn1.h:802: `d2i_ASN1_SET' declared as function returning a function
>    /usr/contrib/include/openssl/asn1.h:803: syntax error before `int'
>    /usr/contrib/include/openssl/asn1.h:907: syntax error before `free_func'
>    /usr/contrib/include/openssl/asn1.h:907: syntax error before `)'
>    In file included from /usr/contrib/include/openssl/evp.h:148,
>                     from /usr/contrib/include/openssl/x509.h:67,
>                     from /usr/contrib/include/openssl/ssl.h:177,
>                     from ../../../src/interfaces/libpq/libpq-fe.h:33,
>                     from pg_backup.h:30,
>                     from pg_backup_archiver.h:58,
>                     from common.c:21:
>    
>as you can see, these are all related to free_func.    The line in crypto.h is:
>
>    int CRYPTO_set_locked_mem_functions(void *(*m)(size_t), void (*free_func)(void *));
>
>I can't see what could be causing this failure.  I thought maybe
>'free_func' was defined in our code, but I don't see it.  Also, there
>are earlier references to free_func in that file that aren't marked as
>failures.    I looked at the recent changes to pg_dump/Makefile, but
>don't see anything.  This is a clean build.
>
>I can compile 7.4.X CVS just fine.  This failure began within the past
>few days.
>
>  
>



pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Call for pg_dump testing
Next
From: Christopher Kings-Lynne
Date:
Subject: Build error?