Gpp unhappy while compiling asterisk 1.4.2

New Debian stable 4.0 (etch)
kernel 2.6.18-4-686
gcc/etch uptodate 4:4.1.1-15
gpp/etch uptodate 2.24-1
make/etch uptodate 3.81-2

Built, installed and loaded zaptel-1.4.1
Built and installed libpri-1.4.0

I run ./configure, make menuconfig then make and gpp comes out with the syntax assist:

asterisk:/opt/asterisk/src/asterisk-1.4.2# make
Generating embedded module rules …
[CC] astman.c -> astman.o
[CC] md5.c -> md5.o
[LD] astman.o md5.o -> astman
Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val …] [-z] [-x] [-m]
[-n] [-C | -T | -H | -X | -P | -U … [-M …]] [+c str1 str2]
[+s str1 str2 c] [long options] [infile]

------ removing long syntax assist -----------

make[1]: *** [astman] Error 1
make: *** [utils] Error 2

Of course astman is not built:
-rw-r–r-- 1 root root 0 2007-04-18 06:50 astman
-rw-r–r-- 1 root root 2323 2006-02-14 14:14 astman.1
-rw-r–r-- 1 root root 19096 2007-01-05 17:16 astman.c
-rw-r–r-- 1 root root 143044 2007-04-18 06:50 astman.o

This is my first try at building asterisk.

What can I possibly be doing wrong?


OK so I figured it out:

Do not install package gpp, it is not required and confuses “configure”

I had to make a link ln -s /usr/bin/g+±4.1 /usr/bin/g++ for make to succeed

Asterisk 1.4.2 now compiles fine on Debian Etch.