bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14276, Bzip2 support

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14276: Bzip2 support

Submitted by:  kempston <kempston>
Submitted on:  Wed 24 Aug 2005 03:48:05 PM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Compilation problemStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: Release: 2.6.3
Operating System: LinuxBinaries Origin: CVS / Self compiled
CPU type: Intel x86

(Jump to the original submission Jump to the original submission)

Fri 26 Aug 2005 09:09:43 PM UTC, comment #7:

Patch #4344 applied to CVS

spiralvoice <spiralvoice>
Project Administrator
Thu 25 Aug 2005 09:37:02 AM UTC, comment #6:

Please test patch #4344 before installing libbz2-dev

spiralvoice <spiralvoice>
Project Administrator
Thu 25 Aug 2005 09:05:48 AM UTC, comment #5:

Two things are needed for MLDonkey to use bzip2:

AC_CHECK_LIB(bz2,BZ2_bzReadOpen,[AC_CHECK_HEADERS(bzlib.h,[BZIP2=yes],)])

First configure checks if libbz2.so is present on your system
(AC_CHECK_LIB(bz2,BZ2_bzReadOpen)), not libbz2.so.1.0, then
bzlib.h is checked for presence (AC_CHECK_HEADERS(bzlib.h)).
I bet you don“t have this file in /usr/include.

Searching through the Debian package base made it clear what is
wrong on your system, you are lacking the package libbz2-dev:
http://packages.debian.org/stable/libdevel/libbz2-dev

This package has both files, also it has libbz2.a, which is
needed to build a static MLDonkey core with bz2 built-in.

I will change the order of the checks, so bzlib.h is checked
first, this would have made it clearer for you what is missing on
your system.

spiralvoice <spiralvoice>
Project Administrator
Thu 25 Aug 2005 07:19:09 AM UTC, comment #4:

debian:~# locate libbz2.so
/usr/lib/libbz2.so.1.0
/usr/lib/libbz2.so.1.0.2

##################################

debian:~# cd /usr/lib
debian:/usr/lib# ln -s libbz2.so.1.0 libbz2.so
debian:/usr/lib# ld -lbz2
ld: warning: cannot find entry symbol _start; not setting start address

###################################
dunno if it means anything :)

kempston <kempston>
Wed 24 Aug 2005 11:57:17 PM UTC, comment #3:

"/usr/bin/ld: cannot find -lbz2"

where is libbz2.so on your system?

spiralvoice <spiralvoice>
Project Administrator
Wed 24 Aug 2005 07:42:29 PM UTC, comment #2:

configure:9338: checking for BZ2_bzReadOpen in -lbz2
configure:9368: gcc -o conftest -g -O2 conftest.c -lbz2 >&5
/usr/bin/ld: cannot find -lbz2
collect2: ld returned 1 exit status
configure:9374: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_ZLIBVERSION 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char BZ2_bzReadOpen ();
| int
| main ()
| {
| BZ2_bzReadOpen ();
| ;
| return 0;
| }
configure:9400: result: no
configure:9639: WARNING: Your system lacks bzip2 support

kempston <kempston>
Wed 24 Aug 2005 06:47:54 PM UTC, comment #1:

Its harmless, bz2 support is not really needed atm.
Could you please post the relevant part of config.log for the bz2-tests?

spiralvoice <spiralvoice>
Project Administrator
Wed 24 Aug 2005 03:48:05 PM UTC, original submission:

Configuring on debian gives

checking for BZ2_bzReadOpen in -lbz2... no even with libbz2-1.0 installed

Looks quite similiar to http://www.busybox.net/lists/busybox/2003-November/009862.html

What bzip2 support is for? Is it harmless to miss it?

kempston <kempston>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 26 Aug 2005 09:09:43 PM UTCspiralvoiceStatusIn Progress=>Fixed
  Open/ClosedOpen=>Closed
Thu 25 Aug 2005 09:05:48 AM UTCspiralvoiceStatusNone=>In Progress

Back to the top


Powered by Savane 3.1-cleanup1