• Error compiling gtkmonitor

    From Kirkman@VERT/GUARDIAN to All on Wednesday, February 05, 2014 16:36:13
    Hi all,

    I don't often use umonitor, but today as I was reading the Synchronet instructions about it, I saw the mention of gtkmonitor. I went hunting for it on my system, but didn't find it in /exec/, I saw the source for it was in the /src/ directories, so I tried to compile it.

    I got several errors, which I fixed by installing the "libglade2.0-dev" package.

    After that, it almost compiles, but it errors out with "/usr/bin/ld: cannot find -lsbbs"

    I have seen a couple threads from 2009 with this issue (and they all seemed to be on Debian, which I am also using), but I didn't see a solution about how to fix it.

    My BBS was compiled from source.

    Here's the output of make VERBOSE=1:



    make -C ../../xpdev mtlib
    make[1]: Entering directory `/sbbs/src/xpdev'
    make[1]: Nothing to be done for `mtlib'.
    make[1]: Leaving directory `/sbbs/src/xpdev'
    make -C ../../smblib lib
    make[1]: Entering directory `/sbbs/src/smblib'
    make[1]: Nothing to be done for `lib'.
    make[1]: Leaving directory `/sbbs/src/smblib'
    Linking gcc.linux.x64.exe.debug/gtkmonitor
    gcc -Lgcc.linux.x64.lib.debug -Wl,-E -L../gcc.linux.x64.lib.debug - L../../smblib/gcc.linux.x64.lib.debug -L../../xpdev/gcc.linux.x64.lib.debug -Wl,--rpath - Wl,/sbbs/src/sbbs3/gcc.linux.x64.lib.debug gcc.linux.x64.obj.debug-mt/gtkmonitor.o
    gcc.linux.x64.obj.debug-mt/util_funcs.o gcc.linux.x64.obj.debug-mt/events.o
    -o gcc.linux.x64.exe.debug/gtkmonitor -lsbbs `pkg-config libglade-2.0 --libs` -lsmb -lxpdev_mt -lm - lpthread
    /usr/bin/ld: cannot find -lsbbs
    collect2: ld returned 1 exit status
    make: *** [gcc.linux.x64.exe.debug/gtkmonitor] Error 1

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    þ Synchronet
  • From Deuce@VERT/SYNCNIX to Kirkman on Wednesday, February 05, 2014 17:47:12
    Re: Error compiling gtkmonitor
    By: Kirkman to All on Wed Feb 05 2014 04:36 pm

    I don't often use umonitor, but today as I was reading the Synchronet instructions about it, I saw the mention of gtkmonitor. I went hunting for it on my system, but didn't find it in /exec/, I saw the source for it was in the /src/ directories, so I tried to compile it.

    I got several errors, which I fixed by installing the "libglade2.0-dev" package.

    After that, it almost compiles, but it errors out with "/usr/bin/ld: cannot find -lsbbs"

    This is likely because you don't have a matching libsbbs.so in the expected directory. In your example, it needed sbbs3/gcc.linux.x64.lib.debug/libsbbs.so
    to exist. You can create it by changing to the sbbs3 directory and doing a "gmake".

    Likely you have a release build, so that would be the better lib to link against by doing a non-debug build of gtkmonitor:

    gmake RELEASE=please


    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)