Hi'all, Some of you might have run into the same problem as I did when I tried to compile the latest CVS with -Werror: dpi_service.o(.text+0x1d4): In function `dpi_dir': ../../../dillo_tabs/dpid/dpi_service.c:127: undefined reference to `errno' dpi_service.o(.text+0x3fc): In function `rd_dpi_dir': ../../../dillo_tabs/dpid/dpi_service.c:187: undefined reference to `errno' dpi_service.o(.text+0x57b):../../../dillo_tabs/dpid/dpi_service.c:211: undefined reference to `errno' dpi_service.o(.text+0x8df): In function `send_servers_list': ../../../dillo_tabs/dpid/dpi_service.c:290: undefined reference to `errno' This is caused by the failure to include <errno.h>, which is where errno is declared. Just add #include <errno.h> to dpid/dpi_service.c and it compiles cleanly (at least here...) <PATCH> --- dillo/dpid/dpi_service.c 2003-09-15 02:56:41.000000000 +0200 +++ dillo_tabs/dpid/dpi_service.c 2003-09-25 17:13:31.263098504 +0200 @@ -25,6 +25,7 @@ #include <string.h> #include <dirent.h> #include <error.h> +#include <errno.h> #include <glib.h> #ifdef TEST #include "testdat.h" </PATCH> Jorge, can you apply this patch? Cheers//Frank -- WWWWW ________________________ ## o o\ / Frank de Lange \ }# \| / +46-734352015 \ \ `--| _/ <Hacker for Hire> \ `---' \ +31-640037120 / \ frank@unternet.org / `------------------------' [ "Omnis enim res, quae dando non deficit, dum habetur et non datur, nondum habetur, quomodo habenda est." ]
participants (1)
-
Frank de Lange