On Thu, 13 Jan 2005 16:12:23 +0100 (CET), Per Steinar Iversen <PerSteinar.Iversen@xxxxxxxxxx> wrote: > > A silly question: How does one build or rebuild src rpms under x86_64? > > On a freshly installed FC3 nearly everything fails to build as configure > looks at the wrong X11 libraries. As an example, rebuilding mozilla: > > $ rpmbuild --rebuild mozilla-1.7.5-3.src.rpm > ...lines deleted... > checking GLIB_LIBS... -lglib-2.0 > configure: error: Could not find the following X libraries: -lX11 -lXext -lXt > error: Bad exit status from /var/tmp/rpm-tmp.13288 (%build) > > Modifying the spec-file to add a line like this cures the problem: > > --x-libraries=/usr/X11R6/lib64 > > But this is probably too crude - what is the proper incantation to make > rpmbuild understand where the X11 libraries are placed on x86_64? > > -psi Yes, I have seen this too. I don't know why this seems to be a problem, but it is. I know /lib64 and /usr/lib64 are normally accounted for, but why /usr/X11R6/lib64 is not, I don't know. Is this a standard directory? Or is it specific to Fedora? Was it added later than the other 64-bit lib directories to the standard? I think the x-libraries definition is the right fix (or at least it works right). Should probably be combined with a "%ifarch x86_64" block if you want to do it right. If you are just rebuilding the rpm for yourself, just add the line if necessary. Well, I decided to go to Google for a little bit and (to answer my own questions) found this: http://www-uxsup.csx.cam.ac.uk/suse/adminguide-sles9/ch07.html Looks like it *is* the standard to have the X11 lib64 directory. Perhaps devleopers simply overlook it. Maybe someone more knowledgeable with rpm and rpmbuild can say if this is something that rpmbuild or if it should be handled in the spec file. Jonathan