FreeBSD port Installation: error in text.c

Help
2004-06-08
2004-06-09
  • Michael Sherov

    Michael Sherov - 2004-06-08

    Hi, I'm trying to install wv-1.0.0_1 from my freeBSD ports collection. When I run "make install" from /usr/ports/textproc/wv/, the installation appears to run smoothly unti I get this:

    text.c: In function `wvLIDToCodePageConverter':
    text.c:406: syntax error before `cd'
    text.c:406: `cd' undeclared (first use in this function)
    text.c:406: (Each undeclared identifier is reported only once
    text.c:406: for each function it appears in.)
    text.c:406: `iconv_t' undeclared (first use in this function)
    text.c:408: syntax error before `cd'
    text.c:413: syntax error before `cd'
    text.c: In function `swap_iconv':
    text.c:580: syntax error before `handle'
    text.c:611: `handle' undeclared (first use in this function)
    text.c:612: `iconv_t' undeclared (first use in this function)
    text.c: In function `wvHandleCodePage':
    text.c:634: syntax error before `iconv_handle'
    text.c:672: `iconv_handle' undeclared (first use in this function)
    text.c:673: `iconv_t' undeclared (first use in this function)
    text.c: In function `wvOutputFromUnicode':
    text.c:707: syntax error before `iconv_handle'
    text.c:717: `iconv_handle' undeclared (first use in this function)
    text.c:717: `iconv_t' undeclared (first use in this function)
    text.c: In function `wvConvertStylename':
    text.c:2163: syntax error before `iconv_handle'
    text.c:2172: `iconv_handle' undeclared (first use in this function)
    text.c:2172: `iconv_t' undeclared (first use in this function)
    gmake[2]: *** [text.lo] Error 1
    gmake[2]: Leaving directory `/usr/ports/textproc/wv/work/wv-1.0.0'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/usr/ports/textproc/wv/work/wv-1.0.0'
    gmake: *** [all] Error 2
    *** Error code 2

    Stop in /usr/ports/textproc/wv.

    I am a really big newbie when it comes to freebsd and many other things, I'm just trying to get wvware working so I can turn docs into html for a client php script. I know nothing of all these "crazy" commands... Just someone please let me know how to fix this! Thanks is advance.

     
    • Francis James Franklin

      the problem here is related to iconv. the older BSDs don't have iconv installed by default, I think, and you may need to install GNU libiconv (available from ftp.gnu.org & mirrors, and maybe elsewhere), though the newer BSDs do have a native iconv, I believe... not sure.

      Maybe you have it but it's not being found? To have got as far as you did I think you must have it, but then I'm surprised at the error you are getting.

      confused. need more info.

       
    • Michael Sherov

      Michael Sherov - 2004-06-09

      I do have libiconv installed... I was getting a message earlier about it not being installed and once I installed it, I got past that error. I was also taking a look at the text.c file that was said to have errors in it, and when it says:

      text.c:406: syntax error before `cd'

      In this function, all the lines contain an '\' at the end. I tried removing them and save text.c and then running make install again, but to still no avail. Perhaps my compiler is out-of-date?

       
      • Francis James Franklin

        I think what is common is "iconv_t" which doesn't seem to be defined - I don't know why not. It suggests that "iconv.h" is not being included, but why not?

         

Log in to post a comment.