delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/06/17:48:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.1.20020106175325.00a7dec0@pop.erols.com>
X-Sender: prapp AT pop DOT erols DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sun, 06 Jan 2002 17:55:58 -0500
To: cygwin AT sources DOT redhat DOT com
From: prapp <prapp AT erols DOT com>
Subject: system details on my little ncurses struggles
Mime-Version: 1.0

Follow-up to my problems
(linking to ncurses failing)
with system info & how I reinstalled ncurses

Includes (#1) system info, (#2) how I reinstalled ncurses again, (#3) 
linker errors
  (#4) note on gdb crashing with statically linked version (same problem I 
suspect)

#1) Relevant System Info (I hope)
***********

binutils            20011002-1
cygwin              1.3.6-6
libncurses5         5.2-1
libncurses6         5.2-2
ncurses             5.2-7


   226k 2001/04/25 ...\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                   "cygncurses5.dll" v0.0 ts=2001/4/25 1:17

   201k 2001/09/30 ...\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                   "cygncurses6.dll" v0.0 ts=2001/9/29 22:42



#2) How I Reinstalled ncurses
*************************

re:
http://cygwin.com/ml/cygwin-announce/2001/msg00124.html

(The page doesn't really say what to do if you think your
setup is broken, so I'm extrapolating that the safest thing
is to remove all affected packages & reinstall as per
the page. So I just now repeated what I did before,
documenting it this time, partly lest I made any mistake
last time, partly so I submit an explanation here.)


-1) I removed libncurses5 (5.2-1), libncurses6 (5.2-2),
     & ncurses (5.2-7) & terminfo (5.2-1)

-2) I installed only ncurses (5.2-7)

-3) I installed libncurses (5.2-1), libncurses 6 (5.2-2),
      and terminfo (5.2-1).

I still don't have /usr/include/ncurses/ncurses_dll.h,
(although maybe this is ok ?)
and my link still fails.

So I'm repeating my mistake, or I still have the configuration
problem, or ... ?


(PS: We can actually build successfully if we use
   -DBROKEN_LINKER -static
so perhaps this suggests my bintools is out-of-date ?)


#3) Linker Error
********************

Oh, and sorry that I omitted the following (that was
another mistake I made).
My "failing" linker error looks like so:

... undefined reference to `acs_map'
... undefined reference to `acs_map'
... undefined reference to `acs_map'
... undefined reference to `acs_map'
... undefined reference to `acs_map'
... more undefined references to `acs_map' follow
collect2: ld returned 1 exit status
make: *** [llines] Error 1


#4) gdb problem (looks suspiciously like the same problem)
*****************************

PS:
If I build with -static and -DBROKEN_LINKER
I can run ok, unless I try to run thru gdb, in
which case I segfault. Stepping thru, I find the
segfault is at the first reference to COLS.
I #defined COLS & LINES as a temporary fix to see if
I could then use gdb, but then it segfaults at the
first reference to acs_map. At that point I decided
I might be on the wrong road :)




--
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