public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP]  Where is defined TEST_ERRNO when 'make UCLINUX=1'?
@ 2013-07-19 14:28 Benoit Marcot
  2013-07-30 17:24 ` chrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Benoit Marcot @ 2013-07-19 14:28 UTC (permalink / raw)
  To: ltp-list@lists.sourceforge.net

Hi,

I am building LTP for UCLINUX, and I went through an undefined symbol TEST_ERRNO with 'make UCLINUX=1'.

As far as I understand, making with 'UCLINUX=1' defines also _USC_LIB_ in lib/Makefile:

ifeq ($(UCLINUX),1)
CFLAGS                  += -D_USC_LIB_
endif

In include/usctest.h, if _USC_LIB_ is defined then TEST_ERRNO is declared as extern, hence still not defined:

#ifdef  _USC_LIB_
extern int TEST_ERRNO;
#else

Finally, the last place where TEST_ERRNO could be defined is in lib/parse_opts.c; if UNIT_TEST is somewhere defined:

#if UNIT_TEST
int TEST_ERRNO;
...

So my questions are: should I compile with CFLAGS += -DUNIT_TEST=1? How to use parse_opts.c?

Thanks,

--
Benoit Marcot


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-05 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19 14:28 [LTP] Where is defined TEST_ERRNO when 'make UCLINUX=1'? Benoit Marcot
2013-07-30 17:24 ` chrubis
     [not found]   ` <1C23526A7C42DB45BBF55B662C7C530E25B4AAF0D3@BUNGLE.Emea.Arm.com>
2013-08-01 17:04     ` chrubis
     [not found]       ` <1C23526A7C42DB45BBF55B662C7C530E25B4B64541@BUNGLE.Emea.Arm.com>
2013-08-05 12:38         ` chrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox