| View previous topic :: View next topic |
| Author |
Message |
yoyofr
Joined: 25 Jun 2005 Posts: 23 Location: paris
|
Posted: Thu Jul 28, 2005 6:09 pm Post subject: issue in svn 792 |
|
|
It seems in latest svn there is an issue with __errno which is not defined.
I've to put it in my sourcecode in order to compile. |
|
| Back to top |
|
 |
jason867
Joined: 24 Jul 2005 Posts: 78
|
Posted: Thu Jul 28, 2005 8:55 pm Post subject: |
|
|
I don't know if this is a coincidence or what, but I've been having problems getting the toolchain script to run properly, and when I perform the fourth process, './toolchain.sh -d -p' it gives errors and at one point it says, "Checked out revision 792" Since it's the same number, I didn't know if it was related or not... _________________ Ask not for whom the bell tolls, it tolls for thee, besides, I'm playing my PSP, tee hee!
------------------------------------------------------
Visit my website for my PSP Homebrew! |
|
| Back to top |
|
 |
yoyofr
Joined: 25 Jun 2005 Posts: 23 Location: paris
|
Posted: Thu Jul 28, 2005 10:35 pm Post subject: |
|
|
right now I'm using a previous version, it seems to work better.
I guess we'll have to have wait for an update. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Jul 28, 2005 11:50 pm Post subject: |
|
|
| It would be helpful if either, or both, of you would post the actual errors you're having instead of just waving your arms around in some nebulous fashion and sitting around for an update. |
|
| Back to top |
|
 |
jason867
Joined: 24 Jul 2005 Posts: 78
|
Posted: Fri Jul 29, 2005 1:11 am Post subject: |
|
|
True, I didn't post the errors here, although I did on my 'how long does ./toolchain.sh take' thread a few days ago, and I have yet been contacted with anyone who might have a clue what those errors mean. The only person to reply was a fellow who tried something and found that it worked and suggested I try the same, although he/she didn't seem to have a clue what the error meant either.
[edit] The errors I posted a few days ago are not the same ones that I asked about here. _________________ Ask not for whom the bell tolls, it tolls for thee, besides, I'm playing my PSP, tee hee!
------------------------------------------------------
Visit my website for my PSP Homebrew! |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Fri Jul 29, 2005 1:15 am Post subject: |
|
|
| jason867 wrote: | | True, I didn't post the errors here, although I did on my 'how long does ./toolchain.sh take' thread a few days ago, and I have yet been contacted with anyone who might have a clue what those errors mean. The only person to reply was a fellow who tried something and found that it worked and suggested I try the same, although he/she didn't seem to have a clue what the error meant either. |
Although you did post those errors, and not many people know what they mean, at least we have a starting point on where to help you out. With this error, it may at least be a common error, or an error easily fixed, if we knew what it was. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
yoyofr
Joined: 25 Jun 2005 Posts: 23 Location: paris
|
Posted: Fri Jul 29, 2005 1:58 am Post subject: |
|
|
| Quote: | | It would be helpful if either, or both, of you would post the actual errors you're having instead of just waving your arms around in some nebulous fashion and sitting around for an update. |
woua, you're quite nervous today ? ;-)
I was thinking my description was enough :
if you compile code which relies on errno (for example using a math function as sqrt, or file io stuff), it will fail at linking. I assume something was broken and errno isn't defined in svn 792.
I can provide log if you need tonight when I'll be back at home |
|
| Back to top |
|
 |
yoyofr
Joined: 25 Jun 2005 Posts: 23 Location: paris
|
Posted: Fri Jul 29, 2005 4:09 am Post subject: |
|
|
ok, I'm now back at home, here's what I get if I compile with svn 792 :
| Quote: |
zlib/gzio.o: In function `destroy':
zlib/gzio.c:349: undefined reference to `__errno'
zlib/gzio.o: In function `check_header':
zlib/gzio.c:252: undefined reference to `__errno'
zlib/gzio.c:252: undefined reference to `__errno'
zlib/gzio.c:252: undefined reference to `__errno'
zlib/gzio.c:252: undefined reference to `__errno'
zlib/gzio.o:zlib/gzio.c:252: more undefined references to `__errno' follow
collect2: ld returned 1 exit status
make: *** [os9xpsp.elf] Error 1
|
I noticed too that I get some crashes when doing file io stuff (like writing a file), which I haven't if I take an older svn |
|
| Back to top |
|
 |
yoyofr
Joined: 25 Jun 2005 Posts: 23 Location: paris
|
Posted: Fri Jul 29, 2005 5:16 am Post subject: |
|
|
tried some previous version of svn, and I found that before, errno was defined in libcglue.c, perhaps the issue is related.
here's what I found in an older version in libcglue,
| Quote: |
/* newlib's errno.h wants a function that returns a pointer to errno. */
#ifdef F_glue___errno
#undef errno
int errno;
/* TODO: Should this be made reentrant (wrapping interrupt disable/enable
around it should do it)? */
int * __errno(void)
{
return &errno;
}
#endif
|
|
|
| Back to top |
|
 |
|