Gandalf <[EMAIL PROTECTED]> writes:

[...]

> Im trying out making rpms. Ive followed the instructions about setting up the
> .rpmmacros and .rpmrc files and I have the RPM directory structure in my home
> directory. I have for my first try tried gnome-libs-1.2.3.tar.gz. I have
> mandrake 7.1 and installed it as the developer option. I have successfully
> compiled tarballs without problems including the said gnome-libs file ie
> ./configure,make etc.

Have you read the mdk-rpm howto?

http://www.linux-mandrake.com/howtos/mdk-rpm/

>For my first attempt I typed rpm -tb gnome-libs-1.2.3.tar.gz and this appeared
>to put the spec file in the spec directory etc but I think it complained about
>there not being a gnome-libs-1.2.3.tar.bz2 file in the sources directory.
>So i created one ie bzme gnome-libs-1.2.3.tar.gz to give the .bz2 file and put
>it in the source directory.

rpm -tb is used to use the specfile of the .tar.gz file (look the manpages
of RPM)

it's not good for you when you want to make some packaging, because you
*want* to do the specfile by yourself; at least it's a good starting
point, but then don't do it again, hack on the specfile and use "-bc"
option to compile the stuff.


[...]

> checking whether the C compiler (gcc -O3 -fomit-frame-pointer -fno-exceptions 
>-fno-rtti -pipe -s -mpentium -mcpu=pentium -march=pentium -ffast-math 
>-fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 
>-mpreferred-stack-boundary=2 ) works... no
> configure: error: installation or configuration problem: C compiler cannot create 
>executables.
> Bad exit status from /root/RPM/tmp/rpm-tmp.42389 (%build)

Usually it's when some devel package like glibc-devel is not installed,
but if you used the "development" installation class it's probably not the
problem.

At this point, the knowledge yuo need is not specific to RPM's, but
specific to autoconf stuff (the shell script called "configure").

When something fails, like in your case, you have to see the file named
"config.log" in the base directory of the package (the same directory to
the one where there is "configure", "README", etc..)


-- 
Guillaume Cottenceau -- Distribution Developer for MandrakeSoft
http://www.mandrakesoft.com/~gc/

Reply via email to