From: Graeme Gemmill on
Environment is Mandriva 2008.0, gcc version 4.2.2 20071128 (prerelease)
(4.2.2-3.1mdv2008.0)
Downloaded wxAll, version 2.8.7. Last line of "configure " output is:
Configured wxWidgets 2.8.7 for `i686-pc-linux-gnu'
Got a fatal error during Make:

The last dozen or so lines of Make output are:
rm -f /usr/src/wxWidgets/lib/libwxtiff-2.8.a
ar rcu /usr/src/wxWidgets/lib/libwxtiff-2.8.a wxtiff_tif_unix.o
wxtiff_tif_aux.o wxtiff_tif_close.o wxtiff_tif_codec.o
wxtiff_tif_color.o wxtiff_tif_compress.o wxtiff_tif_dir.o
wxtiff_tif_dirinfo.o wxtiff_tif_dirread.o wxtiff_tif_dirwrite.o
wxtiff_tif_dumpmode.o wxtiff_tif_error.o wxtiff_tif_extension.o
wxtiff_tif_fax3.o wxtiff_tif_fax3sm.o wxtiff_tif_getimage.o
wxtiff_tif_jpeg.o wxtiff_tif_flush.o wxtiff_tif_lzw.o wxtiff_tif_luv.o
wxtiff_tif_next.o wxtiff_tif_open.o wxtiff_tif_packbits.o
wxtiff_tif_pixarlog.o wxtiff_tif_predict.o wxtiff_tif_print.o
wxtiff_tif_read.o wxtiff_tif_swab.o wxtiff_tif_strip.o
wxtiff_tif_thunder.o wxtiff_tif_tile.o wxtiff_tif_version.o
wxtiff_tif_warning.o wxtiff_tif_write.o wxtiff_tif_zip.o
ranlib /usr/src/wxWidgets/lib/libwxtiff-2.8.a
/usr/src/wxWidgets/bk-deps gcc -c -o wxexpat_xmlparse.o -I./src/expat
-fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/src/wxWidgets/lib/wx/include/x11univ-ansi-release-2.8 -I./include
-pthread -Wall -Wundef -O2 -fno-strict-aliasing ./src/expat/lib/xmlparse.c
/usr/src/wxWidgets/bk-deps gcc -c -o wxexpat_xmlrole.o -I./src/expat
-fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/src/wxWidgets/lib/wx/include/x11univ-ansi-release-2.8 -I./include
-pthread -Wall -Wundef -O2 -fno-strict-aliasing ./src/expat/lib/xmlrole.c
/usr/src/wxWidgets/bk-deps gcc -c -o wxexpat_xmltok.o -I./src/expat
-fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/src/wxWidgets/lib/wx/include/x11univ-ansi-release-2.8 -I./include
-pthread -Wall -Wundef -O2 -fno-strict-aliasing ./src/expat/lib/xmltok.c
rm -f /usr/src/wxWidgets/lib/libwxexpat-2.8.a
ar rcu /usr/src/wxWidgets/lib/libwxexpat-2.8.a wxexpat_xmlparse.o
wxexpat_xmlrole.o wxexpat_xmltok.o
ranlib /usr/src/wxWidgets/lib/libwxexpat-2.8.a
/usr/src/wxWidgets/bk-make-pch .pch/wxprec_basedll/wx/wxprec.h.gch
wx/wxprec.h g++ -I.pch/wxprec_basedll -D__WXX11__ -D__WXUNIVERSAL__
-I./src/tiff -I./src/jpeg -I./src/png -I./src/expat/lib -DwxUSE_GUI=0
-DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC -DPIC -DWX_PRECOMP
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/src/wxWidgets/lib/wx/include/x11univ-ansi-release-2.8 -I./include
-pthread -O2 -fno-strict-aliasing
/usr/src/wxWidgets/bk-make-pch: line 48: g++: command not found
make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 127

Can you help please?
Thanks and regards
Graeme Gemmill



From: Vadim Zeitlin on
On Wed, 07 May 2008 17:03:47 +0100 Graeme Gemmill <graeme(a)gemmill.name> wrote:

GG> Environment is Mandriva 2008.0, gcc version 4.2.2 20071128 (prerelease)
GG> (4.2.2-3.1mdv2008.0)
GG> Downloaded wxAll, version 2.8.7. Last line of "configure " output is:
GG> Configured wxWidgets 2.8.7 for `i686-pc-linux-gnu'
GG> Got a fatal error during Make:
....
GG> /usr/src/wxWidgets/bk-make-pch: line 48: g++: command not found
GG> make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 127
GG>
GG> Can you help please?

I think the error message is sufficiently clear. Surprisingly, to build
wxWidgets you need to have a C++ compiler and you don't seem to have g++.

The interesting question is, of course, how did configure fail to notice
it but to find it out you'd need to look at your config.log file.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

From: Graeme Gemmill on
Vadim Zeitlin wrote:
> On Wed, 07 May 2008 17:03:47 +0100 Graeme Gemmill <graeme(a)gemmill.name> wrote:
>
> GG> Environment is Mandriva 2008.0, gcc version 4.2.2 20071128 (prerelease)
> GG> (4.2.2-3.1mdv2008.0)
> GG> Downloaded wxAll, version 2.8.7. Last line of "configure " output is:
> GG> Configured wxWidgets 2.8.7 for `i686-pc-linux-gnu'
> GG> Got a fatal error during Make:
> ...
> GG> /usr/src/wxWidgets/bk-make-pch: line 48: g++: command not found
> GG> make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 127
> GG>
> GG> Can you help please?
>
> I think the error message is sufficiently clear. Surprisingly, to build
> wxWidgets you need to have a C++ compiler and you don't seem to have g++.
>
> The interesting question is, of course, how did configure fail to notice
> it but to find it out you'd need to look at your config.log file.
>
> Regards,
> VZ
>
>
Thanks for that, Vadim. There were error messages to be found in config.log, but

a) they weren't obvious enough to a newcomer to installation by compilation
b) Mandriva used to have an installation option that loaded development
packages. There wasn't one with
2008.0 on this laptop, so I assumed that development software might be
loaded. However,
I've done the necessary with urpmi, so I'm now waiting for the make
process to finish.
Thanks again
Graeme