Operating System - HP-UX
1827255 Members
2625 Online
109716 Solutions
New Discussion

Re: How to install gettext as 64bit library

 
SOLVED
Go to solution
Harichand M V
Advisor

How to install gettext as 64bit library

My gettext version is gettext-0.10.40

I compiled it using script
# cat start
CC='cc +z +DD64'
./configure
make
make install

#./start

The library was installed in /usr/local/lib

#chatr /usr/local/lib/libintl.sl
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /usr/local/lib
internal name:
libintl.sl.1
shared library list:
libc.so.1
shared library mapped private disabled
shared vtable support disabled
explicit unloading enabled
linkage table protection disabled
segments:
index type address flags size
7 text 04000000 z---c- D (default)
8 data 40010000 ---m-- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr dereferences trap disabled
address space model: default
caliper dynamic instrumentation disabled

I need to have a 64 bi shared library.
How can this be done

Please help..
Thanks in advance
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: How to install gettext as 64bit library

The proper place to put libs in IPF is in .../lib/hpux64/libfoo*.so

>CC='cc +z +DD64'
>./configure

This won't work. I assume you need to export CC or put it on the configure and make lines?

>chatr /usr/local/lib/libintl.sl
>32-bit ELF shared library

This is a 32 bit lib.
Harichand M V
Advisor

Re: How to install gettext as 64bit library

I changed it in the Makefile

as
CC='cc +DD64'

But still I am getting a 32 bit library
:(
Dennis Handly
Acclaimed Contributor

Re: How to install gettext as 64bit library

>I changed it in the Makefile: CC='cc +DD64'

If this is IN the makefile, you don't use quotes. Also, you typically add options like +DD64 to CCFLAGS not to cc.

In any case, what does the make output show for a simple/first compile? Do you see +DD64 anywhere?
Harichand M V
Advisor

Re: How to install gettext as 64bit library

Still I am getting only 32 bit library
Dennis Handly
Acclaimed Contributor

Re: How to install gettext as 64bit library

What does one compile line and the final link line look like?
Are you using cc or gcc to compile?
Jeeshan
Honored Contributor
Solution

Re: How to install gettext as 64bit library

collect the latest gettext from here

http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.17/
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: How to install gettext as 64bit library

>ahsan:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.17/

There is no 64 bit version there but the source is available to port. Of course you would also have to port libiconv.
Jeeshan
Honored Contributor

Re: How to install gettext as 64bit library

>Dennis

There is 64 bit version. Did you tell me without checking? I think so
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: How to install gettext as 64bit library

>ahsan: There is 64 bit version. Did you tell me without checking?

No, I burst both depots and I didn't see them.