Ola wrote:
> I get:
>
> vnc/Xvnc/libxvnc.a(xvnc.o): In function `vfbScreenInit(int, _Screen*, int,
> char**)':
> xvnc.cc:(.text+0x7c3): undefined reference to `fbScreenInit'
> xvnc.cc:(.text+0x952): undefined reference to `fbCreateDefColormap'
> xvnc.cc:(.text+0xa5c): undefined reference to `fbPictureInit'
> collect2: ld returned 1 exit status
I got that too but had success with the attached changes.
The crashes were not "random" as the bug title suggests but occurred
reliably on Eclipse startup. However, my Eclipse workspace was in an
unusual state, just copied from another machine. Nevertheless, adding
--with-fb and including fb/libfb.a in the link got me past the crash.
vnc4server 4.1.1+X4.3.0-31
Regards,
-John
diff --exclude=configure --exclude=vnc.def -urw vnc4-4.1.1+X4.3.0/debian/rules vnc4-4.1.1+X4.3.0-jtobey/debian/rules
--- vnc4-4.1.1+X4.3.0/debian/rules 2010-12-28 13:19:18.000000000 -0500
+++ vnc4-4.1.1+X4.3.0-jtobey/debian/rules 2010-12-28 13:19:14.000000000 -0500
@@ -43,11 +43,12 @@
configure-unix-stamp:
dh_testdir
# Add here commands to configure the package.
- (cd unix; CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure \
+ (cd unix; autoconf; \
+ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure \
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
- --with-installed-zlib)
+ --with-installed-zlib --with-fb)
touch configure-unix-stamp
#Architecture
diff --exclude=configure --exclude=vnc.def -urw vnc4-4.1.1+X4.3.0/unix/configure.in vnc4-4.1.1+X4.3.0-jtobey/unix/configure.in
--- vnc4-4.1.1+X4.3.0/unix/configure.in 2010-12-28 13:19:18.000000000 -0500
+++ vnc4-4.1.1+X4.3.0-jtobey/unix/configure.in 2010-12-28 13:07:53.000000000 -0500
@@ -67,7 +67,7 @@
AC_ARG_WITH(fb,
[ --with-fb use the new 'fb' framebuffer implementation])
-if test "$with_installed_zlib" = yes; then
+if test "$with_fb" = yes; then
echo "using 'fb' framebuffer"
USE_FB=YES
else
diff --exclude=configure --exclude=vnc.def -urw vnc4-4.1.1+X4.3.0/unix/xc/config/cf/vnc.def.in vnc4-4.1.1+X4.3.0-jtobey/unix/xc/config/cf/vnc.def.in
--- vnc4-4.1.1+X4.3.0/unix/xc/config/cf/vnc.def.in 2010-12-28 13:19:18.000000000 -0500
+++ vnc4-4.1.1+X4.3.0-jtobey/unix/xc/config/cf/vnc.def.in 2010-12-28 13:20:22.000000000 -0500
@@ -31,7 +31,8 @@
VncCommonDir/network/libnetwork.a \
VncCommonDir/rdr/librdr.a
-#define SiteExtensionLibs vnc/LibraryTargetName(vnc) VncExtLibs
+#define SiteExtensionLibs vnc/LibraryTargetName(vnc) \
+ fb/LibraryTargetName(fb) VncExtLibs
#define ServerTarget(server,subdirs,objects,libs,syslibs) @@\
CCLINK = $(CXXENVSETUP) $(CXX) @@\