[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strerror() and PL48



Yves Pelletier <ypell@CAM.ORG> writes:

|> Hello all,
|> Today I had a problem with strerror() while compiling
|> crlf.c (mshort, mbaserel).   The error I had was: "absolute
|> reference to _nullstr".  I solved it by changing the type of
|> nullstr from:

|> static char nullstr[] = "unknown error"

|> to:

|> char const nullstr[] = "unknown error"

|> and casting the return value back to (char *).

|> If that does not break anything

You should restore the `static'.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org