HP3000-L Archives

February 2001, Week 3

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:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Thu, 15 Feb 2001 16:04:14 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (74 lines)
Forwarded from fellow programmer

> I am trying to compile and link a C++ program using G++ (gcc 2.95.1) on
> 6.0 pp2.  It needs to link to a shared library that I have created
> (/usr/lib/libtools.sl), and the link is failing with the following errors:
>
> Initial compile:
>
> > g++ -o dispatch -Wl,-ashared -Wl,-L/usr/lib -Wl,-ltools dispatch.cpp
> >                              ^
>
> > This duplicate specification overrides previous
> >  specification. (parswarn 8)
> >
> >    linkedit.pub.sys "link;from=^/tmp/ld018E0073.aaa;to=.
> >
> /dispatch;posix;share;cap=ph;xl=dcexl.hpdce.sys,othdxl.threads.sys;xl=/usr
> /lib/l
> > ibtools.sl,/usr/lib/libtools.sl,/lib/libm.sl,/lib/libc.sl";parm=7
> > Program terminated in an error state. (CIERR 976)
> > ld: error:  link failed
> > collect2: ld returned 1 exit status
> > gmake: *** [dispatch] Error 1
> > shell/iX>
>
> I tried to link manually after the compile:
>
> > shell/iX> ld dispatch.o -ashared -ltools -o dispatch
> >                               ^
>
> > This duplicate specification overrides previous specification. (parswarn
> 8)
> >
> >     linkedit.pub.sys
> "link;from=^/tmp/ld01570049.aaa;to=./dispatch;posix;share;c
> >
> ap=ph;xl=dcexl.hpdce.sys,othdxl.threads.sys;xl=/usr/lib/libtools.sl";parm=
> 7
> > Program terminated in an error state. (CIERR 976)
> > ld: error:  link failed
> > shell/iX>
>
> I also tried to bypass the POSIX ld by using linkedit manually:
>
> > HP Link Editor/iX (HP30315A.06.14) Copyright Hewlett-Packard Co 1986
> >
> > LinkEd>
> link;from=./dispatch.o;to=./dispatch;posix;share;cap=ph;xl=/SYS/HPDCE/D
> > CEXL,/SYS/THREADS/OTHDXL,/usr/lib/libtools.sl,/lib/libm.sl,/lib/libc.sl
> > PROGRAM ENTRY POINT "_start" NOT FOUND  (LINKERR 1001)
> > LINK FAILED  (LINKERR 1116)
> >
> > linkedit.pub.sys
> "link;from=./dispatch.o;to=./dispatch;posix;share;cap=ph;xl=/SY
> >
> S/HPDCE/DCEXL,/SYS/THREADS/OTHDXL,/usr/lib/libtools.sl,/lib/libm.sl,/lib/l
> ibc.sl
> > "
> > Program terminated in an error state. (CIERR 976)
> > shell/iX>
>
> Any ideas or help would be appreciated.
>
> Bruce A. James
> Programmer/Analyst
> [log in to unmask]
> http://www.eXegeSys.com
>
>
---------------------------------------------------
Plan now to attend the
eXegeSys eRP Users Conference 2001, Oct. 1-4, Downtown SLC.
Register today by visiting www.exegesys.com/erp2001/welcome.htm

ATOM RSS1 RSS2