I was trying to compile e2fsprogs 1.37 on my powerpc linux (PowerMac 7500 running Linux 2.4.31) and kept getting this error saying ld could not find the iconv library, even though I had just built it. Eventually I realized it might be looking for a static library, which the iconv configure doesn't do by default, so I rebuilt libiconv with the --enable-static option, and then e2fsprogs compiled without errors.
June 2005
__________
error during make:
make[2]: Leaving directory `/usr/src/e2fsprogs-1.37/build'
making all in e2fsck
make[2]: Entering directory `/usr/src/e2fsprogs-1.37/build/e2fsck'
CC ../../e2fsck/rehash.c
LD e2fsck.static
/usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.1/../../../../powerpc-unknown-linux-gnu/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
make[2]: *** [e2fsck.static] Error 1
make[2]: Leaving directory `/usr/src/e2fsprogs-1.37/build/e2fsck'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/usr/src/e2fsprogs-1.37/build'
make: *** [all] Error 2
rebuild libiconv with static libraries enabled:
[root@localhost libiconv-1.9.2]# ./configure --enable-static
up