It's weird how it says there's nothing to do for certain directories. 
You're not using NFS for any of these directories are you? Have a peek in 
the resulting BUILDS directory stuff. Also /usr/src/pc/BUILD? WTF? has 
somebody messed with the spec file?


On Sat, 12 Jul 2003, James Dumay wrote:

> 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
> 
> 

-- 
---<GRiP>--- 
Grant Parnell - senior consultant
EverythingLinux services - the consultant's backup & tech support.
Web: http://www.everythinglinux.com.au/services      
We're also busybits.com.au and linuxhelp.com.au.
Phone 02 8752 6622 to book service or discuss your needs.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to