Build error?

Started by Christopher Kings-Lynneabout 22 years ago4 messages
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

I just made distclean and then reconfigured with --with-openssl and I
get this in HEAD:

gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include -DBINDIR=\"/home/chriskl/local/bin\" -c -o
common.o common.c -MMD
In file included from /usr/include/openssl/comp.h:5,
from /usr/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/include/openssl/crypto.h:358: syntax error before `free_func'
/usr/include/openssl/crypto.h:358: syntax error before `)'
/usr/include/openssl/crypto.h:363: syntax error before `free_func'
/usr/include/openssl/crypto.h:363: syntax error before `)'
In file included from /usr/include/openssl/rsa.h:62,
from /usr/include/openssl/evp.h:134,
from /usr/include/openssl/x509.h:67,
from /usr/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/include/openssl/asn1.h:802: syntax error before `free_func'
/usr/include/openssl/asn1.h:802: `d2i_ASN1_SET' declared as function
returning a function
/usr/include/openssl/asn1.h:803: syntax error before `int'
/usr/include/openssl/asn1.h:907: syntax error before `free_func'
/usr/include/openssl/asn1.h:907: syntax error before `)'
In file included from /usr/include/openssl/evp.h:145,
from /usr/include/openssl/x509.h:67,
from /usr/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/include/openssl/objects.h:990: syntax error before `free_func'
/usr/include/openssl/objects.h:990: syntax error before `)'
gmake[3]: *** [common.o] Error 1

Is that something broken on my system???

Chris

#2Joe Conway
mail@joeconway.com
In reply to: Christopher Kings-Lynne (#1)
Re: Build error?

Christopher Kings-Lynne wrote:

/usr/include/openssl/asn1.h:907: syntax error before `)'
In file included from /usr/include/openssl/evp.h:145,
from /usr/include/openssl/x509.h:67,
from /usr/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/include/openssl/objects.h:990: syntax error before `free_func'
/usr/include/openssl/objects.h:990: syntax error before `)'
gmake[3]: *** [common.o] Error 1

Is that something broken on my system???

Bruce just reported something like this too. I had a somewhat similar
issue about a week and a half ago. It may be a long shot, but try:

./configure \
--with-openssl \
--with-krb5 \
--with-includes=/usr/kerberos/include \
--with-libs=/usr/kerberos/lib

of course replacing /usr/kerberos/* with whatever is correct for your
system. In my experience there has always (well, for quite some time
anyway) been a dependency between openssl and krb5. Just before I ran
into the latest problem, Peter made a change to configure that seemed to
trigger it for me:
http://archives.postgresql.org/pgsql-committers/2003-11/msg00278.php

How long has it been since you rebuilt from cvs?

Joe

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#1)
Re: Build error?

Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:

I just made distclean and then reconfigured with --with-openssl and I
get this in HEAD:

FWIW, CVS tip builds perfectly cleanly --with-openssl in RHL 8.0,
which has (digs...)
openssl-devel-0.9.6b-29
openssl-0.9.6b-29
openssl096-0.9.6-11
Some difference in inclusion requirements in whatever you're using?

regards, tom lane

#4Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Joe Conway (#2)
Re: Build error?

Joe Conway wrote:

Is that something broken on my system???

Bruce just reported something like this too. I had a somewhat similar
issue about a week and a half ago. It may be a long shot, but try:

./configure \
--with-openssl \
--with-krb5 \
--with-includes=/usr/kerberos/include \
--with-libs=/usr/kerberos/lib

of course replacing /usr/kerberos/* with whatever is correct for your
system. In my experience there has always (well, for quite some time
anyway) been a dependency between openssl and krb5. Just before I ran
into the latest problem, Peter made a change to configure that seemed to
trigger it for me:
http://archives.postgresql.org/pgsql-committers/2003-11/msg00278.php

How long has it been since you rebuilt from cvs?

A few days.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073