Misc. Build problems: We collect here rare build
problems some users have reported and the corresponding workarounds.
See also the FAQ's on building.
One user had a problem where the build script below was failing because his
work environment had the ENV variable set to a script that
was resetting his PATH so that gcc could no longer be found.
Make sure you do not have any ENV or BASH_ENV in your
environment doing things like that. Typing "unset ENV", etc.
before configuring and building should clear it.
One user had his bash shell compiled with
--enable-xpg-echo-default that causes some strange behavior
with things like echo "\\1 ..." the configure script
executes. In particular instead of getting "\1" the non-printable
character "^A" is produced, and causes failures at
compile time like:
../rfb/rfbconfig.h:9:22: warning: extra tokens at end of #ifndef directive
The workaround is to configure like this:
env CONFIG_SHELL=/bin/sh /bin/sh ./configure
i.e. avoid using the bash with the misbehavior. A bug has been filed
against autoconf to guard against this.
AIX: one user had to add the "X11.adt" package to AIX to get build
header files like XShm.h, etc.
Ubuntu Feisty Fawn 7.04: In May/2007 one user said he needed to add these
packages to compile x11vnc on that Linux distro and version:
apt-get install build-essential make bin86 libjpeg62-dev libssl-dev libxtst-dev
Note that Ubuntu is based on Debian, so perhaps this is the list needed on
Debian (testing?) as well. To build in Avahi (mDNS service advertising)
support it would appear that libavahi-client-dev is needed as well.