Re: dpkg segfaulting
Quoting Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br>:
> Hi Debian users,
> I have Debian installed in one Sparc 4 (mainly slink) and dpkg is
> segfaulting allways.
> Let's see an example:
>
It's not dpkg, it's dhelp_parse. The same thing happened to me some
time ago, and I had to patch and recompile the package dhelp to make it
work (patch below). The problem seems to be that the lib libdb and the
include file db.h in libc6 2.0.105 is from a version different than the
one in i386. I think this should be fixed for version 2.1.1.
*** dhelp_parse.c Tue Sep 21 23:26:54 1999
--- dhelp_parse.c.new Tue Apr 27 13:47:06 1999
***************
*** 11,17 ****
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
! #include <db.h>
#include <dirent.h>
#include <sys/types.h>
#include <fcntl.h>
--- 11,17 ----
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
! #include <db1/db.h>
#include <dirent.h>
#include <sys/types.h>
#include <fcntl.h>
*** Makefile Tue Sep 21 23:26:54 1999
--- Makefile.new Tue Apr 27 13:44:22 1999
***************
*** 1,5 ****
all: dhelp_parse.o
! gcc dhelp_parse.o -o dhelp_parse -ldb
clean:
rm -rf dhelp_parse dhelp_parse.o *~ core
--- 1,5 ----
all: dhelp_parse.o
! gcc dhelp_parse.o -o dhelp_parse -ldb1
clean:
rm -rf dhelp_parse dhelp_parse.o *~ core
Reply to:
- References:
- dpkg segfaulting
- From: Paulo Henrique Baptista de Oliveira <baptista@cos.ufrj.br>