Bug 58997

Summary: krdc doesn't build on solaris 2.8 sparc (gcc-3.2.2)
Product: [Applications] krdc Reporter: alancio <lameventanas>
Component: generalAssignee: tim
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: proposed patch for vidmode.c

Description alancio 2003-05-26 18:55:23 UTC
Version:            (using KDE KDE 3.1.2)
Installed from:    Compiled From Sources
Compiler:          gcc-3.2 and binutils-2.13 
OS:          Solaris

I am using a separate directory to build KDE (not in the sources directory).
When I try to build krdc I get this error:

/bin/bash ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -fexpensive-optimizations -mtune=ultrasparc -fno-exceptions -fno-check-new -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT -DKDE_NO_COMPAT_H   -L/usr/local/lib -L/usr/openwin/lib -o krdc -L/usr/local/qt-3.1.2/arch/lib -L/usr/local/kde-3.1.2/arch/lib  -R /usr/local/kde-3.1.2/arch/lib -R /usr/local/qt-3.1.2/arch/lib colour.o d3des.o desktop.o rfbproto.o sockets.o vncauth.o krdc.all_cpp.o  -lkdeui -ljpeg  -lslp
krdc.all_cpp.o: In function `KRDC::quit()':
krdc.all_cpp.o(.text+0x2e64): undefined reference to `vidmodeNormalSwitch(_XDisplay*, Resolution)'
krdc.all_cpp.o: In function `KRDC::switchToFullscreen()':
krdc.all_cpp.o(.text+0x3b68): undefined reference to `vidmodeFullscreenSwitch(_XDisplay*, int, int, int, int&, int&)'
krdc.all_cpp.o: In function `KRDC::switchToNormal(bool)':
krdc.all_cpp.o(.text+0x4438): undefined reference to `vidmodeNormalSwitch(_XDisplay*, Resolution)'
krdc.all_cpp.o: In function `KRDC::iconify()':
krdc.all_cpp.o(.text+0x4520): undefined reference to `vidmodeNormalSwitch(_XDisplay*, Resolution)'
krdc.all_cpp.o: In function `KRDC::event(QEvent*)':
krdc.all_cpp.o(.text+0x461c): undefined reference to `vidmodeFullscreenSwitch(_XDisplay*, int, int, int, int&, int&)'
collect2: ld returned 1 exit status
Comment 1 Karsten Künne 2003-05-27 19:24:06 UTC
Created attachment 1659 [details]
proposed patch for vidmode.c

Patch for KDE 3.1.2. This patch fixed it for me.
Comment 2 tim 2003-05-27 19:45:15 UTC
Applied the patch, thanks a lot!