file-4.09 compilation error

Paolo Supino vrkid0 at gmail.com
Mon Jul 4 12:00:01 GMT 2005


Hi 

If this is the wrong place to ask the following question please direct
me in the right direction...

I'm trying to compile and install 'file-4.09' on FreeBSD 4.10 (someone
else needs it) and the compilation fails with the following error:
gcc -g -O2 -o .libs/file file.o  ./.libs/libmagic.so -lz -Wl,--rpath
-Wl,/finjan//lib
file.o: In function `file_mbswidth':
/home/paolo/src/file-4.09/src/file.c:465: undefined reference to `mbrtowc'
/home/paolo/src/file-4.09/src/file.c:479: undefined reference to `wcwidth'
gmake[1]: *** [file] Error 1
gmake[1]: Leaving directory `/home/paolo/src/file-4.09/src'
gmake: *** [install-recursive] Error 1

The ports tree has version 4.07 (too old) and compiline version 4.12
completes successfully. I cannot force a version change so installing
4.12 out of the question.
Any help in causing file version 4.09 to compile successfully will be
greatly appriciated.



Paolo


More information about the freebsd-questions mailing list