Re: make error
Markus Hoenicka <[email protected]>
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, Daniel O'Donnell <[email protected]> was heard to say: > refdbdref.c: In function âread_ris_dataâ: > refdbdref.c:667: warning: passing argument 2 of âiconvâ from > incompatible pointer type This is nothing to really worry about. There is an inconsistency about the type of an argument between the *BSDs and other OSes like Linux. In one case there's a char*, in the other case there'sa const char*. If I fix this on Linux, I'll get a warning on BSD and vice versa. However, the char* vs. const char* is a compile-time warning which will not cause a runtime error as the sizes of both pointers are identical. Unfortunately the iconv header file does not use a typedef which would allow to work around this issue. > refdbdref.c: In function âis_journalâ: > refdbdref.c:2370: error: âDBI_ROW_ERRORâ undeclared (first use in this > function)refdbdref.c:2370: error: (Each undeclared identifier is > reported only once This points to a libdbi version issue. DBI_ROW_ERROR is declared in <prefix>/include/dbi/dbi.h in libdbi versions 0.8.0 and later. If you use an older version of libdbi, you'll simply have to upgrade. If you do have 0.8.0 or later installed, you may have stale header files lying around from a previous installation of an older version. E.g. if you had installed 0.7.x in /usr and later installed 0.8.0 in /usr/local, the older headers will pop up first when the compiler looks for the include files. regards, Markus -- Markus Hoenicka [email protected] (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de