Re: Postgres failed to compile on debian x86

From: Josh Fremer <jfremer(at)earthlink(dot)net>
To: Seneca Cunningham <tentra(at)gmail(dot)com>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Postgres failed to compile on debian x86
Date: 2006-09-06 00:27:28
Message-ID: CC10F9B4-34BD-4C36-80C3-706CD7B60255@earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On Sep 5, 2006, at 11:01 AM, Seneca Cunningham wrote:
> Now that I'm connected to a Linux system, I've tried your original
> configure line of:
>
> ./configure --with-perl --with-openssl \
> --with-includes=/usr/include/linux/:/usr/include \
> --with-libraries=/usr/lib/
>
> and reproduced your results. Change that to:
>
> ./configure --with-perl --with-openssl \
> --with-includes=/usr/include --with-libraries=/usr/lib
>
> and it should work. Incidentally, the --with-includes and
> --with-libraries aren't necessary at this point as /usr/include
> and /usr/lib are in the default search path of gcc, ld, and cpp.

Installation complete. Thanks so much for all your help.

For completeness, I'd like to mention that after a successful
configure, make failed on my setup with the following error:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-
labels -fno-strict-aliasing -Wno-error -L../../../../src/port -Wl,-
rpath,/usr/local/pgsql/lib preproc.o type.o ecpg.o ecpg_keywords.o
output.o keywords.o c_keywords.o ../ecpglib/typename.o descriptor.o
variable.o -lpgport -lssl -lcrypto -lz -lreadline -lcrypt -lresolv -
lnsl -ldl -lm -o ecpg
/usr/lib/libc_nonshared.a(elf-init.oS)(.text.__i686.get_pc_thunk.bx
+0x0): In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
../ecpglib/typename.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):
first defined here
collect2: ld returned 1 exit status
make[4]: *** [ecpg] Error 1
make[4]: Leaving directory `/home/josh/postgresql-8.1.4/src/
interfaces/ecpg/preproc'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/josh/postgresql-8.1.4/src/
interfaces/ecpg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/josh/postgresql-8.1.4/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/josh/postgresql-8.1.4/src'
make: *** [all] Error 2

After a little research I tried upgrading from gcc-3.4 to gcc-3.5,
which is the latest version currently available in debian stable.
The error persisted. After that I tried upgrading to gcc-4.0 out of
debian testing, which solved the issue.

Again, thanks for your patience and great advice.

Cheers,

Josh

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Henry B. Hotz 2006-09-27 01:04:10 Re: PostgreSQL and Kerberos 5 on Solaris
Previous Message Seneca Cunningham 2006-09-05 15:01:42 Re: Postgres failed to compile on debian x86