RE: [firebird-support] Compling from source.

2019-04-19 Thread 'Paul Beach' pbe...@mail.ibphoenix.com [firebird-support]
< ./configure --prefix=/home/pol/Downloads/sw/db/fb/inst 
> --with-builtin-libtommath
then
> make
Same failure as before (at bottom).
I totally get your point about it being to do with libtommath, that much is 
obvious from the error messages.
However, I have tried the solution proposed - i.e. using ./configure with the 
--wtih-builtin-libtommath flag.
Now, I need further assistance. This is failing. I am compiling on Fedora 29 
with Development Tools installed.
Where do I need to place, or what do I need to do, with the tommath 
code/library in order for  a simple compile to work?
Any assistance much appreciated. >>

Look very carefully at the error you are getting and you will notice that 
although
you are specifying --with-builtin-libtommath
its actually picking up the non fPIC lib in /usr/local/lib 

---> /usr/bin/ld: //usr/local/lib/libtommath.a
This is being picked up before the builtin one within extern
probably because of your library search paths

The correct library would be extern/libtommath/.libs for libtommath.so not 
libtommath.a
See gen/make.defaults

Paul




== Fails =



/usr/bin/ld: //usr/local/lib/libtommath.a(bn_mp_read_radix.o): relocation 
R_X86_64_32S against symbol `mp_s_rmap_reverse' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod.o): relocation 
R_X86_64_32 against symbol `mp_reduce' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod_fast.o): relocation 
R_X86_64_32 against symbol `mp_reduce_2k' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:305: 
/home/pol/Downloads/sw/db/fb/gen/Release/firebird/lib/libfbclient.so.3.0.4] 
Error 1
make[3]: Leaving directory '/home/p ol/Downloads/sw/db/fb/gen'
make[2]: *** [Makefile:180: master_process] Error 2
make[2]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make[1]: *** [Makefile:66: firebird] Error 2
make[1]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make: *** [Makefile:6: firebird] Error 2








RE: [firebird-support] Compling from source.

2019-04-18 Thread pline...@yahoo.com [firebird-support]


 

 Thanks again for your input,

 

 

 The command I ran:

 

 > ./configure --prefix=/home/pol/Downloads/sw/db/fb/inst 
 > --with-builtin-libtommath
 

 then
 

 > make

 

 Same failure as before (at bottom).
 

 I totally get your point about it being to do with libtommath, that much is 
obvious from the error messages.

 

 However, I have tried the solution proposed - i.e. using ./configure with the 
--wtih-builtin-libtommath flag.
 

 Now, I need further assistance. This is failing. I am compiling on Fedora 29 
with Development Tools installed.
 

 Where do I need to place, or what do I need to do, with the tommath 
code/library in order for  a simple compile to work?
 

 Any assistance much appreciated.
 

 

 Rgs,
 

 

 == Fails =

 

 /usr/bin/ld: //usr/local/lib/libtommath.a(bn_mp_read_radix.o): relocation 
R_X86_64_32S against symbol `mp_s_rmap_reverse' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod.o): relocation 
R_X86_64_32 against symbol `mp_reduce' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod_fast.o): relocation 
R_X86_64_32 against symbol `mp_reduce_2k' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:305: 
/home/pol/Downloads/sw/db/fb/gen/Release/firebird/lib/libfbclient.so.3.0.4] 
Error 1
make[3]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make[2]: *** [Makefile:180: master_process] Error 2
make[2]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make[1]: *** [Makefile:66: firebird] Error 2
make[1]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make: *** [Makefile:6: firebird] Error 2


 



RE: [firebird-support] Compling from source.

2019-04-18 Thread 'Paul Beach' pbe...@mail.ibphoenix.com [firebird-support]

> at a guess it looks like the libtommath you installed wasn't build with =fPIC
> a must if you want to include its symbols in another shared library (Firebird)

> Perhaps it would be easier if you used the configure command 
> --with-builtin-libtommath?

<>

if you do a ./configure --help 
you will see that --with-builtin-libtommath "build libtommath library from the 
firebird tree"
This means the libtommath library should be built "within" firebird...
If you look in extern within your firebird code there should be a libtommath 
directory.
That code is used to build the libtommath library which will be linked into the 
firebird
shared library during compilation.

I know this works because there is no installed libtommath library on MacOS and 
I have to build
fireird this way so that firebird is dependent on some randomly installed 3rd 
party libtommath
library.

regards
Paul



RE: [firebird-support] Compling from source.

2019-04-17 Thread pline...@yahoo.com [firebird-support]

Hi Paul,

> at a guess it looks like the libtommath you installed wasn't build with =fPIC
> a must if you want to include its symbols in another shared library (Firebird)

> Perhaps it would be easier if you used the configure command 
> --with-builtin-libtommath?

Thanks for getting back to me so quickly.

I'm not sure I understand. I actually did initially try 
--with-builtin-libtommath but that failed - I assumed because the library isn't 
present in the Firebird sources?

But it's wasn't present on my system either - when I installed it, the 
compilation went further than without it.

What will compiling now with --with-builtin-libtommath do that it didn't before?

Sorry if I seem a bit obtuse, but this area really isn't my forte!

Rgs,

Pól...





RE: [firebird-support] Compling from source.

2019-04-17 Thread pline...@yahoo.com [firebird-support]
Hi again Paul,
 

 > Perhaps it would be easier if you used the configure command 
 > --with-builtin-libtommath?
 

 I just tried compiling again - it failed at the same point as before.
 
./configure --prefix=blah --with-builtin-libtommath


 Should I try compiling the libtommath library myself with different options? 
What might they be?
 

 Rgs,
 

 Pól...



RE: [firebird-support] Compling from source.

2019-04-17 Thread 'Paul Beach' pbe...@mail.ibphoenix.com [firebird-support]

<<(phew...), but that's where the fun begins - I hit an error!


/usr/bin/ld: //usr/local/lib/libtommath.a(bn_mp_read_radix.o): relocation 
R_X86_64_32S against symbol `mp_s_rmap_reverse' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod.o): relocation 
R_X86_64_32 against symbol `mp_reduce' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: //usr/local/lib/libtommath.a(bn_s_mp_exptmod_fast.o): relocation 
R_X86_64_32 against symbol `mp_reduce_2k' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:305: 
/home/pol/Downloads/sw/db/fb/gen/Release/firebird/lib/libfbclient.so.3.0.4] 
Error 1
make[3]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make[2]: *** [Makefile:180: master_process] Error 2
make[2]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make[1]: *** [Makefile:66: firebird] Error 2
make[1]: Leaving directory '/home/pol/Downloads/sw/db/fb/gen'
make: *** [Makefile:6: firebird] Error 2
[pol@UNKNOWN fb]$>>

at a guess it looks like the libtommath you installed wasn't build with =fPIC 
a must if you want to include its symbols in another shared library (Firebird)

Perhaps it would be easier if you used the configure command 
--with-builtin-libtommath?

Regards
Paul