Thread: Configure script / RedHat 8.0 issues

Configure script / RedHat 8.0 issues

From
Jean-Michel POURE
Date:
Dear all,

I had some problems while packaging new RPMs (new naming scheme). If you don't
have time, just don't fix them. These problems are not important:

1) pgAdmin3 configure script

wxGTK2ud-cvs rpm from http://snake.pgadmin.org/redhat9/development_environment
will install /usr/bin/wxgtk2ud-2.5-config and not /usr/bin/wx-config (as in
wxGTK2.4).

I don't want to create the symlink in the wxGTK2ud package to avoid conflicts
with existing wxGTK2.5 packages.

Could it possible to modify the ./configure script so that it checks for
/usr/bin/wxgtk2ud-2.5-config when passed with the following options:
--enable-debug --enable-unicode --enable-gtk2

Adam: do you think you can fix this?

2) pgAdmin3 compilation under RedHat 8.0

Rebuilding wxGTK2 works, not pgAdmin3.

a) rpmbuild --rebuild wxGTK2ud-cvs-2.5-20030607.src.rpm
Install bynary packages. Then, create a symlink from
/usr/bin/wxgtk2ud-2.5-config to /usr/bin/wx-config
This works fine.

b) Then, rebuild pgAdmin3 package
rpmbuild --rebuild pgadmin3-0.1.1-20030616.src.rpm

Any idea why compilation fails under RedHat 8.0?

Configure fails with the following error:
+ sh bootstrap
+ aclocal
+ autoheader
+ automake --foreign --add-missing --copy
configure.ac:7: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
error: Bad exit status from /var/tmp/rpm-tmp.3017 (%build)

If I use a RedHat 9 configure script:
1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning:   as it has already been specified as a non-system directory
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include
-I/usr/lib/wx/include/gtk2ud-2.5 -D__WXDEBUG__ -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I./include/ -I
-g -O2 -MT pgObject.o -MD -MP -MF ".deps/pgObject.Tpo" \
  -c -o pgObject.o `test -f 'schema/pgObject.cpp' || echo
'./'`schema/pgObject.cpp; \
then mv -f ".deps/pgObject.Tpo" ".deps/pgObject.Po"; \
else rm -f ".deps/pgObject.Tpo"; exit 1; \
fi
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning:   as it has already been specified as a non-system directory
schema/pgObject.cpp: In member function `void pgObject::AppendMenu(wxMenu*,
   int)':
schema/pgObject.cpp:83: `MNU_NEW' undeclared (first use this function)
schema/pgObject.cpp:83: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[2]: *** [pgObject.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/pgadmin3-20030615/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/pgadmin3-20030615'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.22661 (%build)






Re: Configure script / RedHat 8.0 issues

From
Adam Pendleton
Date:
Jean-Michel POURE wrote:

>Adam: do you think you can fix this?
>
Sure.

>Configure fails with the following error:
>+ sh bootstrap
>+ aclocal
>+ autoheader
>+ automake --foreign --add-missing --copy
>configure.ac:7: `automake requires `AM_CONFIG_HEADER', not
`AC_CONFIG_HEADER'
>error: Bad exit status from /var/tmp/rpm-tmp.3017 (%build)
>
You are using an old version of Automake.  You need to get the latest
version of automake from ftp.redhat.com/pub/redhat/linux/rawhide (or a
mirror).  I will add an explicit automake version macro with my next
patch so that this error is more obvious.

ahp