[Digikam-users] Compilation problem under slackware 14-64 [solved]

Borries Demeler demeler at biochem.uthscsa.edu
Sat Apr 6 17:10:17 BST 2013


I finally figured out how to solve this problem.  I fixed the
remaining issue simply by copying the includes in /usr/include/sys
from a 32-bit slackware installation, and then everything compiled
flawlessly. Apparently the 64-bit installation is missing these files.

-Borries

On Tue, Mar 19, 2013 at 07:21:16AM -0500, Borries Demeler wrote:
> 
> Dear Gilles,
> 
> I found a partial fix:
> 
> http://www.mail-archive.com/debutant@mandrivalinux.org/msg03456.html
> 
> The issue appears to be with my compiler.
> 
> Including this in Xlib.h:
> 
> /* _X_SENTINEL BS */
> #if defined(__GNUC__) && (__GNUC__ >= 4)
> # define _X_SENTINEL(x) __attribute__ ((__sentinel__(x)))
> 
> # define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y)))
> 
> #else
> # define _X_SENTINEL(x)
> # define _X_ATTRIBUTE_PRINTF(x,y)
> #endif /* GNUC >= 4 */
> 
> 
> removes all errors about '_X_SENTINEL', but the:
>  
>  /usr/include/X11/Xlib.h:1694:1: error: '_X_DEPRECATED' does not name a type
> 
> error remains. Does anyone else in this forum have a suggestion?
> 
> Thanks, -Borries
> 
> On Tue, Mar 19, 2013 at 12:46:19PM +0100, Gilles Caulier wrote:
> > I don't have a fix. It sound like a problem with your X11 headers. Here
> > code compile fine under Linux.
> > 
> > My link to the forum is just to show that problem exist with Qt code and
> > X11.
> > 
> > Gilles Caulier
> > 
> > 
> > 2013/3/19 Borries Demeler <demeler at biochem.uthscsa.edu>
> > 
> > > Hi Gilles,
> > >
> > > thanks very much for responding, but can you tell me what the fix is?
> > >
> > > There was no solution indicated in your link. Including <X11/Xlib.h> is
> > > not the remedy, since it is already included in screenproperties.cpp
> > >
> > > Thanks! -Borries
> > >
> > >
> > > On Tue, Mar 19, 2013 at 06:53:47AM +0100, Gilles Caulier wrote:
> > > > Hi
> > > >
> > > > It's an X11 header failure... #include <X11/xlib.h>
> > > >
> > > > Problem is already seen in other system as
> > > >
> > > >
> > > http://forums.gentoo.org/viewtopic-t-939638-view-next.html?sid=c137290470508c6a78dcfd37776e734c
> > > >
> > > > Gilles Caulier
> > > >
> > > >'_X_SENTINEL'
> 
> > > > 2013/3/19 Borries Demeler <demeler at biochem.uthscsa.edu>
> > > >
> > > > > I am trying to compile digikam 3.1 on Slackware 14/64 (upgraded to
> > > > > current), but am
> > > > > running into compilation issues. My first issue is:
> > > > >
> > > > > [ 35%] Building CXX object
> > > > >
> > > extra/kipi-plugins/advancedslideshow/CMakeFiles/kipiplugin_advancedslideshow.dir/plugin/screenproperties.cpp.o
> > > > > In file included from
> > > > >
> > > /root/digikam-3.1.0/extra/kipi-plugins/advancedslideshow/plugin/screenproperties.cpp:38:0:
> > > > > /usr/include/X11/Xlib.h:1694:1: error: '_X_DEPRECATED' does not name a
> > > type
> > > > > /usr/include/X11/Xlib.h:3579:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3584:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3597:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3610:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3615:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3847:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3851:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3863:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3891:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3895:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > /usr/include/X11/Xlib.h:3935:3: error: expected initializer before
> > > > > '_X_SENTINEL'
> > > > > make[2]: ***
> > > > >
> > > [extra/kipi-plugins/advancedslideshow/CMakeFiles/kipiplugin_advancedslideshow.dir/plugin/screenproperties.cpp.o]
> > > > > Error 1
> > > > > make[1]: ***
> > > > >
> > > [extra/kipi-plugins/advancedslideshow/CMakeFiles/kipiplugin_advancedslideshow.dir/all]
> > > > > Error 2
> > > > > make: *** [all] Error 2
> > > > >
> > > > >
> > > > > Can someone suggest a solution?
> > > > >
> > > > > Thanks, -Borries
> > > > > _______________________________________________
> > > > > Digikam-users mailing list
> > > > > Digikam-users at kde.org
> > > > > https://mail.kde.org/mailman/listinfo/digikam-users
> > > > >
> > >
> > > > _______________________________________________
> > > > Digikam-users mailing list
> > > > Digikam-users at kde.org
> > > > https://mail.kde.org/mailman/listinfo/digikam-users
> > >
> > > _______________________________________________
> > > Digikam-users mailing list
> > > Digikam-users at kde.org
> > > https://mail.kde.org/mailman/listinfo/digikam-users
> > >
> 
> > _______________________________________________
> > Digikam-users mailing list
> > Digikam-users at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-users
> 



More information about the Digikam-users mailing list