Skip Menu |

This queue is for tickets about the X11-GUITest CPAN distribution.

Report information
The Basics
Id: 106056
Status: new
Priority: 0/
Queue: X11-GUITest

People
Owner: Nobody in particular
Requestors: alexchandel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.11
  • 0.12
  • 0.13
  • 0.14
  • 0.15
  • 0.16
  • 0.17
  • 0.18
  • 0.19
  • 0.20
  • 0.21
  • 0.22
  • 0.23
  • 0.24
  • 0.25
  • 0.26
  • 0.27
  • 0.28
Fixed in: (no value)



Subject: Module fails to build with X11 on OS X 10.10
The module looks for X11 headers in `/usr/X11R6/include`, but on OS X XQuartz is installed to `/opt/X11`: ``` cpan[1]> install X11::GUITest Reading '/Users/alex/.cpan/Metadata' Database was generated on Wed, 22 Jul 2015 19:53:33 GMT Running install for module 'X11::GUITest' Checksum for /Users/alex/.cpan/sources/authors/id/C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz ok Scanning cache /Users/alex/.cpan/build for sizes ...............................................................-------------DONE ... 'YAML' not installed, will not store persistent state Configuring C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lXtst Warning (mostly harmless): No library found for -lX11 Generating a Unix-style Makefile Writing Makefile for X11::GUITest Writing MYMETA.yml and MYMETA.json CTRONDLP/X11-GUITest-0.28.tar.gz /usr/local/Cellar/perl/5.22.0/bin/perl Makefile.PL -- OK Running make for C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz cp GUITest.pm blib/lib/X11/GUITest.pm Running Mkbootstrap for X11::GUITest () chmod 644 "GUITest.bs" "/usr/local/Cellar/perl/5.22.0/bin/perl" "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/xsubpp" -typemap "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/typemap" -typemap "typemap" GUITest.xs > GUITest.xsc && mv GUITest.xsc GUITest.c cc -c -I/usr/X11R6/include -I/usr/X/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -Wall -O2 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" "-I/usr/local/Cellar/perl/5.22.0/lib/5.22.0/darwin-thread-multi-2level/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L GUITest.c GUITest.xs:38:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> ^ 1 error generated. make: *** [GUITest.o] Error 1 CTRONDLP/X11-GUITest-0.28.tar.gz /usr/bin/make -- NOT OK Failed during this command: CTRONDLP/X11-GUITest-0.28.tar.gz : make NO ``` The headers would be in `/opt/X11/include`.
From: alexchandel [...] gmail.com
Moreover, even when attempting to work around and add `LIBS=-L/opt/X11/lib INC=-I/opt/X11/include` to "makepl_arg", X11::GUITest still fails to load X11 symbols: ``` /usr/local/Cellar/perl/5.22.0/bin/perl Makefile.PL LIBS=-L/opt/X11/lib INC=-I/opt/X11/include -- OK Running make for C/CT/CTRONDLP/X11-GUITest-0.28.tar.gz cp GUITest.pm blib/lib/X11/GUITest.pm Running Mkbootstrap for X11::GUITest () chmod 644 "GUITest.bs" "/usr/local/Cellar/perl/5.22.0/bin/perl" "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/xsubpp" -typemap "/usr/local/Cellar/perl/5.22.0/lib/5.22.0/ExtUtils/typemap" -typemap "typemap" GUITest.xs > GUITest.xsc && mv GUITest.xsc GUITest.c cc -c -I/opt/X11/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -Wall -O2 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" "-I/usr/local/Cellar/perl/5.22.0/lib/5.22.0/darwin-thread-multi-2level/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L GUITest.c cc -c -I/opt/X11/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -Wall -O2 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" "-I/usr/local/Cellar/perl/5.22.0/lib/5.22.0/darwin-thread-multi-2level/CORE" -DNDEBUG -DX11_GUITEST_ALT_L_FALLBACK_META_L KeyUtil.c rm -f blib/arch/auto/X11/GUITest/GUITest.bundle env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong GUITest.o KeyUtil.o -o blib/arch/auto/X11/GUITest/GUITest.bundle \ \ chmod 755 blib/arch/auto/X11/GUITest/GUITest.bundle "/usr/local/Cellar/perl/5.22.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- GUITest.bs blib/arch/auto/X11/GUITest/GUITest.bs 644 Manifying 1 pod document CTRONDLP/X11-GUITest-0.28.tar.gz /usr/bin/make -- OK Running make test Running Mkbootstrap for X11::GUITest () chmod 644 "GUITest.bs" PERL_DL_NONLAZY=1 "/usr/local/Cellar/perl/5.22.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/test.t .. Can't load '/Users/alex/.cpan/build/X11-GUITest-0.28-wyKVRV/blib/arch/auto/X11/GUITest/GUITest.bundle' for module X11::GUITest: dlopen(/Users/alex/.cpan/build/X11-GUITest-0.28-wyKVRV/blib/arch/auto/X11/GUITest/GUITest.bundle, 2): Symbol not found: _XChangeProperty Referenced from: /Users/alex/.cpan/build/X11-GUITest-0.28-wyKVRV/blib/arch/auto/X11/GUITest/GUITest.bundle Expected in: dynamic lookup at t/test.t line 30. Compilation failed in require at t/test.t line 30. BEGIN failed--compilation aborted at t/test.t line 32. Undefined subroutine &X11::GUITest::DeInitGUITest called at /Users/alex/.cpan/build/X11-GUITest-0.28-wyKVRV/blib/lib/X11/GUITest.pm line 790. END failed--call queue aborted at t/test.t line 32. t/test.t .. Dubious, test returned 22 (wstat 5632, 0x1600) Failed 24/24 subtests ``` On Thu Jul 23 16:47:43 2015, alexchandel@gmail.com wrote: Show quoted text
> The module looks for X11 headers in `/usr/X11R6/include`, but on OS X > XQuartz is installed to `/opt/X11`: > > ``` > cpan[1]> install X11::GUITest
... Show quoted text
> GUITest.xs:38:10: fatal error: 'X11/Xlib.h' file not found > #include <X11/Xlib.h> > ^ > 1 error generated. > make: *** [GUITest.o] Error 1 > CTRONDLP/X11-GUITest-0.28.tar.gz > /usr/bin/make -- NOT OK > Failed during this command: > CTRONDLP/X11-GUITest-0.28.tar.gz : make NO > ``` > > The headers would be in `/opt/X11/include`.