Operating System - HP-UX
1751914 Members
5148 Online
108783 Solutions
New Discussion юеВ

Re: Compiling mnogosearch with mysql

 
SOLVED
Go to solution
Markus Bonet
Advisor

Compiling mnogosearch with mysql

I want to build mnogosearch on a HPUX 11.23 (IA64) system.
mnogosearch will be linked against a mysql-datebase. The libs are 64bit.

Unfortunately gcc tries to build a elf-32 binary which fails of an ABI-mismatch as soon as a mysql-lib is involved.

How do I tell gcc to build 64bit binaries?


Kind regards
Markus
9 REPLIES 9
Peter Godron
Honored Contributor

Re: Compiling mnogosearch with mysql

Markus,
I thought elf-64 gcc can only generate elf-64 binaries.
Are you sure your gcc is 64?

Regards
Markus Bonet
Advisor

Re: Compiling mnogosearch with mysql

No, gcc is a elf-32 binary.
I thought it is able to build 64bit binaries.

Do I need a 64bit gcc? Where can I get it?
Peter Godron
Honored Contributor

Re: Compiling mnogosearch with mysql

Markus,
http://www.cmve.net/~merijn/
or http://gcc.gnu.org/
would be a start.

But if you can wait a while, perhaps somebody has another idea/solution.

Regards
Peter Godron
Honored Contributor
Solution

Re: Compiling mnogosearch with mysql

Markus,
had a another look around and found:
32 bit gcc can apparently be told to compile to 64 bit, but 64bit can not generate 32 bit.
Sonme of the options I found refer to:
CFLAGS="-O2 -mlp64" LDFLAGS="-mlp64 -lm"
and
+DA2.0W
and variants thereof.
Unless comes up with a clear answer, it may be a case of trial and error.
Regards
Markus Bonet
Advisor

Re: Compiling mnogosearch with mysql

Peter,
many thanks, I will have a try at wednesday!


Markus
Peter Godron
Honored Contributor

Re: Compiling mnogosearch with mysql

Markus,
any update on this thread?
Thanks
Markus Bonet
Advisor

Re: Compiling mnogosearch with mysql

Peter,

sorry.. I was trying to write a post all morning long;-)
OK, I managed to compile it with the suggested options and voil├Г┬б: 64bit ELF!
The only thing left is zlib-support which fails within configure. But this problem is solved with "--without-zlib".

Thanks alot!
Mark
Peter Godron
Honored Contributor

Re: Compiling mnogosearch with mysql

Markus,
also funtioniert jetzt alles.
Grossartig!
Kannst Du bitte Punkte geben und then Thread schliessen.
Herzlichen Dank und viel Glueck
Markus Bonet
Advisor

Re: Compiling mnogosearch with mysql

Great, the compiler flags did the trick!