VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Problem compiling k3b 1.0.3  (Read 3161 times)

gijii

  • Member
  • *
  • Posts: 28
Problem compiling k3b 1.0.3
« on: September 03, 2007, 02: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: 3230
Re: Problem compiling k3b 1.0.3
« Reply #1 on: September 03, 2007, 03:05:53 pm »

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

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Problem compiling k3b 1.0.3
« Reply #2 on: September 03, 2007, 04:30:47 pm »

Try M0E-lnx's advice first ;). 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: [Select]
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 :-\.
Logged
Most music on my soundcloud page was arranged in programs running on VL.

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Problem compiling k3b 1.0.3
« Reply #3 on: September 03, 2007, 04: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: [Select]
LDFLAGS='-liconv'
gijii, so to use this override at configure time run it like this:

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

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Problem compiling k3b 1.0.3
« Reply #4 on: September 03, 2007, 04:47:28 pm »

I'll be so happy when we get this iconv thingie resolved.  :-\
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Problem compiling k3b 1.0.3
« Reply #5 on: September 03, 2007, 05:11:47 pm »

I'll be so happy when we get this iconv thingie resolved.  :-\

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

gijii

  • Member
  • *
  • Posts: 28
Re: Problem compiling k3b 1.0.3
« Reply #6 on: September 14, 2007, 06: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
Re: Problem compiling k3b 1.0.3
« Reply #7 on: September 14, 2007, 06:29:23 am »

I wouldn't worry so much about the warnings  :)
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