public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] waitpid and alarm?
@ 2001-01-16  5:51 Colin Ford
  2001-01-16  6:36 ` Bart Veer
  0 siblings, 1 reply; 7+ messages in thread
From: Colin Ford @ 2001-01-16  5:51 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I've seen this really strange problem. I'm compiling
on Linux using a gcc mips cross compiler for my R3000
target. I've got the latest cvs version of eCos and the network
and snmp modules.

In the module net/snmp/agent/current/src/mibgroup/util_funcs.c
the functions 'waitpid' and 'alarm' are used within the functions
wait_on_exec and restart_hook. Now these two functions are
not used but are defined at global scope. This means that they
end up in the libtarget.a with the functions 'waitpid' and 'alarm'
undefined. 

Thats all well and good and everything compiled. I then noticed
that in my compile line I had -ffunction-sections and -fdata-sections
so I took thoes out as they interfered with gdb and tried then to
re-compile. 

Could I get it to compiler after that? not a chance! It seemed to think
in the link that waitpid and alarm where undefined. Only putting 
-ffunction-section back in aliviated the problem?

To get around the problem I #if them out and took out the
-ffunction-section.
That then allowed me to compile again. I think that maybe these
functions
need to be hashed out in the cvs code until waitpid and alarm can
be supported.

Many thanks for allowing me to rant,
Col.

-- 
===========================================
Colin Ford               PipingHot Networks
Software Engineer        +44 (0)1364 655510 

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

end of thread, other threads:[~2001-01-17  5:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16  5:51 [ECOS] waitpid and alarm? Colin Ford
2001-01-16  6:36 ` Bart Veer
2001-01-16  7:38   ` Colin Ford
2001-01-16  7:46     ` Gary Thomas
2001-01-16  9:52       ` Jonathan Larmour
2001-01-17  5:33         ` Colin Spier
2001-01-16  8:19     ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).