Portál AbcLinuxu, 26. prosince 2025 16:26
libkcal končí:
grep: /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/libstdc++.la: No such file or directory /bin/sed: can't read /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/libstdc++.la: No such file or directory libtool: link: `/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/libstdc++.la' is not a valid libtool archiveRemergnul jsem grep, gawk, coreutils, libtool a nepomohlo to. Co s tím prosím vás ještě souvisí?
/etc kfindem pod rootem (já vím, jsem barbar
). V profile.csh byla jen nějaká cesta. Jinak nic.
Jen mám pocit, že /etc nestači. To spíš /usr. Řekl bych, že by tam mohly být nějaké zbytky GCC 4, které linkeru našeptávají špatnou cestu. Mimochodem, jak jde přeložit jednoduchý program v C (gcc -o program program.c) a C++ (g++ -o program program.cc)? Jako zdroják stačí toto:
int main() {
return 0;
}
$ gcc -o cc cc.cc /tmp/ccaoWqxa.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status
fix_libtool_files.sh
fix_libtool_files.sh 4.0.2. Podle všeho opravil hafo věcí. Za chvíli se uvidí.
usage() {
cat >> "USAGE_END"
Usage: fix_libtool_files.sh >old-gcc-version< [--oldarch >old-CHOST<]
Where >old-gcc-version< is the version number of the
previous gcc version. For example, if you updated to
gcc-3.2.1, and you had gcc-3.2 installed, run:
# fix_libtool_files.sh 3.2
If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
but you now have CHOST as i686-pc-linux-gnu, run:
# fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu
Note that if only the CHOST and not the version changed, you can run
it with the current version and the '--oldarch >old-CHOST<' arguments,
and it will do the expected:
# fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu
USAGE_END
exit 1
}
if [[ $2 != "--oldarch" && $# -ne 1 ]] || \
[[ $2 == "--oldarch" && $# -ne 3 ]]
then
usage
fi
ARGV1=$1
ARGV2=$2
ARGV3=$3
source /etc/profile
source /sbin/functions.sh
if [[ ${EUID} -ne 0 ]] ; then
eerror "${0##*/}: Must be root."
exit 1
fi
# make sure the files come out sane
umask 0022
if [[ ${ARGV2} == "--oldarch" ]] && [[ -n ${ARGV3} ]] ; then
OLDCHOST=${ARGV3}
else
OLDCHOST=
fi
AWKDIR="/lib/rcscripts/awk"
if [[ ! -r ${AWKDIR}/fixlafiles.awk ]] ; then
eerror "${0##*/}: ${AWKDIR}/fixlafiles.awk does not exist!"
exit 1
fi
OLDVER=${ARGV1}
export OLDVER OLDCHOST
einfo "Scanning libtool files for hardcoded gcc library paths..."
/bin/gawk -f "${AWKDIR}/fixlafiles.awk"
# vim:ts=4
equery b fix_libtool_files.sh [ Searching for file(s) fix_libtool_files.sh in *... ] sys-devel/gcc-3.4.4-r1 (/sbin/fix_libtool_files.sh)
Asi je všecko udělaný v tom awku.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.