Please refrain from continually changing the subject line of your messages, unless there is a real need to start a NEW thread. So far, all of your messages are all about the same general thing -- problems linking to ncurses -- but since you keep changing the subject line it screws up threading. Don't do that.
prapp wrote: > 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 ?) Yes, that is okay. Everything is fine. ncurses_dll.h is no longer used/needed, as of 5.2-7. > 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 ?) Sorry -- this is a known problem with ncurses. I thought you knew about that, since you had searched the archives. The current version of ncurses, 5.2-7, requires that you -DBROKEN_LINKER for both -static and dynamic builds. Try compiling with -DBROKEN_LINKER, but link dynamically (without -static) > #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 A-ha! This is the BROKEN_LINKER problem. > #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 :) Try to link dynamically with -DBROKEN_LINKER first. Then we can investigate wacky COLS gdb problems. --Chuck -- 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/