I keep getting this error when I build some rpms from spec (using m4 as
an example).

+ /usr//lib/rpm/brp-strip
+ /usr//lib/rpm/brp-strip-comment-note
Processing files: m4-1.4-1
PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
Checking for unpackaged file(s): /usr//lib/rpm/check-files %{buildroot}
warning: Could not canonicalize hostname: gir
Wrote: /usr/src/redhat/SRPMS/m4-1.4-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/m4-1.4-1.i386.rpm
Executing(%clean): /bin/sh -e /usr/var/tmp/rpm-tmp.30955

also, the RPM's that are built are empty (excluding the .src.rpm's)

anyone? Im using rpm-4.1

here is a full build log and spec file used is attached


gir donespec # rpmbuild -ba m4-1.4.spec
Executing(%prep): /bin/sh -e /usr/var/tmp/rpm-tmp.10650
+ umask 022
+ cd /usr//src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf m4-1.4
+ /bin/gzip -dc /usr/src/redhat/SOURCES/m4-1.4.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd m4-1.4
+ exit 0
Executing(%build): /bin/sh -e /usr/var/tmp/rpm-tmp.10650
+ umask 022
+ cd /usr//src/redhat/BUILD
+ cd m4-1.4
+ ./configure --prefix=/usr
creating cache ./config.cache
checking for mawk... no
checking for gawk... gawk
checking for gcc... gcc -s
checking whether we are using GNU C... yes
checking whether gcc -s accepts -g... yes
checking for a BSD compatible install... /bin/install -c
checking whether make sets $MAKE... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -s -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for gcc -s option to accept ANSI C...
checking for function prototypes... yes
checking for working const... yes
checking for limits.h... yes
checking for memory.h... yes
checking for siginfo.h... no
checking for string.h... yes
checking for unistd.h... yes
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for mkstemp... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigstack... yes
checking for sigvec... yes
checking for strerror... yes
checking for tmpfile... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for strtol... yes
checking ecvt declaration... yes
checking if stack overflow is detectable... yes
checking if changeword is wanted... no
checking if malloc debugging is wanted... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating lib/Makefile
creating src/Makefile
creating checks/Makefile
creating examples/Makefile
creating config.h
+ make
for subdir in doc lib src checks examples; do \
  echo making all in $subdir; \
  (cd $subdir && make CC='gcc -s' CFLAGS='-g -O' LDFLAGS='' LIBS=''
prefix='/usr' exec_prefix='/usr' bindir='/usr/bin' infodir='/usr/info'
all) || exit 1; \
done
making all in doc
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/doc'
making all in lib
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/lib'
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O regex.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O getopt.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O getopt1.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O error.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O obstack.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O xmalloc.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I.  -g -O xstrdup.c
rm -f libm4.a
ar cru libm4.a regex.o getopt.o getopt1.o error.o obstack.o xmalloc.o
xstrdup.o
ranlib libm4.a
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/lib'
making all in src
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/src'
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O m4.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O builtin.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O debug.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O eval.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O format.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O freeze.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O input.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O macro.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O output.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O path.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O stackovf.c
gcc -s -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O symtab.c
gcc -s  -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o
macro.o output.o path.o stackovf.o symtab.o ../lib/libm4.a
stackovf.o: In function `setup_stackovf_trap':
/usr/src/redhat/BUILD/m4-1.4/src/stackovf.c:343: the `sigstack' function
is dangerous.  `sigaltstack' should be used instead.
builtin.o: In function `m4_maketemp':
/usr/src/redhat/BUILD/m4-1.4/src/builtin.c:1081: the use of `mktemp' is
dangerous, better use `mkstemp'
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/src'
making all in checks
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/checks'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/checks'
making all in examples
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/examples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/examples'
+ exit 0
Executing(%install): /bin/sh -e /usr/var/tmp/rpm-tmp.67535
+ umask 022
+ cd /usr//src/redhat/BUILD
+ cd m4-1.4
+ make install
for subdir in doc lib src checks examples; do \
  echo making install in $subdir; \
  (cd $subdir && make CC='gcc -s' CFLAGS='-g -O' LDFLAGS='' LIBS=''
prefix='/usr' exec_prefix='/usr' bindir='/usr/bin' infodir='/usr/info'
install) || exit 1; \
done
making install in doc
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/doc'
./../mkinstalldirs /usr/info
cd . && for file in m4.info*; do \
  /bin/install -c -m 644 $file /usr/info/$file; \
done
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/doc'
making install in lib
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/lib'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/lib'
making install in src
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/src'
./../mkinstalldirs /usr/bin
/bin/install -c m4 /usr/bin/`echo m4 | sed 's,x,x,'`
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/src'
making install in checks
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/checks'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/checks'
making install in examples
make[1]: Entering directory `/usr/src/pc/BUILD/m4-1.4/examples'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/src/pc/BUILD/m4-1.4/examples'
+ /usr//lib/rpm/brp-compress

+ umask 022
+ cd /usr//src/redhat/BUILD
+ cd m4-1.4
+ rm -rf
+ exit 0

Summary: M4 is a macro processor. It copies input to output, expanding macros as it 
goes. Macros are either built-in or user-defined and can take any number of arguments. 
Besides just doing macro expansion, m4 has built-in functions for including named 
files, running Unix commands, doing integer arithmetic, manipulating text in various 
ways, recursion, etc. The m4 program can be used either as a front-end to a compiler 
or as a macro processor in its own right.
Name: m4
Version: 1.4
Release: 1
Copyright: GPL
Group: System Environment/Base
Source: m4-1.4.tar.gz


%description
M4 is a macro processor. It copies input to output, expanding macros as it goes. 
Macros are either built-in or user-defined and can take any number of arguments. 
Besides just doing macro expansion, m4 has built-in functions for including named 
files, running Unix commands, doing integer arithmetic, manipulating text in various 
ways, recursion, etc. The m4 program can be used either as a front-end to a compiler 
or as a macro processor in its own right.
%prep
%setup -q

%build
./configure --prefix=/usr
make
%install
make install
%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%changelog
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to