#234 Support FreeBSD out-of-the-box

open-accepted
nobody
None
1
2004-12-02
2004-11-28
Jack Low
No

cc -c -I../.. -I.. -I/usr/local/include/glib12 -DCURDIR=src/lib -O utf8.
c
utf8.c:48:19: iconv.h: No such file or directory
utf8.c:74: error: syntax error before "cd_locale_to_utf8"
utf8.c:74: error: `iconv_t' undeclared here (not in a function)
utf8.c:74: warning: data definition has no type or storage class
utf8.c:75: error: syntax error before "cd_utf8_to_locale"
utf8.c:75: warning: data definition has no type or storage class
utf8.c:76: error: syntax error before "cd_latin_to_utf8"
utf8.c:76: warning: data definition has no type or storage class
utf8.c:2677: error: syntax error before "cd"
utf8.c: In function `g_iconv_complete':
utf8.c:2690: error: `outbuf' undeclared (first use in this function)
utf8.c:2690: error: (Each undeclared identifier is reported only once
utf8.c:2690: error: for each function it appears in.)
utf8.c:2692: error: `cd' undeclared (first use in this function)
utf8.c:2695: error: `outbytes_left' undeclared (first use in this function)
utf8.c:2698: error: `inbytes_left' undeclared (first use in this function)
utf8.c:2701: error: `inbuf' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/jack/gtk-gnutella-0.95/src/lib.
*** Error code 1

Stop in /usr/home/jack/gtk-gnutella-0.95/src.
*** Error code 1

Stop in /usr/home/jack/gtk-gnutella-0.95.
*** Error code 1

Stop in /usr/home/jack/gtk-gnutella-0.95.
%

Discussion

  • Jack Low
    Jack Low
    2004-11-28

    Logged In: YES
    user_id=636451

    Seems like you need to include /usr/local/include in the include path in
    FreeBSD and it will work since iconv.h is in /usr/local/include and not in /
    usr/include

     
    • priority: 5 --> 1
    • status: open --> open-accepted
     
  • Logged In: YES
    user_id=13887

    OK, you fixed it then!

     
  • Logged In: YES
    user_id=643728

    This is not really a bug, I reword it as a RFE:

    Since FreeBSD packages (ports) are usually installed under
    /usr/local and (GNU) iconv seems is installed as an package
    rather than being a base tool, Configure should/could use
    /usr/local/include and /usr/local/lib for FreeBSD by default.

    Until then, FreeBSD users (probably) have to use:

    ./Configure \ -Dccflags='-I/usr/local/include' \ -Dldflags='-L/usr/local/lib -R/usr/local/lib'

     
    • labels: 361229 -->
    • milestone: 414965 -->
    • summary: Still get this compile error on FreeBSD 5.3 using gcc 3.4.2 --> Support FreeBSD out-of-the-box