[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FWD: Bug#165617: Problems compiling programs with librpm and the new libc6 2.3.1



Jeff do you have any fixes for rpm and glibc 2.3.1? I don't know where
this __ctype_b symbol is coming from (ctype.h?) or why the linker wants it,
but I get similar errors merely building rpm on a system with glibc 2.3.1
and it seems libc has stopped exporting the symbol. I tend to think this is
perhaps a glibc bug.

----- Forwarded message from Angel Ramos <seamus@salix.org> -----

From: Angel Ramos <seamus@salix.org>
Date: 20 Oct 2002 20:40:35 +0200
To: submit@bugs.debian.org
Subject: Bug#165617: Problems compiling programs with librpm and the new libc6 2.3.1
Reply-To: Angel Ramos <seamus@salix.org>, 165617@bugs.debian.org
X-Mailer: Ximian Evolution 1.0.8 
X-Spam-Status: No, hits=-6.7 required=5.0
	tests=DEBIAN_BTS_BUG,FORGED_RCVD_FOUND,RESENT_TO,
	      SPAM_PHRASE_00_01,X_LOOP
	version=2.41

Package: librpm4
Severity: important

Hi!,

I am the maintainer of rpm2html package and I have problems in order to
compile this package again under the current sid because librpm returns
compiling errors. With the new libc6 I think some variables used for 
some programs have been declared as local and this results on a
compiling error. For example look this simple program:

---test.c

char rpmReadConfigFiles();

int main() {
	rpmReadConfigFiles();
	return 0;
}

---------

When I try to compile it I obtain the next errors:

seamus@sidhome:~/debian/rpm2html-1.7$ gcc -o test -g -O2 test.c -lrpm
-lrpmio -lrpmdb -lz -lbz2 -ldb -lpopt
/usr/lib/librpmio.a(base64.o)(.text+0x277): In function `b64dec':
: reference to `__ctype_b' undefinied
/usr/lib/librpmio.a(base64.o)(.text+0x373): In function `b64dec':
: referencia to `__ctype_b' undefinied
collect2: ld returned 1 exit status

The same problem happens with other important functions.

I think this is because __ctype_b now is declared as local in the new
libc. With the old libc this compiles well. Probably the solution is to
define that variable in librpm.

Thanks & Regards!

--
Angel Ramos
seamus@debian.org




----- End forwarded message -----

-- 
see shy jo

Attachment: pgpVMYPsMTllN.pgp
Description: PGP signature


Reply to: