This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 1000001] New: undefined reference to `__asctime_r'
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Thu, 12 Jun 2003 20:00:59 +0100 (BST)
- Subject: [Bug 1000001] New: undefined reference to `__asctime_r'
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000001
Summary: undefined reference to `__asctime_r'
Product: eCos
Version: CVS
Platform: All
OS/Version: All
Status: ASSIGNED
Severity: normal
Priority: normal
Component: C library
AssignedTo: jifl@ecoscentric.com
ReportedBy: andrew.lunn@ascom.ch
The test farm is throwing up many linker errors with time functions. The
attached patch fixes all absent? builds.
The tests that fail do not have the POSIX time functions, ie asctime_r. The none
POSIX versions depend on the POSIX versions inline helper function. ie asctime()
needs __asctime_r(). __asctime_r() is disabled when the POSIX functions are
disabled, hence the linker error. The change i've mode puts these helper
functions back.
This is all a bit confusing, so please could Jifl take a look at the patch and
then give me the OK to commit it.
------- Additional Comments From andrew.lunn@ascom.ch 2003-12-06 16:32 BST -------
Created an attachment (id=1)
--> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1&action=view)
Proposed patch to fix the problem
------- Additional Comments From jifl@ecoscentric.com 2003-12-06 20:00 BST -------
This isn't quite right I think. With CYGFUN_LIBC_TIME_POSIX enabled, but e.g.
CYGIMP_LIBC_TIME_ASCTIME_R_INLINE disabled, applications will get a definition
of asctime_r directly when #including <time.h>.
I think the real solution is to revert the change Gary Thomas made on 27th Jan
this year, unfortunately I think at my request, to only build asctime_r.cxx etc.
when CYGFUN_LIBC_TIME_POSIX is defined. i.e. in time.cdl.
I'll attach a patch and try it.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You reported the bug, or are watching the reporter.