LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-08-2005, 10:52 AM   #1
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 38
Undefined reference to libiconv


I was trying to install MagicPoint and got the following error message during 'make':
Code:
draw.o(.text+0x78b3): In function `xft_draw_fragment':
:undefined reference to `libiconv'
draw.o(.text+0x79c4): In function `xft_draw_fragment':
: undefined reference to `libiconv_open'
... any pointers? Libiconv is installed.

Last edited by mjjzf; 07-08-2005 at 11:15 AM.
 
Old 07-08-2005, 11:03 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
Maybe you should try download and install this package :
http://www.linuxpackages.net/search_...iconv&ver=10.1
 
Old 07-08-2005, 11:05 AM   #3
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 38
I already have it installed.
 
Old 07-08-2005, 11:07 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
Did you run ldconfig as root ?
 
Old 07-08-2005, 11:14 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 38
No result. What does it do? Any other parameters than just "ldconfig"?

Last edited by mjjzf; 07-08-2005 at 11:16 AM.
 
Old 07-08-2005, 11:26 AM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
ldconfig updates the shared libraries links, so new installed
libraries are found by ld and the undefined reference should
go away

There is no other parameter, you run ldconfig and it updates
links following /etc/ld.so.conf (In fact ldconfig has more option
but none will be usefull here)

Where the libiconv is installed ? in /usr/lib or /usr/local/lib ?
(if /usr/local/lib, make sure this dir is in /etc/ld.so.conf)

Also try a ./configure again, then make
 
Old 07-08-2005, 11:47 AM   #7
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 38
So I should do
ldconfig /usr/lib/libiconv.so
- that is the file placement - and then reattempt ./confgure?
 
Old 07-08-2005, 11:52 AM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
No, just type : ldconfig
Also maybe there is a ./configure option to
disable libiconv, I don't know, try ./configure --help
 
Old 08-17-2007, 04:46 AM   #9
ideasman
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Home brew
Posts: 25

Rep: Reputation: 15
The application Im compiling (stepmania) dosnt have the option to disable iconv, and Im getting.


RageUtil_CharConversions.o: In function `ConvertFromCharset(StdString::CStdStr<char>&, char const*)':
RageUtil_CharConversions.cpp.text+0x23): undefined reference to `libiconv_open'
RageUtil_CharConversions.cpp.text+0x96): undefined reference to `libiconv'
RageUtil_CharConversions.cpp.text+0xa0): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[2]: *** [stepmania] Error 1


Iv also installed libiconv-1.11.tar.gz and run ldconfig, so not sure whats going on.
 
Old 09-23-2007, 01:53 PM   #10
andyccn
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 46

Rep: Reputation: 15
I was getting the same errors trying to compile PHP. Interestingly I only started getting the errors after installing iconv-1.11 (I needed it for another application.)

The iconv files sit inside /usr/local/lib and /usr/local/include, and I've ran ldconfig with the right directories, and the other applications that depend on iconv have compiled successfully.

In the end I've had to add --without-iconv to PHP's configure line.

Annoying.
 
Old 09-23-2007, 07:15 PM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,507

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
same here
i always had problem with compiling libiconv on PHP
in the end, i can't get any XSLT features again
 
Old 11-24-2008, 06:57 PM   #12
sourceforager
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 1
undefined reference to `libiconv_open'

To fix this error:
undefined reference to `libiconv_open'

Run configure like this:
[root@hotstname project-version]# ./configure CFLAGS=-liconv
 
Old 11-25-2008, 04:37 AM   #13
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Rep: Reputation: 137Reputation: 137
I had a problem similar to this with Neverwinter Nights, it requires libiconv. However another piece of software requires the iconv that is part of the glibc packet. To fix the problem I had to remove libiconv, reinstall glibc and then compile the software I had the problem with. I then reinstalled libiconv for Neverwinter Nights. Both bits of software now work fine.

samac

Last edited by samac; 11-25-2008 at 04:48 AM.
 
Old 02-19-2013, 11:39 AM   #14
v_2e
LQ Newbie
 
Registered: Jun 2011
Distribution: Gentoo GNU/Linux
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by sourceforager View Post
To fix this error:
undefined reference to `libiconv_open'

Run configure like this:
[root@hotstname project-version]# ./configure CFLAGS=-liconv
In my case this variant:
Code:
./configure LIBS="-liconv"
worked better (produced no warnings).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
undefined reference to `__ctype_b_loc' megb Linux - General 3 07-13-2005 04:17 PM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 03:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 12:38 PM
Compile QT get Undefined reference jordban Linux - General 14 01-15-2005 06:58 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration