[GENERAL] 8.2.1 Compiling Error

Поиск
Список
Период
Сортировка
Искать

[GENERAL] 8.2.1 Compiling Error

От:
elein <elein@varlena.com>
Дата:
----- Forwarded message from elein  -----

To: pgsql-general@postgresql.org
Cc: elein 
Subject: [GENERAL] 8.2.1 Compiling Error
Mail-Followup-To: pgsql-general@postgresql.org
From: elein 


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 -----

Re: [GENERAL] 8.2.1 Compiling Error

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
elein  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

Re: [GENERAL] 8.2.1 Compiling Error

От:
<korryd@enterprisedb.com>
Дата:
 On Wed, 2007-01-31 at 11:38 -0800, elein wrote: 
----- Forwarded message from elein <elein@varlena.com> -----

To: pgsql-general@postgresql.org
Cc: elein <elein@varlena.com>
Subject: [GENERAL] 8.2.1 Compiling Error
Mail-Followup-To: pgsql-general@postgresql.org
From: elein <elein@varlena.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

Re: [GENERAL] 8.2.1 Compiling Error

От:
elein <elein@varlena.com>
Дата:
On Wed, Jan 31, 2007 at 03:41:31PM -0500, Tom Lane wrote:
> elein  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

Re: [GENERAL] 8.2.1 Compiling Error

От:
"Florian G. Pflug" <fgp@phlo.org>
Дата:
elein wrote:
> ----- Forwarded message from elein  -----
> 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



Re: [GENERAL] 8.2.1 Compiling Error

От:
Michael Meskes <meskes@postgresql.org>
Дата:
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@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

FAQ