Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-29-2005, 03:17 PM   #1
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Rep: Reputation: 15
Recompile xorg SRPM - error

Hi People.

I am attempting to recompile an xorg source rpm.

I downloaded xorg-x11-6.8.2-7.1.102mdk.src.rpm (I also created a user and group call qatest as it has complained that the user didn't exist.)

I used the following command.:-

rpm --rebuild --target athlon xorg-x11-6.8.2-7.1.102mdk.src.rpm

--> it seemed to compile (for quite some time)

but then gave the an error, here are the last few lines:-
+ cat
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/usr/include
+ pushd /home/morgan/RPM/tmp/xorg-x11-root/usr/include
~/RPM/tmp/xorg-x11-root/usr/include ~/RPM/BUILD/xorg-x11-6.8.2
+ ln -sf ../X11R6/include/GL GL
+ popd
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/var/lib/xdm
+ pushd /home/morgan/RPM/tmp/xorg-x11-root/etc/X11/xdm
~/RPM/tmp/xorg-x11-root/etc/X11/xdm ~/RPM/BUILD/xorg-x11-6.8.2
+ rm -f authdir
+ ln -sf ../../../var/lib/xdm authdir
+ popd
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig
+ mv /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xcomposite.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xcursor.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xdamage.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xevie.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xfixes.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xft.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xrender.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig
+ chmod 0644 /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xcomposite.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xcursor.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xdamage.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xevie.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xfixes.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xft.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xrender.pc
+ mv /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/default /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/handhelds /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/redglass /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/whiteglass /home/morgan/RPM/tmp/xorg-x11-root/usr/share/icons
+ pushd linuxwacom-0.6.6
~/RPM/BUILD/xorg-x11-6.8.2/linuxwacom-0.6.6 ~/RPM/BUILD/xorg-x11-6.8.2
+ rm -f configure
+ aclocal
+ autoconf
+ autoheader
+ automake --add-missing
automake: installing `./INSTALL'
automake: installing `./COPYING'
src/ invalid unused variable name: `libwacomcfg_la_LDFLAGS'
src/ invalid unused variable name: `libwacomcfg_la_SOURCES'
src/ invalid unused variable name: `libwacomcfg_la_LIBADD'
error: Bad exit status from /home/morgan/RPM/tmp/rpm-tmp.11230 (%install)

RPM build errors:
Bad exit status from /home/morgan/RPM/tmp/rpm-tmp.11230 (%install)


Does anyone know what is going wrong?
Old 06-29-2005, 06:25 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I don't know if Mandrake handles .src.rpms differently from other rpm-based distros. The usual procedure is to cd to the directory containing the .spec file which was installed when you installed the .src.rpm (probably in /usr/src/<kernel version>/SPECS. Then run the rpm --rebuild command with <filename>.spec instead of <filename>.src.rpm.

I could be mistaken, but that's how I've done it with three different rpm-based distros.
Old 06-29-2005, 08:23 PM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
bigrigdriver, the method you described is for building an rpm from scratch using a spec file and source archive. The original poster is using the right method for rebuilding a source rpm.

I don't really know what the error means, but you shouldn't really worry about the group and user problem if rebuilding the source rpm as root.
Old 06-30-2005, 01:49 AM   #4
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Original Poster
Rep: Reputation: 15

I have used bigrigdriver's technique to recompile my kernel no problem, but I should be able to use the 'rpm --rebuild' command to recompile the xorg srpm.

I have tried to rebuild both as a user and as root - both give me the same error.

From looking at the erro it looks like a problem with 'libwacomcfg' ?


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
ffmpeg srpm build error texi2html dtra Linux - Software 0 10-21-2005 12:39 AM
thunderbird-1.0-2 SRPM / install error louisb Linux - Enterprise 1 07-13-2005 07:25 PM
Recompile Kernel SRPM athlon or i686 ? lets-eat-gary Mandriva 1 12-23-2004 12:00 PM
kernel 2.6.9 recompile error wnaLinux Slackware 14 12-20-2004 02:41 PM
Recompile error ryedunn Linux - General 2 02-28-2004 02:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:58 AM.

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