I come across the same errors and warnings on both OpenBSD 3.3 and 3.4 systems 
when trying to build gtk-gnutella 0.93.3 (stable) from source.  I've tried to 
include the pertinant info here, there's also a quick page I setup so I can 
point others to it as a workaround for now.  It includes more details in the 
notes section:
http://livenudefrogs.com/~anubis/openbsd/gtk-gnutella0933_obsd33.html

I simply do not know the "proper" fixes for these, but hopefully what I've 
provided helps.  If someone would like me to test a patch let me know.

Thanks,
Christopher Kruslicky



gtkg version: 
gtk-gnutella/0.93.3 (25/01/2004; GTK1; OpenBSD 3.3 i386)

error when trying to compile w/defaults:
cc -c -I.. -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 
-I/usr/X11R6/include -I/usr/local/include -O2 utf8.c
utf8.c: In function `locale_charset':
utf8.c:529: `CODESET' undeclared (first use in this function)
utf8.c:529: (Each undeclared identifier is reported only once
utf8.c:529: for each function it appears in.)
utf8.c: In function `g_iconv_complete':
utf8.c:680: warning: passing arg 2 of `libiconv' from incompatible pointer 
type
*** Error code 1



It appears that on both OpenBSD 3.3 and 3.4 the 'CODESET' undeclared error is 
encountered.  My workaround has been to #define it as '3' in src/utf8.h and 
that seems to work fine.  Of course this isn't a proper international fix =)  
Unfortunately I don't know how to grab the default info from an OpenBSD 
system or I'd include a patch.

Also, I was able to get rid of the warning about the wrong pointer type in 
"utf8.c: In function `g_iconv_complete':" by changing the declaration for 
"char *inbuf" to be "const char *inbuf" on line 666.

One other thing that crops up and I'm not sure how or why, but again it's 
consistant on both systems I tested it, is that I need to add -liconv during 
the ./Configure stage.  This was helpfully suggested by the output when I 
tried to build it, and does indeed make without errors with this answer to 
the appropriate Configure prompt:

Any additional libraries? [-lz -lintl -lresolv] -lz -lintl -lresolv -liconv



There are also warnings on every compile line during make about BSD being 
redefined, I'm not sure why this is as the config.h does wrap the definition 
in an #ifndef - maybe it's the order of the #include lines but I didn't want 
to mess with that not knowing the consequences.  To get rid of those warnings 
I've successfully redefined BSD to match <params.h> - modifying line 47 of 
config_h.SH to instead read:

#$d_bsd BSD 199306





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to