Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-15-2004, 01:23 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
RPM...Broken Pipe's urgent..plz

hello everyone,

i have to make an rpm for our software and install it on another linux
based pc.

i have created the following .spec file for it....

%define name dashboard
%define version 2.0.1
%define release 1mdk

Name: %{name}
Summary: Tools for converting websites from using GIFs to using PNGs
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Group: Applications/Multimedia
License: MIT-like
Requires: python

Antispam Dashboard Installation.

rm -rf /usr/mohan
mkdir -p /usr/mohan/dashboard-2.0.1

cd /usr/src/redhat/SOURCES
cp dashboard-2.0.1.tar.gz /usr/mohan/dashboard-2.0.1
cd /usr/mohan/dashboard-2.0.1
gunzip dashboard-2.0.1.tar.gz
tar -xvf dashboard-2.0.1.tar


Now my Problem is that when i execute the above .spec file using the
command rpmbuild -ba <filename>.spec

it sometimes works fine and in the end gives me the following messages:

Wrote: /usr/src/redhat/SRPMS/dashboard-2.0.1-1mdk.src.rpm
Wrote: /usr/src/redhat/RPMS/i586/dashboard-2.0.1-1mdk.i586.rpm

but sometimes it doesn't work fine at all and gives me a message:

Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
getOutputFrom(): Broken pipe

As, a result i am not able to get my rpm's in event of the above message.

i am confused and don't know as to why this broken pipe problem is there,
as my .spec file appears to be correct(otherwise how does it executes correctly sometimes?)

Therefore as a result of mine issuing the above rpmbuild -ba command on
this .spec file , it works some times and some times doesen't??

why this unpredictability...............???? i am confused and as a result is unable to finalize my work, even though it appears to be complete..........


i am working on red hat linux and kernel version is :

thanks in anticipation

"newex-gif2.spec" 44L, 937C 1,1 Top
Old 12-15-2004, 04:38 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
The broken pipe error is caused when the output of a program (A) is being send to another program (B). Program B is exiting (crashing) before program A has finished producing all its data.

A problem with your .spec file shouldn't cause this problem. One possibility is a bug in your RPM tools; make sure that you have installed any available updates.

Given that the problem is intermittent, the most likely explanation here, I'm afraid, is a hardware problem. This kind of error (one program crashing intermittently) is most commonly caused by an intermittent fault in your hardware; RAM being the most common culprit, followed by an overclocked CPU. You might try running a decent RAM tester for a few hours. Another test you can do is attempt to compile a complex program like gcc from source (gcc uses lots of pointers so it tends to break if your RAM isn't working too well); it should get through the compile process in one go. If it fails intermittently, but then fails at a different point after reissuing the make command, then you know your memory isn't good.


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
apache authorization problem (im a newbie) plz help very urgent ruslan40321 Linux - Networking 6 06-17-2005 10:00 PM
JAVA and TOMCAT problem : Broken Pipe fellsin Linux - Software 1 01-13-2005 01:47 AM
Dialog GAUGE - How to display progress of compile? broken pipe problem? laikos Programming 3 07-03-2004 07:08 PM
Broken Pipe Cynthia Blue Linux - Newbie 0 12-30-2002 02:31 PM
ls - Broken pipe vcheah Linux - Software 2 10-30-2002 08:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration