Help needed building xv 3.00a ..... Solaris 2.2

Help needed building xv 3.00a ..... Solaris 2.2

Post by Eddie Rober » Sat, 04 Dec 1993 03:10:23



I'm trying to build xv 3.00a on a SS10 running Solaris 2.2 using the
gcc compiler. Everything compiles fine , but the linker
complains generating the following:

Undefined                       first referenced
 symbol                             in file
 sigblock                            xvmisc.o
 gethostname                         xv.o  (/usr/lib/libnsl.so.1?)
 ld: fatal: Symbol referencing errors. No output written to xv
 *** Error code 1

The two functions (sigblock  gethostname) are part of SunOS/BSD
Compatibility Library, but if I add the libubc library I
get even more problems.  

Any ideas??????

Thanks in advance
Eddie Roberts

 
 
 

1. xv compilation on Solaris 2.2

I have tried to compile xv on a SPARC Classic running Solaris 2.2.
The problem is that some symbols are undefined, and I am used
to seeing these in the ucb libraries.  Below are the makefile
and the error output.  If anyone has been successful at xv on this
system, I'd appreciate any hints.

Makefile:

CC = gcc -g -traditional
CCOPTS = -O -L/usr/openwin/lib -I/usr/openwin/include
BACKING_STORE = -DBACKING_STORE
UNIX = -DSVR4
JPEG = -DHAVE_JPEG
JPEGDIR = jpeg
LIBJPEG = $(JPEGDIR)/libjpeg.a
JPEGINCLUDE = -I$(JPEGDIR)
TIFF = -DHAVE_TIFF
TIFFDIR = tiff
LIBTIFF = $(TIFFDIR)/libtiff.a
TIFFINCLUDE = -I$(TIFFDIR)
PDS = -DHAVE_PDS
RAND = -DNO_RANDOM

This is the error output:

gcc -g -traditional -o xv -O -L/usr/openwin/lib -I/usr/openwin/include -DHAVE_JPEG -Ijpeg -DHAVE_TIFF -Itiff -DHAVE_PDS      -DBACKING_STORE     -DSVR4  -DNO_RANDOM       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 xvgrab.o vprintf.o  xvbrowse.o xvtext.o xvpc

x.o -lX11 jpeg/libjpeg.a tiff/libtiff.a -lm
Undefined                       first referenced
 symbol                             in file
sigblock                            xvmisc.o
gethostname                         xv.o  (/usr/lib/libnsl.so.1?)
ld: fatal: Symbol referencing errors. No output written to xv
*** Error code 1
make: Fatal error: Command failed for target `xv'

Any fixes would be greatly appreciated.  If you want to send them direct,
I'll post the fix to the net.

Thanks,

Jim de Haseth
--
------------------------------------------------------------------------------


University of Georgia

2. How I can get a list special characters ?

3. HELP: Building 'xv' under Solaris 2.3

4. IIT 387 problems

5. Need help changing disk partitions in Solaris 2.2

6. Suggestion - differential file system

7. Need help compiling X11R5 on Solaris 2.2

8. Mk-Linux stops booting

9. Solaris 2.2 problem building libg++-2.4 if 2.3 is installed

10. Summary - Building olvwm for Solaris 2.2

11. Problem on building X11R5 on SPARC LX running Solaris 2.2

12. any point to building X11R6 with ThreadedX under Solaris 2.2 or 2.3?

13. Can't build XllR5 under Solaris 2.2