delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/26/01:04:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 26 Oct 2001 01:03:16 -0400 (EDT)
From: Socheat Sou <ssou AT engin DOT umich DOT edu>
To: <cygwin AT cygwin DOT com>
Subject: Compiling XV
In-Reply-To: <Pine.SOL.4.33.0110260005350.28038-100000@azure.engin.umich.edu>
Message-ID: <Pine.SOL.4.33.0110260059540.28038-100000@azure.engin.umich.edu>
MIME-Version: 1.0

Has anyone been able to compile xv for cygwin?  I've futzed around with
the Makefiles a bit, but I must admit I'm not really sure if what I was
doing was right.  I edited the Makefile in the root install directory, and
changed a few lines:

'CC = gcc -ansi -traditional'
'CCOPTS = -O -I/usr/X11R6/include/ -L/usr/X11R6/lib/
'MCHN = -DLINUX'

I then commented out the entire section in the Makefile on TIFFs.  I tried
running make and it gave me some line about can't find 'linux/limits.h' in
the xv.h file.  I tried looking for limits.h, and I found it in
/usr/include.  Wasn't sure where to put it, so I put a copy in both
/usr/X11R6/include and /usr/X11R6/lib.  Running make didn't fix my
limits.h problem.

I started over again, making all the changes above, I also commented the
section out in the xv.h file that refered to linux/limits.h (not sure if
that was a legitimate fix, but it seemed to help):

/*
#ifdefLINUX
#  ifndef _LINUX_LIMITS_H
#    include <linux/limits.h>
#  endif
#endif
*/

Rerunning make again brings me to this new problem, which I have no idea
what to do:

Warning: resolving _sys_errlist by linking to __imp__sys_errlist
(auto-import)
fu000001.o(.idata$3+0xc): undefined reference to `templib_a_iname'
fu000002.o(.idata$3+0xc): undefined reference to `templib_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `templib_a_iname'
fu000004.o(.idata$3+0xc): undefined reference to `templib_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `templib_a_iname'
fu000006.o(.idata$3+0xc): more undefined references to `templib_a_iname'
follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__sys_errlist'
collect2: ld returned 1 exit status make: *** [xv]
Error 1


Does anyone have any advice on how to compile xv?  or better yet, where I
can get a binary for it?  Thanks,

Socheat





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019