Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#18 Build fails on freebsd

None
closed
nobody
None
1
2013-03-06
2013-01-27
Eike Sauer
No

Hello!

I'm packaging kshutdown for Debian. The version 3.0 Beta 5 doesn't compile on our freebsd architectures. I tried to fix it by ifdef'ing the dbus parts in lock.cpp, but then, other dbus call failed. Sometimes they've got an extra define, sometimes they're just used if not on Windows, ...
The build logs can be found at https://buildd.debian.org/status/package.php?p=kshutdown&suite=sid .

Ciao,
Eike

Discussion

  • Hi!

    I think the problem is in src/pureqt.h:

    #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HURD)
    

    Probably Q_OS_FREEBSD is undefined
    and you can try __FreeBSD_kernel__ instead
    (as suggested here: http://glibc-bsd.alioth.debian.org/porting/PORTING ):

    #if defined(Q_OS_LINUX) || defined(__FreeBSD_kernel__) || defined(Q_OS_HURD)
    

    This the only place where "freebsd" is referenced.
    All other code is common for all unix-like platforms.

    Thanks,
    Konrad

     
    • Eike Sauer
      Eike Sauer
      2013-03-04

      Thank you! The new version solved my building problems!
      (Sorry for being late, I've been on vacation.)

       


Anonymous


Cancel   Add attachments