This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

system details on my little ncurses struggles


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]