stupid_idiot

Group: Members
Posts: 344
Joined: Oct. 2006 |
 |
Posted: Jan. 05 2008,18:03 |
 |
If I'm not wrong, the libraries look like this: /opt/compile-3.3.5/lib/libiconv.so >> /opt/compile-3.3.5/lib/libiconv.so.2 >> /usr/lib/libiconv.so.2 and /opt/compile-3.3.5/lib/libiconv.la
When configuring: 1. 'configure' checks whether standard (Glibc's) iconv works. 2. If libiconv's 'iconv.h' is installed, 'configure' will probably fail with:Code Sample | undefined reference to 'libiconv_open' | 2. If the first test fails, 'configure' checks for libiconv (looks for '-liconv'). 3. 'configure' will probably give this error:Code Sample | /usr/bin/ld: cannot find -liconv | because '/opt/compile-3.3.5/lib/libiconv.so' is not in the default library path (defined in '/etc/ld.so.conf').
Possible solutions: -- Maybe set the LD_LIBRARY_PATH variable when compiling??Code Sample | export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib:/opt/compile-3.3.5/lib | -- Or, run 'configure' with LDFLAGS??Code Sample | LDFLAGS='-L/opt/compile-3.3.5/lib' \ ./configure |
I think my earlier suggestion to put '/usr/lib/libiconv.so' in 'user.tar.gz' was wrong because it is a waste of RAM. You current method is correct; we just need to set LD_LIBRARY_PATH/LDFLAGS so that '-liconv' can be detected. So, please continue with your current method! Thanks!
|