[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: trouble installing cxx



Package: cxx

Dannis 't Hart wrote:

On Fri, 2003-01-03 at 09:00, Alan Young wrote:
On 02 Jan 2003 23:45:31 +0100 Dannis 't Hart <dchart@dds.nl> wrote:
It complains:

chmod: failed to get attributes of
`usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin/crtbegin.o': No such file or
directory
chmod: failed to get attributes of
`usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin/crtend.o': No such file or
directory
Hi,

It might be a typo in the install script.  The paths you show above are
missing the initial / at the beginning. The paths should begin as /usr
not just usr.

Also, these two files are just symlinks into files that reside in your gcc
installation directory.  You might want to check you flipped your
/usr/lib/gcc-lib/ subdirectories correctly between 2.95 and 3.2.

Alan

Your hints convinced me to search for the install script. The error
appeared while executing /var/lib/dpkg/info/cxx.postinst.
Nevertheless, this script seemed correct; the relative paths are
intentional, from an unpacking directory. After looking closer, I
noticed it was actually an inconsistency in the RPM, because it made a
symlink to /usr/lib/crtbegin.o and /usr/lib/crtend.o. And of course
these became dangling, because Debian puts them in
/usr/lib/gcc-lib/alpha-linux/2.95.4

So, the workaround was to temporarily create 2 extra symlinks:

cd /usr/lib
ln -s /usr/lib/gcc-lib/alpha-linux/2.95.4/crtbegin.o crtbegin.o
ln -s /usr/lib/gcc-lib/alpha-linux/2.95.4/crtend.o crtend.o

And then the packages installed right. It consequently makes correct symlinks in
/usr/lib/compaq/cxx-6.3.9.7/alpha-linux/bin

So you can clean up the temporary symlinks in /usr/lib.

Thanks for pointing this out, I'll look for and try to fix this in the next cxx .deb release, in addition to the two other open cxx bugs.

I've got to wishlist migrating all of these packages to gcc-3.2 also... will do soon.

Zeen,
--

-Adam P.

GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe! <http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>





Reply to: