make[2]: Entering directory `/var/tmp/portage/net-misc/vnc-4.1.2-r4/work/vnc-4_1_2-unixsrc/common/network' /bin/sh ../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT TcpSocket.lo -MD -MP -MF .deps/TcpSocket.Tpo -c -o TcpSocket.lo TcpSocket.cxx mkdir .libs i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -MT TcpSocket.lo -MD -MP -MF .deps/TcpSocket.Tpo -c TcpSocket.cxx -fPIC -DPIC -o .libs/TcpSocket.o TcpSocket.cxx: In static member function ‘static network::TcpFilter::Pattern network::TcpFilter::parsePattern(const char*)’: TcpSocket.cxx:445: error: ‘atoi’ was not declared in this scope make[2]: *** [TcpSocket.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-misc/vnc-4.1.2-r4/work/vnc-4_1_2-unixsrc/common/network' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/vnc-4.1.2-r4/work/vnc-4_1_2-unixsrc/common' make: *** [all] Error 2
Created attachment 151222 [details, diff] vnc-4.1.2-gcc43.patch Fixes the problem. Snatched from Debian. Only verified with USE="-server".
*** This bug has been marked as a duplicate of bug 212948 ***