Thread: rpmbuild not working with pgadmin v 1.2.2 src rpm under fedora core 4

rpmbuild not working with pgadmin v 1.2.2 src rpm under fedora core 4

From
Max Giesbert
Date:
hi,

i am experiencing trouble building the mentioned src rpm.

first i get an error that wx-config could not be found. i then change
the --with-wx=/usr/local option to --with-wx=/usr/bin in the .spec file
calling the configure script.

then i get the following error:

rpmbuild -bb pgadmin3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.71891
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf pgadmin3-1.2.2
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/pgadmin3-1.2.2.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pgadmin3-1.2.2
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.97799
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd pgadmin3-1.2.2
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export CFLAGS=
+ CFLAGS=
+ export CXXFLAGS=
+ CXXFLAGS=
+ CFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64
-mtune=nocona'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64
-mtune=nocona'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64
-mtune=nocona'
+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess
`/usr/lib/rpm/redhat/config.guess' -> `./config/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./config/config.sub'
+ ./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --enable-static --with-wx-config=wx-config
--with-wx=/usr/bin --disable-debug
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working strtod... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for wx-config binary... yes
yes
checking for pgsql include files... yes
./configure: line 4876: --cflags: command not found
./configure: line 4878: --cppflags: command not found
checking for pgsql... yes
checking for PQexec in -lpq... yes
checking for SSL_connect in -lpq... yes
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking pgsql in /usr... ok
checking for wxWindows... yes
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
[--release]                 [--basename] [--static] [--libs] [--gl-libs]                 [--cppflags] [--cflags]
[--cxxflags][--ldflags]
 
[--rezflags]                 [--cc] [--cxx] [--ld]                 [--inplace]

wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.

The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory.  (Currently configure
must be invoked via a full path name for this to work correctly.)
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/mac/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ make all
make  all-recursive
make[1]: Entering directory `/usr/src/redhat/BUILD/pgadmin3-1.2.2'
Making all in src
make[2]: Entering directory `/usr/src/redhat/BUILD/pgadmin3-1.2.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\"
-Wall -g -I../src/include -I../src/agent/include -Wall -g -O0
-I/usr/include -DSSL -I/usr/lib64/wx/include/gtk2-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -g -I../src/include
-I../src/agent/include -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-m64 -mtune=nocona -MT pgAdmin3.o -MD -MP -MF ".deps/pgAdmin3.Tpo" -c -o
pgAdmin3.o pgAdmin3.cpp; \
then mv -f ".deps/pgAdmin3.Tpo" ".deps/pgAdmin3.Po"; else rm -f
".deps/pgAdmin3.Tpo"; exit 1; fi
pgAdmin3.cpp:23:25: error: wx/stdpaths.h: No such file or directory
make[2]: *** [pgAdmin3.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/pgadmin3-1.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/pgadmin3-1.2.2'
make: *** [all] Error 2
Fehler: Bad exit status from /var/tmp/rpm-tmp.97799 (%build)


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

------------------------

the stdpaths.h isn't anywhere on the harddisk.

is it possible that the src.rpm needs wxGTK >=2.6?

if so, why doesn't the dependency check fail?

also has anyone got wxGTK-2.6 rpms for x86_64?

thx

max