LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-21-2006, 06:55 AM   #1
Zsub
LQ Newbie
 
Registered: Nov 2005
Distribution: SUSE 10.x
Posts: 24

Rep: Reputation: 15
Configure problem while building rpm with krpmbuilder on SUSE 10.0 OSS


Hey people!

I am trying to build an rpm using krpmbuilder. The program seems to do its job when it comes to building the spec file, I have checked it against various other specs and I don't see any differences I could not explain by some good logic thinking. (Why is the name different :P) Anyhow, when I try to actually create the rpm, configure quits with the error that my "C compiler cannot create executables". I use gcc version 4.0.2 20050901. (got by 'gcc -v') Oddly enough, if I run ./configure in the directory itself, it finishes like it should do. So I am wondering what my mistake is.
Searching told me to look for glibc-devel, so in YaST I did a search but it was installed. I updated everything plus I installed all the other patches, same for gcc, still the error.

I'd be very thankful if anyone knows the answer and would be nice enough to share it with me ;-) Also, I'd like to know about manuals, how-to's, et cetera, about rpm creating, be it graphical like krpmbuilder, be it commandline.

Greets and thanks in advance!
Zsub.

-Edit-
Okay, third edit. Could the fact that gcc is not able to create executables have something to do with the fact that the source is gzipped? I guess not, since it should be writing to a temp dir, but hey, you never know :-) I also read a post in a mailinglist somewhere, saying that the symlinks to gcc could be incorrect. Reinstalling gcc solved the problem there. I updated all packages of gcc and the like - which ought to give the same effect on SUSE&YaST - but that won't work for me.

-Edit-
Sheesh, second edit already... krpmbuilder also won't build another source (gaim-1.5.0) exiting with the same error. "C compiler cannot create executables"

-Edit-
Might be useful to have the log...

Building the spec file... done
Building package now...
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29488
+ umask 022
+ cd /usr/src/packages/BUILD
+ rm -rf /var/tmp/build-root-keytouch
+ mkdir /var/tmp/build-root-keytouch
+ cd /usr/src/packages/BUILD
+ rm -rf keytouch-2.1.2
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/keytouch-2.1.2.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd keytouch-2.1.2
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.29488
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd keytouch-2.1.2
+ CFLAGS='-O2 -g -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2'
+ CXXFLAGS='-O2 -g -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2'
+ ./configure --prefix=/opt/kde3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/usr/src/packages/BUILD/keytouch-2.1.2/missing: Unknown `--run' option
Try `/usr/src/packages/BUILD/keytouch-2.1.2/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
error: Bad exit status from /var/tmp/rpm-tmp.29488 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.29488 (%build)

Last edited by Zsub; 03-21-2006 at 08:08 AM.
 
Old 08-18-2006, 03:35 PM   #2
ram1234
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Compiler cannot create executables

hello,
i red your message and have the same problem,perhaps
u read this after a time ago,
do you solve the problem?
greetings
 
Old 08-18-2006, 03:39 PM   #3
Zsub
LQ Newbie
 
Registered: Nov 2005
Distribution: SUSE 10.x
Posts: 24

Original Poster
Rep: Reputation: 15
Hello ram1234!

I kinda never got around it. It might be fixed though, in a next release. I don't know. I also haven't found out what causes this error, since no-one seemed to know back then :-)

Ciao!
 
Old 08-18-2006, 03:42 PM   #4
ram1234
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
New Thread

Quote:
Originally Posted by Zsub
Hello ram1234!

I kinda never got around it. It might be fixed though, in a next release. I don't know. I also haven't found out what causes this error, since no-one seemed to know back then :-)

Ciao!
hello,
another question,how do i start a new thread with my specific problem?
thanks,
greetings
 
Old 09-15-2006, 10:39 PM   #5
Abunasar Khan
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
apt-get install build-essential

install this and everything should be workin fine..
 
  


Reply



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
configure problem while building qt-x11-free-3.3.3 (BLFS) jomen Linux - Software 9 12-03-2015 04:50 PM
Suse 10.0 OSS multimedia problem winsnomore SUSE / openSUSE 25 11-23-2005 05:21 PM
problem building and installing rpm from ndiswrapper source steveman2000 Linux - Newbie 5 10-23-2005 07:01 PM
krpmbuilder on SuSE Pro 9.1 _TT_ Linux - Software 0 10-15-2004 06:40 AM
Problems Suse 9 krpmbuilder Config MonkeyPie Linux - Software 2 11-22-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration