1823914 Members
3091 Online
109667 Solutions
New Discussion юеВ

Re: gcc 3.4.2 on 11.11

 
SOLVED
Go to solution
Ronnie Towne
Occasional Advisor

gcc 3.4.2 on 11.11

I installed using the depot available @ SPAAC, along with all build & runtime dependencies. After installing, I get:

bash-2.04# gcc --version
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libintl.sl
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)

OK. Made a link to the only version of libintl.sl on my system (libintl.sl.1 in gnome), run it again and I get the following:

bash-2.04# gcc --version
/usr/lib/dld.sl: Unresolved symbol: libintl_bindtextdomain (code) from gcc
ABORT instruction (core dumped)

Now I'm getting a bit saddened by all this extra work. ;-)

Am I headed down the path of frustration? I thought libintl.sl was included with gettext, but I cannot find it.

Any ideas?

Thanks in advance.
Hi. I'm akafoo
21 REPLIES 21
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

libintl.sl is provided by gettext.

Could you post output from :
. ldd /path/to/your/gcc
. ls -l /usr/local/lib/libintl*
. ls -l /opt/gnome/lib/libintl*

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.4.2 on 11.11

This build has internationalization (locale support) enabled.

Though shallt install that too.
(one of the reasons I always configure my builds with --disable-nls)

http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.9.2/

And if you look at the run time dependencies, you'll see that you also need http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.14.1/

I /think/ that the other deps as listed on http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.2/ are void, but if you get more errors, you might need those too.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Fred,

bash-2.04# ldd /usr/local/bin/gcc
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libintl.sl => /usr/local/lib/libintl.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/opt/gnome/lib/libiconv.sl.2 => /opt/gnome/lib/libiconv.sl.2


bash-2.04# ls -l /usr/local/lib/libintl*
lrwxr-xr-x 1 root sys 27 Nov 2 10:00 /usr/local/lib/libintl.sl -> /opt/gnome/lib/libintl.sl.1

bash-2.04# ls -l /opt/gnome/lib/libintl*
-rw-r--r-- 1 bin bin 53552 Nov 27 2002 /opt/gnome/lib/libintl.a
-rw-r--r-- 1 bin bin 785 Nov 27 2002 /opt/gnome/lib/libintl.la
lrwxr-xr-x 1 bin bin 12 Nov 1 15:32 /opt/gnome/lib/libintl.sl -> libintl.sl.1
-r-xr-xr-x 1 bin bin 57344 Nov 27 2002 /opt/gnome/lib/libintl.sl.1


Thanks,
rwt
Hi. I'm akafoo
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Merijn,

I installed gettext, along with:

autoconf 2.59 autoconf
bison 1.875 bison
db 4.2.52 db
flex 2.5.4a flex
gawk 3.1.4 gawk
gcc 3.4.2 gcc
gettext 0.14.1 gettext
libiconv 1.9.2 libiconv
m4 1.4.2 m4
make 3.80 make
texinfo 4.7 texinfo

all at the same time, and all from the SPAAC repository.

Thanks,

rwt
Hi. I'm akafoo
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

Could you try removing the link you made (sorry for the hard job destroyed :).

You'd better add /opt/gnome/lib in front of your LD_LIBRARY_PATH env variable.
export LD_LIBRARY_PATH=/opt/gnome/lib:$LD_LIBRARY_PATH
then issue "ldd gcc" and "gcc --version"

If successfull, add LD_LIBRARY_PATH line to your profile.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

To show it's there:

bash-2.04# env
PWD=/
TZ=EST5EDT
SHLIB_PATH=/opt/gnome/lib:/usr/local/bin
HOSTNAME=red
LD_LIBRARY_PATH=/opt/gnome/lib:/usr/local/bin
(etc)

bash-2.04# ldd /usr/local/bin/gcc
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libintl.sl
/usr/lib/dld.sl: No such file or directory

bash-2.04# gcc --version
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libintl.sl
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)

Not much better, methinks.
Hi. I'm akafoo
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.4.2 on 11.11

The message is obvious: /usr/local/lib/libintl.sl cannot be found/opened.

*IF* it is installed, *where* is it installed?

if it is indeed in /usr/local/lib, are the permissions so that you can read it? Or is it a symlink to something non-existent?

Easy solution if it's installed somewhere else, is to make /usr/local/lib/libintl.sl point to the existing libintl.sl by a symlink

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

Sounds like your gcc is linked with absolute pathes to libs in it...

On the other hand, it sounds strange that your gettext install did not brought you those libs in /usr/local/lib.

Regards,

Fred

--

"Reality is just a point of view." (P. K. D.)
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11


The message is obvious: /usr/local/lib/libintl.sl cannot be found/opened.

*IF* it is installed, *where* is it installed?

if it is indeed in /usr/local/lib, are the permissions so that you can read it? Or is it a symlink to something non-existent?

Easy solution if it's installed somewhere else, is to make /usr/local/lib/libintl.sl point to the existing libintl.sl by a symlink


libintl.sl is installed, and when I link to it, I get:

bash-2.04# gcc --version
/usr/lib/dld.sl: Unresolved symbol: libintl_bindtextdomain (code) from gcc
ABORT instruction (core dumped)

It's more what you said earlier- it appears gcc was installed hard-linked.

Is there a way with the .depot to install it unlinked? I can't think of one, but asking is always the way. I just need it to work so I can recompile it to my liking.
Hi. I'm akafoo
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

Don't know where you got gettext and other packages, but you should better get all from the same source (for example : http://gatekeep.cs.utah.edu/hppd/hpux/) and restart install.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.4.2 on 11.11

No, to me it sounds like the two installs don't match. That sucks big time.

/personally/ I'd advice you to fetch all depots afresh from http://hpux.connect.org.uk/

Though I know it's a lot of work, I think it's the safest.

If you don't like depots (grin), or you have no objections to compressed archives and locale-disabled builds, take mine from http://mirrors.develooper.com/hpux/
Installation instructions on the site.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Fred/Merijn,

I obtained all software installed from the Porting Center at EDU Utah.

I will now unload everything and try software from develooper.

Instead, maybe I'll go back to bed. ;-)

Thanks so far.
Hi. I'm akafoo
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Blah. Ditto.

This time I installed libiconv, gettext, m4, bison and flex packages before installing gcc,
then gcc,
then autoconf, db, gawk, libiconv, make, and texinfo.

All from .depot files from http://hpux.connect.org.uk.

Poop.
Hi. I'm akafoo
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

And did it worked ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Nope.

Ditto=same result.
Hi. I'm akafoo
H.Merijn Brand (procura
Honored Contributor
Solution

Re: gcc 3.4.2 on 11.11

Blah, ditto from develooper????

a5:/u/usr/merijn 101 > chatr /usr/local/pa20_32/bin/gcc
/usr/local/pa20_32/bin/gcc:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
explicit unloading enabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled
shared library private mapping disabled
shared library text merging disabled
a5:/u/usr/merijn 102 >

gcc is in that case not on /usr/local/bin, but undef /usr/local/pa20_32/bin (or .../pa20_64/bin if you got the 64bit build)

Please be sure you gor that first in your $PATH

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ronnie Towne
Occasional Advisor

Re: gcc 3.4.2 on 11.11

Getting it done now. Thanks for your assistance.
Hi. I'm akafoo
Fred Ruffet
Honored Contributor

Re: gcc 3.4.2 on 11.11

It would be nice to tell us what was wrong...

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.4.2 on 11.11

I'd rather hear what was *right* :)

And please asign points to *all* answers.
0 points to answers that were just annoying, or 1 for, thanks but no thanks.
All info you pass us through those points will be helpful to others in the future.
Maybe I'll even change my site to reflect this newly acquired knowledge.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Roger Storvik
Advisor

Re: gcc 3.4.2 on 11.11

Yes! We would very much like to know the solution to this one.
I have the same problem myself. Tried to install gcc.. In desparation I also installed gettext 0.14.1, and got the same problem as with gcc.

Before this is solved I am not able to install more depots from the HPUX porting centre..

Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
Roger Storvik
Advisor

Re: gcc 3.4.2 on 11.11

Solved it! :)

Had to remove the gettext package completely and reinstall it. Somehow the file:
-r-xr-xr-x 1 root sys 45056 May 29 2002 /usr/local/lib/libintl.sl

It did not update even if I selected "match what target has" in swinstall when updating from an older gettext package.

After removing recode (dependent of gettext) and gettext, then reinstall gettext GCC suddenly executed like it should.. :)

Now I have this file instead:
-r-xr-xr-x 1 root sys 53248 Sep 19 15:58 /usr/local/lib/libintl.sl

Could have saved me a days work if Ronnie would state the solution, but..

Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -