*BSD News Article 23640


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:1454 comp.os.386bsd.questions:6709
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!wongm
Newsgroups: comp.os.386bsd.misc,comp.os.386bsd.questions
Subject: Shared lib on FreeBSD ?
Message-ID: <CGBwAC.8qL@latcs1.lat.oz.au>
From: wongm@latcs1.lat.oz.au (M.C. Wong)
Date: Thu, 11 Nov 1993 13:03:48 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Lines: 48

Hi,
  I used to have Joerg Lohse and Pete Chown developed shared libs stuff
installed on my 386bsd, and all the program get compiled without any
complaints. Now that I have upgrade to FreeBSD, and I still keep all
those libraries : 
crt0_s.o        libcurses_s.a   libgnulib_s.a   libresolv_s.a   libutil_s.a
libc_s.a        libg++_s.a      libm_s.a        librpc_s.a

  I was trying to compile xv and used shared lib option of the ld supplied
together with the shared lib package but failed at link time :

gcc -g -traditional -o xv -O -Dbsd43 -I/usr/X386/include -DHAVE_JPEG -Ijpeg -DHAVE_TIFF -Itiff -DHAVE_PDS  -DGS_PATH=\"/usr/local/bin/gs\"  -DGS_LIB=\"/usr/local/lib/ghostscript\"  -DBACKING_STORE              xv.o xvevent.o xvroot.o xvmisc.o xvimage.o xvcolor.o xvsmooth.o  xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o xvalg.o  xvgifwr.o xvdir.o xvbutt.o xvpbm.o xvxbm.o xvgam.o xvbmp.o  xvdial.o xvgraf.o xvsunras.o xvjpeg.o xvps.o xvpopup.o xvdflt.o  xvtiff.o xvtiffwr.o xvpds.o xvrle.o xviris.o


b.o vprintf.o  xvbrowse.o xvtext.o xvpcx.o -L/usr/X386/lib -lX11 jpeg/libjpeg.a tiff/libtiff.a -lm
tif_dirinfo.c:296: Undefined symbol ___assert referenced from text segment
tif_write.c:489: Undefined symbol ___assert referenced from text segment
tif_dumpmode.c:60: Undefined symbol ___assert referenced from text segment
tif_dumpmode.c:65: Undefined symbol ___assert referenced from text segment
tif_dumpmode.c:103: Undefined symbol ___assert referenced from text segment
tif_dumpmode.c:107: Undefined symbol ___assert referenced from text segment
tif_lzw.c:463: Undefined symbol ___assert referenced from text segment
tif_lzw.c:537: Undefined symbol ___assert referenced from text segment
tif_lzw.c:642: Undefined symbol ___assert referenced from text segment
tif_lzw.c:0: More undefined symbol ___assert refs follow
*** Error code 1

Stop.

  So, I think I need to somehow rebuild one of the shared lib, and also I will
like to build some of the new lib that come with FreeBSD but were not included
in the original shared lib package. I wonder has anyone done so ? Since there
are some specific address we have to supply with makelib script for the data
and text , ie :

makelib source-lib image output-name version text data lib-number, for eg :
makelib /usr/lib/libcurses.a /shlib/libcurses_s libcurses_s 1 80050000 80060000 2
 
to build curses lib.

  I wonder if someone can help please ?

  Many thanks in advance and email replies please. Note that all of the 
previously compiled programs on 386bsd with this shared lib still work, but
I have trouble compile some of the new programs.

  Just wonder if this shared lib is still widely used and supported by FreeBSD
in the future or they have their own plan for shared lib in future release ?
-- 
- wongm@latcs1.lat.oz.au