From: Steve D. <onr...@ya...> - 2007-10-25 18:40:39
|
Hello, here are my comments in [brackets] Regards, /steverino2 -----Original Message----- From: Danny Backx [mailto:dan...@sc...] Sent: Thursday, October 25, 2007 8:32 AM To: onr...@ya... Cc: ceg...@li... Subject: Re: [Cegcc-devel] A few loose ends On Sun, 2007-10-21 at 21:09 -0700, Steve DeLaney wrote: > Hi there, well I am continuing to build more stuff. Generally this is > going well but I noted a few loose ends > > A) missing select.h in /opt/cegcc install. Copied from the cegcc > newlib includes > B) missing select.h in /opt/cegcc install. Copied from x86 FC6 Did you mis-type something here ? Both A and B are about select.h . [oops. Sorry for the mistake. B) was bits/sigset.h. I copied this from x86 /usr/include/bits] I'm not entirely sure whether this is an error on our part. In the newlib sources, select.h is only present in newlib/libc/sys/linux/sys directory which appears to indicate it only needs to be installed for newlib on Linux, not for newlib on CE. Further, MSDN points out that select should be in winsock.h, which it is in our distributions. You'll say "I need to adapt my sources to pick that up". Yes, but there might be a good reason for this. If my memory serves me right, there are a few small differences between socket implemenation on Windows and Unix/Linux. One of them is that on Windows, they're part of Winsock, which needs to be initialized by calling WSAStartup before it works at all. [yes I agree with these comments. Winsock2 implements BSD style APIs including select. But references to select in source files fail in a cegcc build. Are you saying we should include winsock.h? I thought that cegcc is designed to use newlib as a standalone self-contained library. To use winsock would it Be better to use mingw32ce for this?] > C) missing regex.h in /opt/cegcc install. Copied from the cegcc newlib > includes Again, regex.h is in src/newlib/newlib/libc/sys/linux/include/regex.h which means newlib says it shouldn't be implemented on Windows CE. So I guess either you need to reconfigure newlib so it implements this on WinCE, or the solution you propose yourself - to implement regex separately. The latter is probably simpler. [yes I made a cegcc build of regex spencer now]. > D) missing some symbols in resource.h - was able to patch the needed > symbols from x86 FC6 Can you provide more detail ? [Struct rlimit was missing. Rlim_t was defined as__rlim_t and__rlim64_t But they are missing. So I defined these as __int32_t or __int64_t instead Setrlimit() is missing and I just bypassed it for now.] Danny > But now some symbols are missing for regex APIs (regcomp, regexec, > refgree) Should I download and build regex from sourceforge? > > http://gnuwin32.sourceforge.net/packages/regex.htm > > > /steverino2 -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info |