LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2007, 07:24 AM   #1
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Rep: Reputation: 15
Error while compining dclib-0.3.9


Dear all,
I am trying to install Valknut 0.3.9 on Ubuntu 6.10 for an AMD 64-bit system. I need to first install dclib-0.3.9 on which valknut is dependent. I can only find Valknut 0.3.7 on the repositories so I proceeded to install through source codes.

I configured dclib-0.3.9 without any error. I ensured that bzlib.h was available. On running 'make' I got the following error:

-------------------------------------------------------
/usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libbz2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libdc.la] Error 1
make[3]: Leaving directory `/home/shivkvi/downloads/dclib/dclib-0.3.9/dclib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/shivkvi/downloads/dclib/dclib-0.3.9/dclib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/shivkvi/downloads/dclib/dclib-0.3.9'
make: *** [all] Error 2
--------------------------------------------------------

I went back and picked up the bzip2 executable provided on the bzip2 site for 64 bit processors but I got the same error again.

Thanks in advance for any suggestions or solutions.
Best regards,
Shivkumar Iyer.
 
Old 06-28-2007, 08:15 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Do you know that the executable you downloaded was built with -fPIC and shared libraries? You may need to build bzip2 from source (why isn't bzip2 in the Ubuntu repositories). Remember to add -fPIC to your CFLAGS if you build bzip2 yourself.
 
Old 06-28-2007, 10:35 AM   #3
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
Thank you. I have managed to successfully install dclib and valknut.

bzip2 is provided by ubuntu by default and when I got the error message at the first configure that I didn't have bzlib.h, I checked my package manager and saw that both bzip2 and libbz2 were installed. At that time the program bzip2 was working and I had used to extract the dclib and valknut packages. So I installed bzip2 using source codes. The Ubuntu repositories only have valknut-0.3.7. However, Valknut 0.3.7 is no longer compatible with DC++-0.698 and I haven't been able to download stuff from PCs running them.

The bzip2 executable for 64 bit processors didn't work for me. The -fPIC option finally worked.
Thanks again.
 
  


Reply



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
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
anyone with deb for dclib-0.3.7? kb_ganesh Ubuntu 1 09-12-2005 03:44 AM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM
Trying to compile dclib cyborg_jt Mandriva 15 03-16-2005 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration