pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Different bitness
3+ messages / 2 participants
[nested] [flat]

* Different bitness
@ 2020-11-08 19:35 Igor Korot <ikorot01@gmail.com>
  2020-11-08 20:21 ` Re: Different bitness Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Igor Korot @ 2020-11-08 19:35 UTC (permalink / raw)
  To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

Hi, ALL,

[code]

CC -m64   -std=c++11 -o
dist/Debug/OracleDeveloperStudio-Solaris-x86/liblibpostgres.so
build/Debug/OracleDeveloperStudio-Solaris-x86/database_postgres.o
-L../postgresql/src/interfaces/libpq -lpq -m64 -std=c++11 -G -KPIC
-norunpath -h liblibpostgres.so
ld: fatal: file ../postgresql/src/interfaces/libpq/libpq.so: wrong ELF
class: ELFCLASS32
*** Error code 2
[/code]

However testing the library reveals:

[code]

igor@solaris:~/dbhandlerSol/libpq/src/interfaces/libpq$ file libpq.so
libpq.so:       ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE2 SSE],
dynamically linked, not stripped
[/code]

What is wrong here?

I did do the clean the default 32-bit build and then rebuild with:

[code]
CFLAGS="-m64" LDFLAGS="-m64" ./configure && cd src/interface/libpq && gmake
[/code]

What am I missing?

Thank you.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Different bitness
  2020-11-08 19:35 Different bitness Igor Korot <ikorot01@gmail.com>
@ 2020-11-08 20:21 ` Tom Lane <tgl@sss.pgh.pa.us>
  2020-11-08 21:02   ` Re: Different bitness Igor Korot <ikorot01@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2020-11-08 20:21 UTC (permalink / raw)
  To: Igor Korot <ikorot01@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

Igor Korot <ikorot01@gmail.com> writes:
> ld: fatal: file ../postgresql/src/interfaces/libpq/libpq.so: wrong ELF
> class: ELFCLASS32

That path doesn't seem to quite agree with this one:

> igor@solaris:~/dbhandlerSol/libpq/src/interfaces/libpq$ file libpq.so


			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Different bitness
  2020-11-08 19:35 Different bitness Igor Korot <ikorot01@gmail.com>
  2020-11-08 20:21 ` Re: Different bitness Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-11-08 21:02   ` Igor Korot <ikorot01@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Igor Korot @ 2020-11-08 21:02 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

Thx, Tom.

On Sun, Nov 8, 2020 at 2:21 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Igor Korot <ikorot01@gmail.com> writes:
> > ld: fatal: file ../postgresql/src/interfaces/libpq/libpq.so: wrong ELF
> > class: ELFCLASS32
>
> That path doesn't seem to quite agree with this one:
>
> > igor@solaris:~/dbhandlerSol/libpq/src/interfaces/libpq$ file libpq.so
>
>
>                         regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-11-08 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-08 19:35 Different bitness Igor Korot <ikorot01@gmail.com>
2020-11-08 20:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-11-08 21:02   ` Igor Korot <ikorot01@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox