[Pbuilder-maint] Bug#298159: r-cran-rgl: rgl.snapshot() fails

Junichi Uekawa dancer at netfort.gr.jp
Mon Feb 27 15:24:10 UTC 2006


reassign 298159 r-cran-rgl
thanks

Hi,

Checking the diff of the log between the two runs; here is an obvious difference (on my environment).

-checking for X... libraries /usr/X11R6/lib, headers
+checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include

In pbuilder chroot, the X header location is not detected; which kind of rings a bell.


Looking into config.log inside pbuilder, 
X11/Intrinsic.h compilation is successful even without gcc having extra options (i.e. x_includes=""):

configure:2476: checking for X
configure:2581: gcc -E  conftest.c
configure:2587: $? = 0
configure:2637: gcc -o conftest -g -O2   conftest.c -lXt  >&5
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure:2643: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <X11/Intrinsic.h>
| int
| main ()
| {
| XtMalloc (0)
|   ;
|   return 0;
| }




There is a problem in that confugre.ac: CPPFLAGS="${CPPFLAGS}
-I${x_includes}" is assuming x_includes is non-empty, when it can be
empty; which will result in the next option for c++ to be ignored (as
that will be used as the path instead)

Which means:
	g++ -I/usr/share/R/include -I -DHAVE_PNG_H -I/usr/include/libpng12    -fPIC  -g -O2 -c Shape.cpp -o Shape.o

'-DHAVE_PNG_H' is parsed as the include path.


reassigning it back to you.


regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project




More information about the Pbuilder-maint mailing list