bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trace() help


From: John Bleichert
Subject: Re: trace() help
Date: Fri, 7 Jun 2002 08:04:07 -0400 (EDT)

On Fri, 7 Jun 2002, Thomas Dickey wrote:
> On Thu, Jun 06, 2002 at 09:29:51PM -0400, John Bleichert wrote:
> > Hello All
> > 
> > I've downloaded and built ncurses so I could get libncurses_g.a and the 
> > trace() function, but my compiler always complains about an "undefined 
> > reference to `trace', even if I #define TRACE in the code. Are there any 
> 
> The configure script adds modules to the library if it detects TRACE defined,
> so they will be built when the library is compiled.  You should be able to
> check this by using nm on libncurses_g.a, e.g.,
> 
> nm libncurses_g.a |fgrep trace
> 
> lib_trace.o:
> 00000214 T _nc_retrace_int
> 0000023c T _nc_retrace_ptr
> 00000270 T _nc_retrace_sp
> 00000298 T _nc_retrace_win
> 00000004 D _nc_tputs_trace
> 000000c4 T _tracef
> 00000000 T trace
> 00000004 b tracefp
> lib_tracebits.o:
>          U _nc_trace_buf
> 000000ac T _nc_trace_ttymode
> 00000190 T _nc_tracebits
> lib_tracechr.o:
> 00000000 T _tracechar
>          U _nc_retrace_int
>          U _nc_trace_ttymode
>          U _tracef
>          U _tracef
>          U _tracef
>          U _tracef
> trace_buf.o:
> 00000000 T _nc_trace_buf
> trace_tries.o:
> 000000c0 T _nc_trace_tries
>          U _tracef
>          U _nc_trace_buf
>          U _tracef
> 
> Simply defining TRACE in your program won't affect that.

Ah. Well, I set trace in my shell (bash) and reconfigured:

address@hidden ncurses-5.2]# set TRACE
address@hidden ncurses-5.2]# ./configure --with-shared --with-normal 
--with-debug

and after building ncurses nm gives me similar output to that you provided 
above (I can paste it in here if you'd like) but the compiler still 
doesn't recognize trace(). For simplicity's sake, I've just called 
        
        trace(TRACE_DISABLE);

after initscr() but still no dice. The odd thing is that if I (just for 
yucks) ignore the fact that trace() is a void function and do:

        k = trace(TRACE_DISABLE);

I get this error:

 interface2.c: In function `monitor_display':
 interface2.c:88: void value not ignored as it ought to be

So apprently it can find the trace module, so I must not be using it 
correctly.

Thanks for the link to the archive! I don't see it in my mail headers, but 
I may need to fiddle with the header vis.  settings in pine. I'll look 
through the archives for anything related. 

Thanks again - JB

PS: This is a fairly vanilla RedHat 7.2 system.


> 
> > samples or hints anywhere on how to use this function? The man page doesnt 
> > give me enough info, or I'm a putz ;-)
> > 
> > Also, are there archives of this list anywhere? I have a half-dozen other 
> > questions which would probably be answered in an archive set.
> 
> The list is archived (look at the mail header):
> 
>       List-Archive: <http://mail.gnu.org/pipermail/bug-ncurses/>
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses
> 

/* 
 * John Bleichert
 * address@hidden
 * http://vonbek.dhs.org/latest.jpg
 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]