The sources of x11-misc/x11vnc rely on an old structuring of X11 header files. Since recent version of X.Org building of vanilla x11vnc fails. This can be fixed by adding the proper includes. Patch is attached.
Created attachment 208467 [details, diff] Simple patch, adding the required includes
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -D_REENTRANT -march=native -O2 -pipe -fomit-frame-pointer -msse3 -Wall -MT x11vnc-cursor.o -MD -MP -MF ".deps/x11vnc-cursor.Tpo" -c -o x11vnc-cursor.o `test -f 'cursor.c' || echo './'`cursor.c; \ then mv -f ".deps/x11vnc-cursor.Tpo" ".deps/x11vnc-cursor.Po"; else rm -f ".deps/x11vnc-cursor.Tpo"; exit 1; fi cleanup.c: In function âXerrorâ: cleanup.c:288: error: âX_ShmAttachâ undeclared (first use in this function) cleanup.c:288: error: (Each undeclared identifier is reported only once cleanup.c:288: error: for each function it appears in.) cleanup.c: In function âcrash_shellâ: cleanup.c:471: warning: ignoring return value of âsystemâ, declared with attribute warn_unused_result cleanup.c:477: warning: ignoring return value of âsystemâ, declared with attribute warn_unused_result make[3]: *** [x11vnc-cleanup.o] Error 1 make[3]: *** Waiting for unfinished jobs.... --------------------------------------------------------- compile works after changing x11vnc-cleanup.o line 288 "X_shm.." to "Xshm.."
> compile works after changing x11vnc-cleanup.o line 288 "X_shm.." to "Xshm.." Applying my patch also fixes the problem, but leaves the identifier intact X_Shm... != Xshm on a deeper level of the X.org sources. Just my 2 cents.
Created attachment 209384 [details, diff] patch fix against x11vnc-0.9.8 ebuild for local overlay to apply this patch to a local overlay (supposing you have it in PORTDIR_OVERLAY=/usr/local/portage and saved the patch to /root/x11vnc-0.9.8-shm-fix.patch): cd /usr/portage/ cp -p --parents x11-misc/x11vnc/x11vnc-0.9.8.ebuild /usr/local/portage/ cd /usr/local/portage/x11-misc/x11vnc patch -p1 < /root/x11vnc-0.9.8-shm-fix.patch ebuild x11vnc-0.9.8.ebuild compile
My patch to the ebuild includes a patch to x11vnc.h, that is practically the same sent by Wolfgang Draxinger (thanks).
thanks, commited.