lkml.org 
[lkml]   [1996]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Problem building libproc.so.0.99
Stephen Davies wrote:
>
> I have just down-loaded procps-0.99a.tar.gz and tried to build it with
> the SHARED option turned on. It failed with:
>
> ld -shared -Wl,-soname,libproc.so.0.99 -o libproc.so.0.99 alloc.o compare.o
> devn
> ame.o output.o pwcache.o readproc.o signals.o snap.o status.o sysinfo.o version.
> o whattime.o
> ld: unrecognized option `-Wl,-soname,libproc.so.0.99'
>
> I can find no reference to a -W option for ld anywhere and the above syntax
> does not look like the -W option on gcc so I am at a loss.
>
> Where do I find the remedy please?
>
> Cheers and thanks,
> Stephen.
>
> PS. The static version seems to build without problem. (After I fixed a few
> library paths)
>
> ========================================================================
> Stephen Davies Consulting scldad@sdc.com.au
> Adelaide, South Australia. Voice: 61-8-2728863
> Computing & Network solutions. Fax : 61-8-2741015


I had the same thing happen here. Try the attached patch, which should be applied in the
./proc subdirectory. I think this is just a typo, as 'ld' does not understand the syntax
(I think it's particular to using gcc itself as the driver program, can someone correct me
if I'm wrong?).

- Steve

--
___________________________________________________________
|Steven N. Hirsch "Anything worth doing is worth |
|University of Vermont overdoing.." - Hunter S. Thompson |
|Computer Science / EE |
------------------------------------------------------------
*** Makefile.orig Sat Mar 30 09:50:14 1996
--- Makefile Sat Mar 30 09:31:20 1996
***************
*** 51,57 ****
$(AR) rcs $@ $^

$(SONAME): $(OBJ)
! ld -shared -Wl,-soname,$(SONAME) -o $@ $^
ln -sf $(SONAME) lib$(NAME).so

# AUTOMATIC DEPENDENCY GENERATION -- GCC AND GNUMAKE DEPENDENT
--- 51,57 ----
$(AR) rcs $@ $^

$(SONAME): $(OBJ)
! gcc -shared -Wl,-soname,$(SONAME) -o $@ $^
ln -sf $(SONAME) lib$(NAME).so

# AUTOMATIC DEPENDENCY GENERATION -- GCC AND GNUMAKE DEPENDENT
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:7.102 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site