VectorLinux
November 23, 2014, 07:40:48 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Problem compiling k3b 1.0.3  (Read 2938 times)
gijii
Member
*
Posts: 28


« on: September 03, 2007, 01:31:20 pm »

I would like to upgrade k3b on my VL Soho 5.8.
It has the 1.0.1 but I know that various bugfixes have been applied.
No problem at all on ./configure. The environment looks quite good.
"make" returns the message:

./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x108): In function `K3bEncodingConverter::K3bEncodingConverter()':
: undefined reference to `libiconv_open'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x3d8): In function `K3bEncodingConverter::K3bEncodingConverter()':
: undefined reference to `libiconv_open'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x5c2): In function `K3bEncodingConverter::~K3bEncodingConverter()':
: undefined reference to `libiconv_close'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x652): In function `K3bEncodingConverter::~K3bEncodingConverter()':
: undefined reference to `libiconv_close'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x74c): In function `K3bEncodingConverter::encodedLocally(QCString const&)':
: undefined reference to `libiconv'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x7e8): In function `K3bEncodingConverter::convert(QCString const&, QCString&, QString const&, QString const&)':
: undefined reference to `libiconv_open'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x878): In function `K3bEncodingConverter::convert(QCString const&, QCString&, QString const&, QString const&)':
: undefined reference to `libiconv'
./projects/.libs/libprojects.a(k3bencodingconverter.o)(.text+0x887): In function `K3bEncodingConverter::convert(QCString const&, QCString&, QString const&, QString const&)':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[3]: *** [k3b] Error 1

I was quite confident on compiling k3b. The version is not that different and being a Slackware distro (where I have never had problems on compiling almost anything) I assumed k3b would have compiled smoothly.
Package libiconv  1.11-i586-4vl58 is installed.

Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #1 on: September 03, 2007, 02:05:53 pm »

here is something to try. parse this flag to configure 'LDFAGS='-Liconv'
Logged

The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1553


I like the bass to go BOOM!


WWW
« Reply #2 on: September 03, 2007, 03:30:47 pm »

Try M0E-lnx's advice first Wink. If that doesn't work, here's something that might.

This problem is usually because the iconv.h from libiconv is used, not the one from the gcc package. Too get the gcc ivonv.h you can use
Code:
slapt-get --install --reinstall gcc
Make sure you keep the old iconv.h around though (make a backup or something), in case something else gives iconv related trouble when built with the gcc one Undecided.
Logged

Most music on my soundcloud page was arranged in programs running on VL.
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #3 on: September 03, 2007, 03:39:26 pm »

Quote from: M0E-lnx
here is something to try. parse this flag to configure 'LDFAGS='-Liconv'

Actually its with a lower-case "L":

Code:
LDFLAGS='-liconv'

gijii, so to use this override at configure time run it like this:

Code:
LDFLAGS='-liconv' ./configure --prefix=/opt/kde
« Last Edit: September 03, 2007, 04:11:01 pm by easuter » Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #4 on: September 03, 2007, 03:47:28 pm »

I'll be so happy when we get this iconv thingie resolved.  Undecided
Logged
easuter
Global Moderator
Vectorian
*****
Posts: 2160



« Reply #5 on: September 03, 2007, 04:11:47 pm »

I'll be so happy when we get this iconv thingie resolved.  Undecided

Well, I guess thats something else to be discussed in the VL 6.0 roadmap thread.
Logged

gijii
Member
*
Posts: 28


« Reply #6 on: September 14, 2007, 05:10:46 am »

I tried again to compile k3b yesterday following your suggestions.
Actually k3b compilation ends without errors but a lot of warnings are issued.
For this reason I did not install the package obtained.
I will try reinstalling gcc to see what happens.
Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #7 on: September 14, 2007, 05:29:23 am »

I wouldn't worry so much about the warnings  Smiley
gcc is getting fussier and fussier these days, trying to get developers to write better code.  Also, gcc4 introduces more functionality that lesser versions don't understand. It's a challenge for the developers to write code that is backwards compatible.
If compiling completes without errors, I would say you did good.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!