Compiling XV on 2.4 problems

Compiling XV on 2.4 problems

Post by Dave Keen » Tue, 10 May 1994 05:34:56



I am trying to compile xv on a Sun with the Sun C 2.0 and get this error
at the end??

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

 If anyone has compiled this can I get your fix, like a amakefile or
 something that would get me thru this problem.
 Dave

--
Dave Keenen                     "Everything is a struggle in UNIX"
Trident Data Systems
210-655-5007                    FAX 210-655-8672

 
 
 

Compiling XV on 2.4 problems

Post by Jason Jiang (Fi » Tue, 10 May 1994 18:59:15


: I am trying to compile xv on a Sun with the Sun C 2.0 and get this error
: at the end??

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

:  If anyone has compiled this can I get your fix, like a amakefile or
:  something that would get me thru this problem.
:  Dave
I think that is a porting problem of SunOS 4.1.x and Solaris 2.x.
You can change those functions as following:
    srandom --> srand48
    random --> rand
    sigblock --> sighold
    gethostname --> sysinfo(SI_HOSTNAME, ...)
Or you can link the library under /usr/ucblib, but this seems cause
some dynamic-linking problem. If you take this way, you should set
the environment variable LD_LIBRARY_PATH every time you want to run
"xv".

: --
: Dave Keenen                   "Everything is a struggle in UNIX"
: Trident Data Systems
: 210-655-5007                  FAX 210-655-8672


 
 
 

Compiling XV on 2.4 problems

Post by Robert Montj » Tue, 10 May 1994 23:16:06


Hi.



Quote:>I think that is a porting problem of SunOS 4.1.x and Solaris 2.x.
>You can change those functions as following:
>    srandom --> srand48
>    random --> rand

Actually you should use lrand48. rand is not really "random".

Quote:>    sigblock --> sighold
>    gethostname --> sysinfo(SI_HOSTNAME, ...)
>Or you can link the library under /usr/ucblib, but this seems cause
>some dynamic-linking problem. If you take this way, you should set
>the environment variable LD_LIBRARY_PATH every time you want to run
>"xv".

If you are going to use the Berkeley libs you should use
/usr/ucb/cc for compiling and linking so you are sure to
get the right include and library files. You will not
need to set the LD_LIBRARY_PATH either.

--
Rob Montjoy                  - Computer Engineer/Systems Administrator
University of Cincinnati     - Electrical and Computer Engineering

--  To Save the Earth. The Humans must die.

 
 
 

Compiling XV on 2.4 problems

Post by Blair Zaj » Tue, 10 May 1994 23:34:40


Add the following in xv.h:

#ifdef SVR4
#define HOLD_SIG         sighold(SIGALRM)
#define RELEASE_SIG      sigrelse(SIGALRM)
#define PAUSE_SIG        sigpause(SIGALRM)
#else
... original coding left here
#endif

where the original coding is:

#define HOLD_SIG         sigblock(sigmask(SIGALRM))
#define RELEASE_SIG      sigblock(0)
#define PAUSE_SIG        sigpause(0)

If you did xmkmf SVR4 will be defined automatically.  If you use the
Makefile then you need to uncomment the SVR4 line.

Blair

 
 
 

Compiling XV on 2.4 problems

Post by Bob Campbe » Sat, 28 May 1994 00:31:30



>Hi.



>>Or you can link the library under /usr/ucblib, but this seems cause
>>some dynamic-linking problem. If you take this way, you should set
>>the environment variable LD_LIBRARY_PATH every time you want to run
>>"xv".

>If you are going to use the Berkeley libs you should use
>/usr/ucb/cc for compiling and linking so you are sure to
>get the right include and library files. You will not
>need to set the LD_LIBRARY_PATH either.

Even better, use the new -R switch to set the run-time libraries.
-R allows you to link against uninstalled libraries (with -L)
and then run with the "to-be-installed" location of the libraries.
THis has the added benefit of not needing the LD_LIBRARY_PATH
evironment variable, since the binary itself know where to look
for the libraries.  Syntax for -R is just like -L.

Also, I've never had a problem with any clients I've built in ucb
mode with the sparcworks compiler, you just need to add
-I/usr/ucbinclude to you build.

---
Bob Campbell                    Student Assistant System Manager
High Altitude Observatory       National Center for Atmospheric Research

      *****        "Precisely, around here "religion" means
home *|_o_o|\\      Apple vs. IBM, WP vs W4W,
brew *|. o.| ||     MickeySoft vs. The Free World,
      | o  |//      X windows vs The Forces of Darkness."
      ======                           - random net post

 
 
 

1. xv 3.10a problem on solaris 2.4 x86 machine?

Hi,  I am using a #9 GXE 64 pro PCI card in a
solaris 2.4 pentium machine.  I compiled xv 3.10a
several days ago by using xfree86 3.11.  But I got
a problem in using xv under Xfree86 3.11.  If I load sevral files the same
time then click the "next" button to view the pi
cturrrr some how, xv program got hanging there and didn't functttt
any more.  I have to use ^c in the xterm to kill the xv program
and reinitiate it.  Does anyone have the same problem?
Any solution?

2. Can JDK 1.02 coexist with Communicator 4.03?

3. Problems Porting XV-3.10 to 2.4

4. Matashita CD-ROM Driver

5. 2.4 broked my xv and xpaint!

6. IDE CD-Recorders supported?

7. 'X Error: BadRequest' using 'xv' on Solaris 2.4

8. How do I get to the previous window in X (fvwm)?

9. Configure and compile errors in 2.4.5ac20 and 2.4.5ac21

10. Compiling XV; general porting problems

11. Problems compiling xv...

12. Compiling 2.4 problems and cable modem

13. Problem compiling wu-ftpd (2.4) on Redhat 3.0.3 (1.2.13 Kernel)