[SM-Grimoire-Bugs] [Bug 15921] New: perl-tk fails to compile with libx11 1.4.0

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Thu Dec 16 17:17:19 EST 2010


http://bugs.sourcemage.org/show_bug.cgi?id=15921

           Summary: perl-tk fails to compile with libx11 1.4.0
           Product: Codex
           Version: stable-rc grimoire
          Platform: All
               URL: http://bugs.gentoo.org/show_bug.cgi?id=345987
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: perl-cpan
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: sandalle at sourcemage.org


$ cat /var/lib/sorcery/codex/stable-rc/VERSION
0.51-rc
c475f12242110abb2dddc1c7560bf6d16947794f

stable 0.50 does not have libx11 1.4.0 yet.

$ sorcery -v
1.14.5-rc2

$ gaze from /usr/include/X11/Xlib.h
libx11-1.4.0:/usr/include/X11/Xlib.h

Somewhat recent changes to libx11:
2010-11-30 Vlad Glagolev <stealth at sourcemage.org>
        * DEPENDS: libxcb isn't optional anymore

2010-11-22 Treeve Jelbert <treeve at sourcemage.org>
        * DETAILS: version 1.4.0

$ gaze version perl perl-tk tk libx11
Grimoire  Section    Spell    Grimoire Version  Installed Version
--------  -------    -----    ----------------  -----------------
test      devel      perl     5.12.2            5.12.2
test      perl-cpan  perl-tk  804.029           804.029
test      devel      tk       8.5.9             -
test      xorg-lib   libx11   1.4.0             1.4.0

# cast perl-tk
Computing previously installed dependencies...
perl-tk preparing environment...
perl-tk checking dependencies...
perl-tk has a dependency on xorg-libs
perl-tk has a dependency on perl
xorg-libs No work to do.
perl No work to do.
Collating dependencies...
Spells are to be cast:
---------------------------
perl-tk

Do you want to cast these spells? [y]
...

cc -c  -I..  -I. -Ibitmaps  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pip
e -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native
-mt
une=native -m32 -pipe -DPIC -fPIC -O2   -DVERSION=\"804.029\"
-DXS_VERSION=\"804
.029\" -fPIC "-I/usr/lib/perl5/5.12.2/i686-linux-thread-multi/CORE"   -Wall
-Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Lang_f.c
cc -c  -I..  -I. -Ibitmaps  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pip
e -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native
-mt
une=native -m32 -pipe -DPIC -fPIC -O2   -DVERSION=\"804.029\"
-DXS_VERSION=\"804
.029\" -fPIC "-I/usr/lib/perl5/5.12.2/i686-linux-thread-multi/CORE"   -Wall
-Wno
-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c
In file included from Xlib_f.c:9:Xlib.h:22: error: conflicting types for
'XKeycodeToKeysym'
/usr/include/X11/Xlib.h:1694: note: previous declaration of 'XKeycodeToKeysym'
w
as here
make[1]: *** [Xlib_f.o] Error 1
make[1]: Leaving directory `/usr/src/Tk-804.029/pTk'
make: *** [pTk/libpTk.a] Error 2

Gentoo has a similar bug at http://bugs.gentoo.org/show_bug.cgi?id=345987.
Comment #6 says:
Fixed. The only change in Xlib.h from 1.3.6 to 1.4.0 is 
s/_XLIB_H_/_X11_XLIB_H_/.

commit d0cbf388919364fe6b5b9127f36426eb744090a0
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Sun Sep 26 21:21:16 2010 -0700

    Add an "X11_" string to header guards to avoid possible collision

    This addresses a build failure which can result from <X11/Xlocale.h> and
    <xlocale.h> being included in the same code since they both used the same
    _XLOCALE_H_ protection.

    Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

I have not tested this yet.

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the SM-Grimoire-Bugs mailing list