LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-26-2004, 10:43 AM   #1
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Rep: Reputation: 15
dpkg broke with manual perl compile. how to reinstall dpkg?


I recently compiled perl from source on my Debian system, unknowingly breaking debconf (and probably other programs).

It seems as though merely moving DebianNet.pm into one of the directories in @INC temporarily fixed this problem. However, now if I try to install the latest unstable dpkg and/or debconf (or anything else, for that matter), I get an error like this:

# dpkg --install dpkg_1.10.22_i386.deb
dpkg: error processing dpkg_1.10.22_i386.deb (--install):
subprocess dpkg-split killed by signal (Segmentation fault)
Errors were encountered while processing:
dpkg_1.10.22_i386.deb

Is there any way I can fix this so I can use the apt system again? Without it, my system is relatively unusable at the moment.

I attempted to make and install dpkg from source, but it didn't seem like it was doing anything. It was all guesswork, since there was no INSTALL file available.

NOTE: I have also posted this to the debian-user mailing list at debian.org, and have received no replies. I posted there about a month ago.

Last edited by cparker15; 07-26-2004 at 04:06 PM.
 
Old 07-26-2004, 01:11 PM   #2
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Apparently, there is now a new version of dpkg in unstable as of a week or so ago, and this version's tarball has a more traditional install procedure.

It looks like I'm in luck.
 
Old 07-26-2004, 01:33 PM   #3
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Scratch that. Back to the drawing board.

I can ./configure, but when I go to make dpkg, I get this:

Code:
# make
make  all-include all-optlib all-lib all-dpkg-deb all-split all-scripts all-utils
      all-main all-dselect all-po all-methods all-man all-doc
make[1]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23'
make -w -C "include" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/include'
make -w -C "optlib" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/optlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/optlib'
make -w -C "lib" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/lib'
make -w -C "dpkg-deb" "all"
make[2]: Entering directory `/downloads/sources/dpkg/dpkg-1.10.23/dpkg-deb'
gcc  -g -O2  -Wall  -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs
     -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
     -Wcast-qual -Wcast-align -Winline -Wmissing-noreturn -Wsign-compare -DHAVE_CONFIG_H
     -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale\" -I../intl -I../intl -I../include
     -I.. -I. -I../include -I.. -I. -I../optlib -DUSE_ZLIB -c build.c
build.c:40:18: zlib.h: No such file or directory
build.c: In function `internalGzip':
build.c:151: error: `gzFile' undeclared (first use in this function)
build.c:151: error: (Each undeclared identifier is reported only once
build.c:151: error: for each function it appears in.)
build.c:151: error: parse error before "gzfile"
build.c:172: error: `gzfile' undeclared (first use in this function)
build.c:172: warning: implicit declaration of function `gzdopen'
build.c:178: warning: implicit declaration of function `gzwrite'
build.c:181: warning: implicit declaration of function `gzerror'
build.c:181: warning: initialization makes pointer from integer without a cast
build.c:182: error: `Z_ERRNO' undeclared (first use in this function)
build.c:191: warning: implicit declaration of function `gzclose'
make[2]: *** [build.o] Error 1
make[2]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23/dpkg-deb'
make[1]: *** [all-dpkg-deb] Error 2
make[1]: Leaving directory `/downloads/sources/dpkg/dpkg-1.10.23'
make: *** [all-recursive] Error 2
Now I'm completely lost.

Anybody going to save my day?

Thanks.

Last edited by cparker15; 07-26-2004 at 01:41 PM.
 
Old 07-26-2004, 04:47 PM   #4
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
I figured it out. I needed to install a couple of libraries that I swore I already had.

The two I've had to install so far are:

- zlib
- ncurses

Hopefully, when I finally have all libraries installed (again), I will be able to make dpkg and move on with life with this machine (finally).
 
Old 07-28-2004, 11:36 AM   #5
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
I think I'm going to cry.

I now need to install gettext, it seems. I cannot compile gettext without g77, which I do not have. I've searched everywhere for g77 source, and it's nowhere to be found.

I think I'm going to have to break down and ask my server's host to reinstall dpkg from CD, if they can. I'm hoping I don't have to do that, but at this rate, it seems that is simply the inevitable.

Does ANYONE know what I should do? Anyone???
 
Old 07-28-2004, 11:45 AM   #6
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
I Give Up

I've decided that my quest for fixing dpkg and/or getting everything I need to compile it is a hopeless effort.

Instead, I'm going to downgrade perl, and cross my fingers and hope that it fixes everything. HOW I'm going to downgrade perl, I don't know, but I'll figure out a way.

I just think that if anyone knew what I could do, they would have replied by now.

Thanks for reading.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fatal signal: Segmentation Fault (SDL Parachute Deployed), but not as root patrickdepingui Linux - Software 9 06-19-2005 06:14 AM
Fatal signal: Segmentation Fault (SDL Parachute Deployed) avis Linux - Software 1 05-10-2005 11:40 AM
Program received signal SIGSEGV, Segmentation fault ims_mca Linux - Distributions 0 03-09-2005 04:16 AM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 12:04 AM
Apache: child pid XXX exit signal Segmentation fault (11) gabriele_101 Linux - Hardware 1 07-23-2003 06:12 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration