Main index > Installation problems > Installations fails on libiconv [SOLVED]

By <?)))>< (User), on Sun Apr 24 09:54:12 2005: Installations fails on libiconv [SOLVED].

Hi all,

I was trying to install adesklets 0.4.8, but it always failed on this message:

Code:

gcc  -O2 -std=c99 -pedantic -Wall -DPKGDATADIR=\"/usr/local/share/adesklets\"   -o adesklets -L/usr/X11R6/lib  -lX11 -L/usr/lib -lImlib2 -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl -lm -lncurses -lreadline -lhistory -L/usr/X11R6/lib -lfontconfig   adesklets-main.o adesklets-adesklets.o adesklets-xwindow.o adesklets-xmenu.o adesklets-cfgfile.o adesklets-cfg_parser.o adesklets-cfg_scanner.o adesklets-command.o adesklets-event.o adesklets-variable.o adesklets-vector.o adesklets-vector_free.o adesklets-tree.o adesklets-error.o -lSM -lICE
adesklets-adesklets.o(.text+0x81c0): In function `adesklets_events_loop':
: undefined reference to `libiconv_close'
adesklets-adesklets.o(.text+0x81e2): In function `adesklets_events_loop':
: undefined reference to `libiconv_open'
adesklets-adesklets.o(.text+0x8246): In function `adesklets_events_loop':
: undefined reference to `libiconv_close'
adesklets-command.o(.text+0x36b): In function `dupstr_utf8':
: undefined reference to `libiconv'
collect2: ld returned 1 exit status


I have installed libiconv version 1.9.1, so I don't know where is the problem. I don't know if it's adesklets problem (I guess not) but I hope you will able to help me, or at least point me to the right direction. I'm using Slackware-currnet, thanks for any help.

By syfou (Core Developer & Desklet Author), on Sun Apr 24 14:20:57 2005.

adesklets expects iconv calls to be in libc, so it's not linking to the external library -- in fact, it is in glibc for quite some time now. From what I see from google (I do not have a slackware machine at hand right now) you could probably perform (just look at your system for the exact parameters, it is possible I am slightly wrong):

Code:


./configure CFLAGS="$CFLAGS -liconv -L/usr/local/include"


Alternatively, if you do not intend using non ASCII characters on you desklets, you may remove the:

Code:


#define HAVE_ICONV_H 1


line from src/config.h after the configuration phase, but before the build. I will add a supplementary test in the autoconf script for next release, as I also experienced this recently with a user using Darwin. Regards,

By <?)))>< (User), on Mon Apr 25 11:38:36 2005.

syfou: thank you very much, it has helped. It very nice (I've used the gdesklets, but they have very very large dependencies), so thank you very much. I will look for my way to support this project.

By syfou (Core Developer & Desklet Author), on Mon Apr 25 11:46:53 2005.

You are welcomed, <?)))><. Could you tell me if you used the first or the second way to work around this? Modifying the CFLAGS, or the src/config.txt? Anyway, enjoy adesklets!

By <?)))>< (User), on Tue Apr 26 02:57:46 2005.

I've used the first hint (setting the CFLAGS variable) because I want to have internationalization support and with this it works without problem. I'm also glad to report that adesklets 0.4.8 runs perfectly on Slackware-current (x86 architecture), using 2.6.11.7 kernel and 4.2.1 Xfce, so you can add this entry to 'Portability Notice' if you wish. Also I've added my screenshot to the screenshots section.

By syfou (Core Developer & Desklet Author), on Tue Apr 26 03:05:15 2005.

Thanks. About the portability notice: I only include what I could personally test; this is not that I doubt your word, it's only that this is the only way for me to do quality insurance. :-)

I will add the needed autoconf machinery to the next version..

By <?)))>< (User), on Tue Apr 26 03:09:21 2005.

syfou wrote:

Thanks. About the portability notice: I only include what I could personally test; this is not that I doubt your word, it's only that this is the only way for me to do quality insurance. :-)
no problem with it, I appreciate this admission, you should have no problem with Slackware.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.