HP3000-L Archives

September 2001, Week 1

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:
Bill Cadier <[log in to unmask]>
Reply To:
Bill Cadier <[log in to unmask]>
Date:
Fri, 7 Sep 2001 15:51:09 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (104 lines)
Hello Richard,

You need to add your ".o" files to an indirect file and then it
will work.  For example, the file 'indyfl' contains the line
"./add2.o" then,

LinkEd> buildxl tmpxl,1

LinkEd> addxl from=^indyfl;to=tmpxl
WARNING: ./add2.o HAS FILECODE 0
1 OBJECT FILE HAS BEEN ADDED.

LinkEd> exit

I don't quite have an answer as to why this works where
using the actual file name does not. Perhaps someone else
does? But this works!

If you set the environment variable "ECHO" in the shell
then you can see what 'ld' does which might be helpful
to you.

HTH,

Bill
HP/CSY

----- Original Message -----
From: "Richard Sheehan" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, September 07, 2001 3:30 PM
Subject: [HP3000-L] Help on Creating an XL from C object file.


> Hello,
>
> Here's our setup.
>
> We have successfully installed the GNU c compiler (gcc 2.95.2) on one of
> our test MPE/iX machines (MPE_IX C.60.02).
>
> file:test.c
> ----------------------------------
>
> #pragma intrinsic HPGETPROCPLABEL
>
> extern char* memcpy();
> extern int   memcmp();
>
> void change(char *value){
>   if ((memcmp(value,"Hello World", 11)) == 0)
>     (void) memcpy(value,"Hello Richard", 13);
>   else
>     (void) memcpy(value,"Hello John!",11);
> }
> ----------------------------------
>
> /usr/local/bin/gcc gcc -c test.c will produce test.o will have a BLANK
> code
>
> /usr/local/bin/gcc gcc -c test.c will produce a.out as a NMPRG
> ( I understand that this prog would not normally execute as it is - no
> main()- I was just giving it a try.)
>
> :file xyz=./test.o
>
> attempting to use LINKEDIT to build an XL,
> on test.o
> EXPECTED FILECODE NMRL FOR FILE "*XYZ"  (LINKERR 1124)
> 0 OBJECT FILES HAVE BEEN ADDED.
>
> :file *xyz=./a.out
> on a.out
> EXPECTED FILECODE NMRL FOR FILE "*XYZ"  (LINKERR 1124)
>
> I have search for this in the archive for this list, most of this
> traffic was from 1998 and 1999.
>
> There was indication that a version of LINKEDIT would produce errors
> were other versions would just produce a warning.
>
> Any help would be appreciated!
>
> Mark Klein?
>
> TIA
>
> Richard.
>
> --
> Richard Sheehan,
> Administrative Systems - IT Programmer Analyst
> Idaho State University Computing & Communications
> Campus Box 8037, Pocatello, ID 83209-8037
> Phone: 208.282.3861 - Fax: 208.282.3673
> Email: [log in to unmask]
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2