From: | Igor Korot <ikorot01(at)gmail(dot)com> |
---|---|
To: | "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Different bitness |
Date: | 2020-11-08 19:35:52 |
Message-ID: | CA+FnnTwhKrjSygSGbUY5s=TmOYfaVCuw9BD-npvtBwv=UkNK6Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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(at)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-11-08 20:21:23 | Re: Different bitness |
Previous Message | Igor Korot | 2020-11-08 19:31:23 | Re: Building for 64-bit platform |