bug-libtool
[Top][All Lists]
Advanced

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

Libtool bug (?) on AIX 5.2


From: Moeller, Uwe
Subject: Libtool bug (?) on AIX 5.2
Date: Thu, 18 Mar 2004 14:08:39 +0100

Hi there,

I link some shared libraries on AIX 5.2 using libtool version
ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08)

While some libraries are linked successfully for one library generating of
symbol list fails. This is the output:

/usr/bin/nm -B -BCpg .libs/librvsjcal.la-2.o | awk '{ if ((( == T) || ( ==
D) || ( == B)) && (substr(,1,1) != .)) { print  } }' | sort -u >
.libs/librvsjcal.exp
 Syntax Error The source line is 1.
 The error context is
                { if ((( >>>  == <<< 
 awk: 0602-502 The statement cannot be correctly parsed. The source line is
1.
 Syntax Error The source line is 1.

A look into libtool shows, that this command was changed and caused the
error.

# The commands to list exported symbols.
export_symbols_cmds="echo -**-; \$NM -BCpg \$libobjs \$convenience | awk '{
if (
((\\\$2 == \\\"T\\\") || (\\\$2 == \\\"D\\\") || (\\\$2 == \\\"B\\\")) &&
(subst
r(\\\$3,1,1) != \\\".\\\")) { print \\\$3 } }' | sort -u > \$export_symbols"

I figured out, that the command was changed here:

for cmd in $concat_cmds; do
        IFS="$save_ifs"
        eval cmd=\"$cmd\"
        $show "$cmd"
        $run eval "$cmd" || exit $?
      done

When I comment out 'eval cmd=\"$cmd\"' the command and libtools work fine.

What can I do to avoid this behaviour? Any hint is highly appreciated. Many
thanks in advance.

Best regards,

        Uwe Moeller

------------------------------------------
gedas deutschland GmbH
Business Unit SCM / rvs Systems
Pascalstrasse 11, D-10587 Berlin
Telefon/phone +49 (30) 3997-1437
Telefax/telefax +49 (30) 3997-1994
mailto:address@hidden
http://www.gedas.com 
------------------------------------------
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]