I dunno why they did it, but they decleared an own errno as "extern int errno" but didn't define it. I deleted that line and included <errno.h>. The other fix is that I followed my compilers thoughts and replaced the tmpnam function call with mkstemp. Reproducible: Always Steps to Reproduce: 1. emerge gnewspost Actual Results: I get a linker error about errno Expected Results: compile :) Here is the diff of the file src/session.c: 38a39 > #include <errno.h> 45,46d45 < extern int errno; < 440c439 < gchar *fname, *txt; --- > gchar *fname = "tmpgnewspostXXXXXX", *txt; 450,451c449,450 < fname = g_strdup(tmpnam(NULL)); < if ((fd = open(fname, O_WRONLY|O_CREAT)) == -1) { --- > fd = mkstemp(fname); > if( fd == -1 ) {
Created attachment 14784 [details, diff] source diff Nothing much done, but it doesn't compile without the patch.
i'll get this for bugday and bug 23597
This is in CVS, thanks for the diff, have you sent it upstream?