HP3000-L Archives

October 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Simona Constantin <[log in to unmask]>
Reply To:
Simona Constantin <[log in to unmask]>
Date:
Thu, 12 Oct 2000 20:45:19 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
configuration information: MPE/iX 6.5, egcs-2.91.57

The  problem is that my attempt to link some objects  from an archive in
a shared library ended with error.
*******************************************************************************

$export ECHO=1
$ld -b -ashared -o libop.sl libop.a
LinkArgs: -o libop.sl
LocalLibs:
DLibs:
Lopts:
Objs:   ./libop.a
callci(xeq linkedit.pub.sys "buildxl XL005600;limit=10 ";parm=7)->'2'

callci(xeq linkedit.pub.sys "buildrl RL005600 ";parm=7)->'2'

CONTENTS OF LINKEDIT INDIRECT FILE:
:purge OB005600
:copy ./libop.a,OB005600
addxl from=OB005600;to=XL005600;merge;share
addxl from=RL005600;to=XL005600;merge;share
END OF INDIRECT FILE
LINK Command: xeq linkedit.pub.sys</tmp/ld0056009A.aad;parm=7
callci(xeq linkedit.pub.sys</tmp/ld0056009A.aad;parm=7)->'2'
purge OB005600
      ^

File "./OB005600" not found. No purge done. (CIWARN 383)
1 OBJECT FILE HAS BEEN ADDED.
ENCOUNTERED UNEXPECTED END OF FILE IN "RL005600" (LINKERR 2002)
LINK FAILED (LINKERR 1116)
0 OBJECT FILES HAVE BEEN ADDED

   linkedit.pub.sys;parm=7
Program terminated in an error stat. (CIERR 976)
callci(copy XL005600,./libop.sl)->'2'
ld: error: link failed
************************************************************************************************************************

In spite of the error message and the code returned, the shared library
was ok. But i want to put this command in a make file and i think the
error  will confuse  make.
So i tried to fix it.

The command that caused the error was:
addxl from=RL005600;to=XL005600;merge;share
because the RL library was empty (no objects file for ld). For
correcting this i added the following test before that command (arround
line 409 in ld.ccg):
if(file_obj>10)
    ...
fi
Now ld  works just fine but i'm not completely sure that my fix is ok.
Please comment.

Is there any documentation about CCG scripting language?

ATOM RSS1 RSS2