Menu

compiling error with Suse 9.0 and KDE 3.1.5

Help
2004-01-18
2004-01-20
  • Sven Burmeister

    Sven Burmeister - 2004-01-18

    Hi,

    I tried the 0.5 b2 rpm from the ksamba site but the whole ksamba window stays greyed out. I can use the buttons to set everything to default and save the options, but that's it. I am running samba 3.0.1 and installed the packets from the apt-repositories.

    kcmshell kcmsambaconf gives me the following, which made me try to compile the source which did not succeed.

    Starting it from the shell gives me:
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    ASSERT: "!name.isEmpty()" in kinstance.cpp (56)
    loading /etc/samba/smb.conf
    Samba version = 3
    global global:  remove load printers
    QComboBox::setCurrentItem: (protocolCombo) Index 5 out of range
    QComboBox::setCurrentItem: (ldapSslCombo) Index 3 out of range
    QComboBox::setCurrentItem: (maxProtocolCombo) Index 5 out of range
    QComboBox::setCurrentItem: (serverSigningCombo) Index 3 out of range

    I tried to compile 0.5 with the --prefix=/opt/kde3 and get the following messages:

    make  all-recursive
    make[1]: Entering directory `/home/rabauke/Quelltexte/ksambaplugin-0.5'
    Making all in src
    make[2]: Entering directory `/home/rabauke/Quelltexte/ksambaplugin-0.5/src'
    if /bin/sh ../libtool --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -MT printerdlgimpl.lo -MD -MP -MF ".deps/printerdlgimpl.Tpo" \   -c -o printerdlgimpl.lo `test -f 'printerdlgimpl.cpp' || echo './'`printerdlgimpl.cpp; \ then mv -f ".deps/printerdlgimpl.Tpo" ".deps/printerdlgimpl.Plo"; \ else rm -f ".deps/printerdlgimpl.Tpo"; exit 1; \ fi
    In file included from printerdlgimpl.cpp:58
    :
    printerdlgimpl.h:37:27:

    kcmprinterdlg.h: No such file or directory

    In file included from printerdlgimpl.cpp:58:
    printerdlgimpl.h:48: error: parse error before `{' token

    printerdlgimpl.h:49: error: virtual outside class declaration

    printerdlgimpl.h:49: error: non-member function `const char* className()'
       cannot have `const' method qualifier

    printerdlgimpl.h:49: error: virtual outside class declaration

    printerdlgimpl.h:49: error: virtual outside class declaration

    printerdlgimpl.h:49: error: virtual outside class declaration

    printerdlgimpl.h:49: error: virtual outside class declaration

    printerdlgimpl.h: In function `QObject* qObject()':
    printerdlgimpl.h:49: error: invalid use of `this' in non-member function

    printerdlgimpl.h: At global scope:
    printerdlgimpl.h:49: error: parse error before `private'

    printerdlgimpl.h:54: error: destructors must be member functions

    printerdlgimpl.h:56: error: parse error before `protected'

    printerdlgimpl.h:72: error: parse error before `protected'

    printerdlgimpl.h:74: error: virtual outside class declaration

    printerdlgimpl.h:75: error: parse error before `}' token

    In file included from printerdlgimpl.cpp:59
    :
    usertabimpl.h:32:21:

    usertab.h: No such file or directory

    In file included from printerdlgimpl.cpp:59:
    usertabimpl.h:49: error: parse error before `{' token

    usertabimpl.h:50: error: virtual outside class declaration

    usertabimpl.h:50: error: non-member function `const char* className()' cannot
       have `const' method qualifier

    usertabimpl.h:50: error: virtual outside class declaration

    usertabimpl.h:50: error: virtual outside class declaration

    usertabimpl.h:50: error: virtual outside class declaration

    usertabimpl.h:50: error: virtual outside class declaration

    usertabimpl.h: In function `QObject* qObject()':
    usertabimpl.h:50: error: redefinition of `QObject* qObject()'

    printerdlgimpl.h:49: error: `QObject* qObject()' previously defined here

    usertabimpl.h:50: error: redefinition of `QObject* qObject()'

    printerdlgimpl.h:49: error: `QObject* qObject()' previously defined here

    usertabimpl.h:50: error: invalid use of `this' in non-member function

    usertabimpl.h: At global scope:
    usertabimpl.h:50: warning: default argument given for parameter 2 of `QString
       tr(const char*, const char*)'

    printerdlgimpl.h:49: warning: after previous specification in `QString tr(const
       char*, const char*)'

    usertabimpl.h:50: warning: default argument given for parameter 2 of `QString
       trUtf8(const char*, const char*)'

    printerdlgimpl.h:49: warning: after previous specification in `QString
       trUtf8(const char*, const char*)'

    usertabimpl.h:50: error: parse error before `private'

    usertabimpl.h:53: error: destructors must be member functions

    usertabimpl.h:57: error: parse error before `private'

    usertabimpl.h:88: error: parse error before `protected'

    usertabimpl.h:90: error: virtual outside class declaration

    usertabimpl.h:91: error: virtual outside class declaration

    usertabimpl.h:92: error: virtual outside class declaration

    usertabimpl.h:93: error: parse error before `}' token

    printerdlgimpl.cpp:65: error: invalid use of undefined type `class
       PrinterDlgImpl'

    printerdlgimpl.h:47: error: forward declaration of `class PrinterDlgImpl'

    printerdlgimpl.cpp: In constructor `PrinterDlgImpl::PrinterDlgImpl(QWidget*,
       SambaShare*)':
    printerdlgimpl.cpp:65: error: class `PrinterDlgImpl' does not have any field
       named `KcmPrinterDlg'

    printerdlgimpl.cpp:75: error: `initDialog' undeclared (first use this function)

    printerdlgimpl.cpp:75: error: (Each undeclared identifier is reported only once
       for each function it appears in.)

    printerdlgimpl.cpp: At global scope:
    printerdlgimpl.cpp:79: error: invalid use of undefined type `class
       PrinterDlgImpl'

    printerdlgimpl.h:47: error: forward declaration of `class PrinterDlgImpl'

    printerdlgimpl.cpp: In member function `void PrinterDlgImpl::initDialog()':
    printerdlgimpl.cpp:89: error: `queueCombo' undeclared (first use this function)

    printerdlgimpl.cpp:96: error: `pathUrlRq' undeclared (first use this function)

    printerdlgimpl.cpp:97: error: `printersChk' undeclared (first use this
       function)

    printerdlgimpl.cpp:99: error: `shareNameEdit' undeclared (first use this
       function)

    printerdlgimpl.cpp:100: error: `commentEdit' undeclared (first use this
       function)

    printerdlgimpl.cpp:102: error: `availableBaseChk' undeclared (first use this
       function)

    printerdlgimpl.cpp:103: error: `browseableBaseChk' undeclared (first use this
       function)

    printerdlgimpl.cpp:104: error: `publicBaseChk' undeclared (first use this
       function)

    printerdlgimpl.cpp:108: error: parse error before `(' token

    printerdlgimpl.cpp:109: error: `_tabs' undeclared (first use this function)

    printerdlgimpl.cpp:110: error: `load' undeclared (first use this function)

    printerdlgimpl.cpp:111: error: `connect' undeclared (first use this function)
    printerdlgimpl.cpp:116: error: `postscriptChk' undeclared (first use this
       function)
    printerdlgimpl.cpp:117: error: `useClientDriverChk' undeclared (first use this
       function)
    printerdlgimpl.cpp:118: error: `defaultDevmodeChk' undeclared (first use this
       function)
    printerdlgimpl.cpp:120: error: `maxPrintJobsSpin' undeclared (first use this
       function)
    printerdlgimpl.cpp:121: error: `maxReportedPrintJobsSpin' undeclared (first use
       this function)
    printerdlgimpl.cpp:122: error: `printingCombo' undeclared (first use this
       function)
    printerdlgimpl.cpp:127: error: `printerDriverEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:128: error: `printerDriverLocationEdit' undeclared (first
       use this function)
    printerdlgimpl.cpp:132: error: `printCommandEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:133: error: `lpqCommandEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:134:
    error: `lprmCommandEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:135: error: `lppauseEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:136: error: `lpresumeEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:137: error: `queuepauseEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:138: error: `queueresumeEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:142: error: `printerAdminEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:143: error: `hostsAllowEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:144: error: `hostsDenyEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:146: error: `guestAccountCombo' undeclared (first use this
       function)
    printerdlgimpl.cpp:151: error: `minPrintSpaceSpin' undeclared (first use this
       function)
    printerdlgimpl.cpp:152: error: `statusChk' undeclared (first use this function)
    printerdlgimpl.cpp:153: error: `preExecEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:154: error: `postExecEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:155: error: `rootPreExecEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp:156: error: `rootPostExecEdit' undeclared (first use this
       function)
    printerdlgimpl.cpp: At global scope:
    printerdlgimpl.cpp:164: error: invalid use of undefined type `class
       PrinterDlgImpl'
    printerdlgimpl.h:47: error: forward declaration of `class PrinterDlgImpl'
    printerdlgimpl.cpp: In member function `void PrinterDlgImpl::accept()':
    printerdlgimpl.cpp:181: error: `save' undeclared (first use this function)
    printerdlgimpl.cpp:185: error: `KcmPrinterDlg' undeclared (first use this
       function)
    printerdlgimpl.cpp:185: error: parse error before `::' token
    printerdlgimpl.cpp: At global scope:
    printerdlgimpl.cpp:189: error: invalid use of undefined type `class
       PrinterDlgImpl'
    printerdlgimpl.h:47: error: forward declaration of `class PrinterDlgImpl'
    printerdlgimpl.cpp:193: error: invalid use of und
    efined type `class
       PrinterDlgImpl'
    printerdlgimpl.h:47: error: forward declaration of `class PrinterDlgImpl'
    printerdlgimpl.cpp: In member function `void
       PrinterDlgImpl::printersChkToggled(bool)':
    printerdlgimpl.cpp:229: error: `printerPixLbl' undeclared (first use this
       function)

    printerdlgimpl.cpp:230: error: `pixFrame' undeclared (first use this function)

    printerdlgimpl.cpp:241:30:
    printerdlgimpl.moc: No such file or directory
    usertabimpl.h: At top level:
    usertabimpl.h:50: warning: `bool qt_static_property(QObject*, int, int,
       QVariant*)' declared `static' but never defined

    usertabimpl.h:50: warning: `QMetaObject* staticMetaObject()' declared `static'
       but never defined

    make[2]: Leaving directory `/home/rabauke/Quelltexte/ksambaplugin-0.5/src'
    make[1]: Leaving directory `/home/rabauke/Quelltexte/ksambaplugin-0.5'
    usertabimpl.h:50: warning: `QString tr(const char*, const char*)' declared
       `static' but never defined
    usertabimpl.h:50: warning: `QString trUtf8(const char*, const char*)' declared
       `static' but never defined
    make[2]: *** [printerdlgimpl.lo] Fehler 1
    make[1]: *** [all-recursive] Fehler 1
    make: *** [all] Fehler 2

     
    • Jan Schäfer

      Jan Schäfer - 2004-01-19

      Could you post the output of the configure command?

       
    • Sven Burmeister

      Sven Burmeister - 2004-01-20

      checking build system type... i686-pc-linux-gnu
      checking host system type... i686-pc-linux-gnu
      checking target system type... i686-pc-linux-gnu
      checking for a BSD-compatible install... /usr/bin/install -c
      checking for -p flag to install... yes
      checking whether build environment is sane... yes
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking for style of include used by make... GNU
      checking for gcc... gcc
      checking for C compiler default output... a.out
      checking whether the C compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking dependency style of gcc... gcc3
      checking how to run the C preprocessor... gcc -E
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking dependency style of g++... gcc3
      checking whether g++ supports -Wundef... yes
      checking whether g++ supports -Wno-long-long... yes
      checking whether g++ supports -Wnon-virtual-dtor... yes
      checking whether g++ supports -fno-exceptions... yes
      checking whether g++ supports -fno-check-new... yes
      checking whether g++ supports -fexceptions... yes
      checking how to run the C++ preprocessor... g++ -E
      checking whether g++ supports -frepo... yes
      not using lib directory suffix
      checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
      checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
      checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
      checking for BSD-compatible nm... /usr/bin/nm -B
      checking for a sed that does not truncate output...
      checking whether ln -s works... yes
      checking how to recognise dependant libraries... pass_all
      checking for egrep... grep -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking the maximum length of command line arguments... 32768
      checking command to parse /usr/bin/nm -B output from gcc object... ok
      checking for objdir... .libs
      checking for ranlib... ranlib
      checking for strip... strip
      checking if gcc static flag  works... no
      checking if gcc supports -fno-rtti -fno-exceptions... no
      checking for gcc option to produce PIC... -fPIC
      checking if gcc PIC flag -fPIC works... yes
      checking if gcc supports -c -o file.o... yes
      checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
      checking whether -lc should be explicitly linked in... no
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... no
      configure: creating libtool
      appending configuration tag "CXX" to libtool
      checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
      checking for g++ option to produce PIC... -fPIC
      checking if g++ PIC flag -fPIC works... yes
      checking if g++ supports -c -o file.o... yes
      checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
      checking whether -lc should be explicitly linked in... yes
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      appending configuration tag "GCJ" to libtool
      checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
      checking for gcj option to produce PIC... -fPIC
      checking if gcj PIC flag -fPIC works... no
      checking if gcj supports -c -o file.o... no
      checking whether the gcj linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
      checking whether -lc should be explicitly linked in... yes
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking for msgfmt... /usr/bin/msgfmt
      checking for gmsgfmt... /usr/bin/msgfmt
      checking for xgettext... /usr/bin/xgettext
      checking for main in -lutil... yes
      checking for main in -lcompat... no
      checking for crypt in -lcrypt... yes
      checking for socklen_t... socklen_t
      checking for dnet_ntoa in -ldnet... no
      checking for dnet_ntoa in -ldnet_stub... no
      checking for inet_ntoa... yes
      checking for connect... yes
      checking for remove... yes
      checking for shmat... yes
      checking crt_externs.h usability... no
      checking crt_externs.h presence... no
      checking for crt_externs.h... no
      checking for _NSGetEnviron... no
      checking for sys/types.h... (cached) yes
      checking for stdint.h... (cached) yes
      checking for poll in -lpoll... no
      checking CoreAudio/CoreAudio.h usability... no
      checking CoreAudio/CoreAudio.h presence... no
      checking for CoreAudio/CoreAudio.h... no
      checking for res_init... yes
      checking if res_init needs custom prototype... no
      checking for killpg in -lucb... no
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for char *... yes
      checking size of char *... 4
      checking for char... yes
      checking size of char... 1
      checking for dlopen in -ldl... yes
      checking for shl_unload in -ldld... no
      checking for vsnprintf... yes
      checking for snprintf... yes
      checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
      checking for IceConnectionNumber in -lICE... yes
      checking for libXext... yes
      checking for Xinerama... no
      checking for pthread_create in -lpthread... yes
      checking for extra includes... no
      checking for extra libs... no
      checking for libz... -lz
      checking for libpng... -lpng -lz -lm
      checking for libjpeg6b... no
      checking for libjpeg... -ljpeg
      checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3/include using -mt
      checking if Qt compiles without flags... no
      checking for moc... /usr/lib/qt3/bin/moc
      checking for uic... /usr/lib/qt3/bin/uic
      checking whether uic supports -L ... yes
      checking whether uic supports -nounload ... yes
      checking if Qt needs -ljpeg... no
      checking for rpath... yes
      checking for KDE... libraries /opt/kde3/lib, headers /opt/kde3/include
      checking for KDE paths... defaults
      checking for dcopidl... /opt/kde3/bin/dcopidl
      checking for dcopidl2cpp... /opt/kde3/bin/dcopidl2cpp
      checking for mcopidl... /opt/kde3/bin/mcopidl
      checking for artsc-config... /opt/kde3/bin/artsc-config
      checking for kde-config... /opt/kde3/bin/kde-config
      checking for meinproc... /opt/kde3/bin/meinproc
      checking whether byte ordering is bigendian... no
      checking for MAXPATHLEN... 4096
      checking if src should be compiled... yes
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating src/Makefile
      config.status: creating config.h
      config.status: config.h is unchanged
      config.status: executing depfiles commands

      Good - your configure finished. Start make now

       

Log in to post a comment.