Bug 8741

Summary: ./pciid2c.pl: Permission denied
Product: xorg Reporter: Peter Dyballa <Peter_Dyballa>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high    
Version: 7.1 (2006.05)   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Peter Dyballa 2006-10-23 16:34:40 UTC
Building xserver module component ...

After this

	/Users/pete/Quellen/X11R7.1/xserver/install-sh -d /Users/pete/Quellen/X11R7.1/xserver/xorg-
server-1.1.99.3/hw/xfree86/os-support/bsd/libusb
	/Users/pete/Quellen/X11R7.1/xserver/install-sh -d /Users/pete/Quellen/X11R7.1/xserver/xorg-
server-1.1.99.3/hw/xfree86/os-support/linux/./../shared

and many

	echo "some text" >> file(s)

compilation ends prematurely with:

echo "#define PCIDATA" > xf86PciData.c
echo "#include \"./xf86ScanPci.c\"" >> xf86PciData.c
cat ./pci.ids ./extrapci.ids |  ./pciid2c.pl ./../common/xf86PciInfo.h > xf86PciIds.h
/bin/sh: line 1: ./pciid2c.pl: Permission denied
make[3]: *** [xf86PciIds.h] Error 126
make[2]: *** [distdir] Error 1
make[1]: *** [distdir] Error 1
make: *** [distdir] Error 1
Comment 1 Peter Dyballa 2006-10-23 16:42:44 UTC
I forgot: the Perl script is not executible:

          -rw-r--r--   1 pete  pete  11460 11 Okt 22:36 xserver/hw/xfree86/scanpci/pciid2c.pl
Comment 2 Alan Coopersmith 2006-10-23 16:45:00 UTC
You need to make sure configure finds a working copy of perl - the Makefile line
is:

cat $(srcdir)/pci.ids $(srcdir)/extrapci.ids | $(PERL) $(srcdir)/pciid2c.pl
$(srcdir)/../common/xf86PciInfo.h > xf86PciIds.h

so it appears your $(PERL) is null.   (configure should be fixed to error out 
if it can't find perl.)
Comment 3 Peter Dyballa 2006-10-24 03:08:26 UTC
Yes, that:s right: the PERL macro in Makefile(s) and config.log is empty.

On Mac OS X the perl binary is usually /usr/bin/perl. Looking into the *compile* buffer in GNU Emacs I 
cannot see any  line that references PERL. Grepping for the relevant messages from xserver/configure I 
get

	echo $ECHO_N "checking whether to build Xglx DDX... $ECHO_C" >&6; }
	echo $ECHO_N "checking for XGLXMODULES... $ECHO_C" >&6; }
	echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
	echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
	echo $ECHO_N "checking Solaris version... $ECHO_C" >&6; }
	echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
	echo $ECHO_N "checking whether _LP64 is declared... $ECHO_C" >&6; }
	echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
	echo $ECHO_N "checking whether to build Xprint DDX... $ECHO_C" >&6; }
	echo $ECHO_N "checking for XPRINT... $ECHO_C" >&6; }

but in *compile* I only have:

	checking whether to build Xglx DDX... no
	checking whether to build Xprint DDX... yes
	checking for XPRINT... yes


Mac OS X 10.4.8
GCC 4.0.1
libtool/libtoolize  1.5.23a (1.1220.2.414 2006/10/19 05:05:55)
aclocal (GNU automake) 1.9.6
automake (GNU automake) 1.9.6
autoreconf (GNU Autoconf) 2.60
Comment 4 Daniel Stone 2007-02-27 01:34:10 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 5 Peter Dyballa 2007-03-11 13:10:59 UTC
Again, this seems to be a faulty bug report because I did not run build.sh with --disable-glx in CONFFLAGS since GLX is not supported for XDarwin.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.