Hi,
I was experiencing the same problem, and thanks to your hints I
managed to solve it!
Actually I didn't changed the setup.py to point from libodbc.a to
libodbc.so, but I managed to solve this error:
ules/properties/microservices/obj/propertiesMS.o -L/usr/lib64 -
lpython2.7 -o build/lib.linux-x86_64-2.7/irods.so
/usr/bin/ld: /home/floan/irods/postgres/pgsql/lib/
libodbc.a(SQLAllocHandle.o): relocation R_X86_64_32 against
`.rodata.str1.8' can not be used when making a shared object;
recompile with -fPIC
/home/floan/irods/postgres/pgsql/lib/libodbc.a: could not read
symbols: Bad value
exporting the CFLAGS variable (and not only the CCFLAGS) as you
suggested.
So, concluding, before issue irrodssetup:
export CFLAGS=-fPIC
export CCFLAGS=-fPIC (actually for this one, I set it in config/
irods.confg instead of exporting from the shell)
...and everything should be built for 64-bit platforms (also the odbc
drivers)
Hope it helps,
Gabriele
> > > > > > > > srvRodsAPIs.a(rsCloseCollection.o):relocationR_X86_64_32S against
> > > > > > > > > > > > > > > libodbc.a(SQLAllocHandle.o):relocationR_X86_64_32 against
> > > > > > > > > > > > > > > > > libodbc.a(SQLAllocHandle.o):relocationR_X86_64_32 against
> > > > > > > > > > > > > > > > > `.rodata.str1.8' can not be used when making a shared object;
> > > > > > > > > > > > > > > > > recompile with -fPIC
> > > > > > > > > > > > > > > > > /home/floan/irods/postgres/pgsql/lib/libodbc.a: could not read
> > > > > > > > > > > > > > > > > symbols: Bad value
>
> > > > > > > > > > > > > > > > > (This laptop is a fedora 12 and with 64 bits option).
>
> > > > > > > > > > > > > > > > > On May 6, 8:57 pm, Wilko Kroeger<
wi...@slac.stanford.edu> wrote:
> > > > > > > > > > > > > > > > >> Hello John and Adil
>
> > > > > > > > > > > > > > > > >> I guess irods was compiled on an amd64 (x86-64) platform and on this
> > > > > > > > > > > > > > > > >> platform object files have to be compiled with -fPIC if they will be
> > > > > > > > > > > > > > > > >> included into a shared library. PyRods builds a shared library and links
> > > > > > > > > > > > > > > > >> with the irods object files which were compiled without the -fPIC option
> > > > > > > > > > > > > > > > >> and therefore it fails.
>
> > > > > > > > > > > > > > > > >> You could set CCFLAGS and then recompile irods and build PyRods
>
> ...
>
> read more »