Re: [GENERAL] 8.2.1 Compiling Error

Lists: pgsql-hackers
From: elein <elein(at)varlena(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: elein <elein(at)varlena(dot)com>
Subject: [GENERAL] 8.2.1 Compiling Error
Date: 2007-01-31 19:38:02
Message-ID: 20070131193802.GF8879@varlena.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

----- Forwarded message from elein <elein(at)varlena(dot)com> -----

To: pgsql-general(at)postgresql(dot)org
Cc: elein <elein(at)varlena(dot)com>
Subject: [GENERAL] 8.2.1 Compiling Error
Mail-Followup-To: pgsql-general(at)postgresql(dot)org
From: elein <elein(at)varlena(dot)com>

Debian Linux. Have always built from scratch with no problem.

This is 8.2.1 from postgresql.org.

Conf line is:
--prefix=/local/pgsql82 --enable-depend --enable-cassert --enable-debug --with-tcl --with-python --with-perl --with-pgport=5432

Build error is:
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -g -Wno-error -L../../../../src/port -Wl,-rpath,'/local/pgsql82/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 -lz -lreadline -lcrypt -ldl -lm -o ecpg
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__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):/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/ecpglib/typename.c:18: first defined herecollect2: ld returned 1 exit status
make[4]: *** [ecpg] Error 1
make[4]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/preproc'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces/ecpg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/local/src/postgresql-8.2.1/src'
make: *** [all] Error 2

Any ideas?

elein

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

----- End forwarded message -----


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: elein <elein(at)varlena(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] 8.2.1 Compiling Error
Date: 2007-01-31 20:41:31
Message-ID: 21893.1170276091@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

elein <elein(at)varlena(dot)com> writes:
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -g -Wno-error -L../../../../src/port -Wl,-rpath,'/local/pgsql82/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 -lz -lreadline -lcrypt -ldl -lm -o ecpg
> /usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__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):/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/ecpglib/typename.c:18: first defined herecollect2: ld returned 1 exit status
> make[4]: *** [ecpg] Error 1

Weird. None of the Debian machines in the buildfarm are failing.
Is this a vanilla x86 installation? Maybe something non-default
about your compiler?

typename.c in 8.2 branch hasn't changed for about three years,
so it's not like that code suddenly broke ...

regards, tom lane


From: <korryd(at)enterprisedb(dot)com>
To: "elein" <elein(at)varlena(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] 8.2.1 Compiling Error
Date: 2007-01-31 22:05:04
Message-ID: 1170281104.6941.111.camel@sakai.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, 2007-01-31 at 11:38 -0800, elein wrote:

> ----- Forwarded message from elein <elein(at)varlena(dot)com> -----
>
> To: pgsql-general(at)postgresql(dot)org
> Cc: elein <elein(at)varlena(dot)com>
> Subject: [GENERAL] 8.2.1 Compiling Error
> Mail-Followup-To: pgsql-general(at)postgresql(dot)org
> From: elein <elein(at)varlena(dot)com>
>
>
> Debian Linux. Have always built from scratch with no problem.
>
> This is 8.2.1 from postgresql.org.
>
> Conf line is:
> --prefix=/local/pgsql82 --enable-depend --enable-cassert --enable-debug --with-tcl --with-python --with-perl --with-pgport=5432

Don't know if it will help, but you might take a peek at
http://archives.postgresql.org/pgsql-ports/2006-09/msg00005.php

-- Korry


From: elein <elein(at)varlena(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: elein <elein(at)varlena(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] 8.2.1 Compiling Error
Date: 2007-01-31 23:24:24
Message-ID: 20070131232424.GG8879@varlena.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jan 31, 2007 at 03:41:31PM -0500, Tom Lane wrote:
> elein <elein(at)varlena(dot)com> writes:
> > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -g -Wno-error -L../../../../src/port -Wl,-rpath,'/local/pgsql82/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 -lz -lreadline -lcrypt -ldl -lm -o ecpg
> > /usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__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):/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/ecpglib/typename.c:18: first defined herecollect2: ld returned 1 exit status
> > make[4]: *** [ecpg] Error 1
>
> Weird. None of the Debian machines in the buildfarm are failing.
> Is this a vanilla x86 installation? Maybe something non-default
> about your compiler?

Pretty darn vanilla, except for source packages from postgres.

Korry suggests upgrading gcc, although I've built all of the
previous versions with no problem. But I'll try that.

>
> typename.c in 8.2 branch hasn't changed for about three years,
> so it's not like that code suddenly broke ...
>
> regards, tom lane

--elein


From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] 8.2.1 Compiling Error
Date: 2007-02-01 01:46:00
Message-ID: 45C14658.9040108@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

elein wrote:
> ----- Forwarded message from elein <elein(at)varlena(dot)com> -----
> Build error is:
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -g -Wno-error -L../../../../src/port -Wl,-rpath,'/local/pgsql82/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 -lz -lreadline -lcrypt -ldl -lm -o ecpg
> /usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__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):/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/ecpglib/typename.c:18: first defined herecollect2: ld returned 1 exit status
> make[4]: *** [ecpg] Error 1
> make[4]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces/ecpg/preproc'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces/ecpg'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/local/src/postgresql-8.2.1/src/interfaces'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/local/src/postgresql-8.2.1/src'
> make: *** [all] Error 2
>
> Any ideas?
I think I encountered that error once when building some
malloc-replacement library.
I think I was some strange interaction of a certain libc version with a
certain gcc version - I think I fixed it by upgrading both to a newer
version, but I can't remeber the details.. :-(

greetings, Florian Oflug


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: elein <elein(at)varlena(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] 8.2.1 Compiling Error
Date: 2007-02-02 09:28:11
Message-ID: 20070202092811.GB4391@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jan 31, 2007 at 03:24:24PM -0800, elein wrote:
> Pretty darn vanilla, except for source packages from postgres.

Which Debian version?

I take it you got this message on a full rebuild from clean sources,
right?

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!