Hi,
Below is the script I use to compile FPC 2.7.1. I am using FPC 2.6.0 (I noticed it is still allowed for a while, even though 2.6.2 is out).
--------------[ go.sh ]--------------------
#!/usr/local/bin/bash
TARGET=x86_64-freebsd
COMPILER=/data/devel/fpc-2.6.0/$TARGET/bin/ppcx64
gmake clean
gmake all -j 5 FPMAKEOPT="-T 8" FPC=$COMPILER
gmake install INSTALL_PREFIX=/data/devel/fpc-2.7.1/$TARGET/ FPC=$COMPILER ------------------[ end ]---------------------
The compiling of fpdoc fails with a linking error. Unable to find libiconv, but what exactly is it looking for? If you look further down my email, the libiconv *is* installed on my FreeBSD system, in the usual location of /usr/local/lib/
So what am I missing, to resolve this compilation issue?
-------------------------------------------
...snip...
gmake[3]: Entering directory `/data/devel/fpc-2.7.1/src/utils/fpdoc' ../bin2obj -o css.inc -c DefaultCSS fpdoc.css
../bin2obj -o plusimage.inc -c PlusImageData images/plus.png ../bin2obj -o minusimage.inc -c MinusImageData images/minus.png /data/devel/fpc-2.7.1/src/compiler/ppcx64 -Ur -Xs -O2 -n -S2h -Fu/data/devel/fpc-2.7.1/src/rtl/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/paszlib/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fcl-process/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/hash/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fpmkunit/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fcl-res/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fcl-base/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fcl-xml/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/fcl-passrc/units/x86_64-freebsd -Fu/data/devel/fpc-2.7.1/src/packages/chm/units/x86_64-freebsd -FE. -FUunits/x86_64-freebsd -Cg -dx86_64 -dRELEASE fpdoc.pp /usr/bin/ld: cannot find -liconv
fpdoc.pp(404,1) Error: Error while linking
fpdoc.pp(404,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
gmake[3]: *** [fpdoc] Error 1
gmake[3]: Leaving directory `/data/devel/fpc-2.7.1/src/utils/fpdoc' gmake[2]: *** [fpdoc_all] Error 2
gmake[2]: Leaving directory `/data/devel/fpc-2.7.1/src/utils' gmake[1]: *** [utils_all] Error 2
gmake[1]: Leaving directory `/data/devel/fpc-2.7.1/src' gmake: *** [build-stamp.x86_64-freebsd] Error 2
[src (master)]$
[src (master)]$ ls -l /usr/local/lib/libiconv*
-rw-r--r-- 1 root wheel 1116648 5 Jan 18:36 /usr/local/lib/libiconv.a -r--r--r-- 1 root wheel 918 5 Jan 18:36 /usr/local/lib/libiconv.la lrwxr-xr-x 1 root wheel 13 5 Jan 18:36
/usr/local/lib/libiconv.so -> libiconv.so.3
-r--r--r-- 1 root wheel 1084538 5 Jan 18:36 /usr/local/lib/libiconv.so.3
------------------[ end ]---------------------
