Thank you all for your comments! On Tue, Feb 17, 2009 at 10:39 PM, Dan Nicholson <[email protected]> wrote:
> On Mon, Feb 16, 2009 at 10:22 PM, tac <[email protected]> wrote: > > ps. I was running into this when I type make install from the source: > > Making install in libdrm > > make: Fatal error in reader: Makefile, line 658: Unexpected end of line > seen > > Current working directory /export/work/xorg/drm/libdrm > > *** Error code 1 > > The following command caused the error: > > failcom='exit 1'; \ > > for f in x $MAKEFLAGS; do \ > > case $f in \ > > *=* | --[!k]*);; \ > > *k*) failcom='fail=yes';; \ > > esac; \ > > done; \ > > dot_seen=no; \ > > target=`echo install-recursive | sed s/-recursive//`; \ > > list='libdrm shared-core tests'; for subdir in $list; do \ > > echo "Making $target in $subdir"; \ > > if test "$subdir" = "."; then \ > > dot_seen=yes; \ > > local_target="$target-am"; \ > > else \ > > local_target="$target"; \ > > fi; \ > > (cd $subdir && make $local_target) \ > > || eval $failcom; \ > > done; \ > > if test "$dot_seen" = "no"; then \ > > make "$target-am" || exit 1; \ > > fi; test -z "$fail" > > make: Fatal error: Command failed for target `install-recursive' > > That's just regular automake rules, which are pretty widely tested. It > could be a GNU make issue, but I doubt it. Maybe if you could should > the whole log from make it could help. > > -- > Dan > I know few about make, so any insight point would be welcomed : ) When I using the standard make with the solaris distro, I get something like the Makefile went wrong.(see below) Using gmake *makes* more sense, but seems it doesn't find some necessary libs or .h files? So maybe really because Solaris doesn't support drm yet? In any way, point me out please when I go wrong. Thanks Tac p.s. Trying the same on Ubuntu 8.04 should be all right :( ######################## using make # make Making all in libdrm make: Fatal error in reader: Makefile, line 658: Unexpected end of line seen Current working directory /export/work/xorg/drm/libdrm *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='libdrm shared-core tests'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' While around Makefile 658, it is: .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic \ clean-libdrm_laLTLIBRARIES clean-libtool ctags ctags-recursive \ distclean distclean-compile distclean-generic distclean-hdr \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libdrm_laLTLIBRARIES \ install-libdrmincludeHEADERS install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-libdrm_laLTLIBRARIES uninstall-libdrmincludeHEADERS ######################## using gmake # gmake Making all in libdrm gmake[1]: Entering directory `/export/work/xorg/drm/libdrm' gmake all-recursive gmake[2]: Entering directory `/export/work/xorg/drm/libdrm' Making all in . gmake[3]: Entering directory `/export/work/xorg/drm/libdrm' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../shared-core -g -O2 -MT xf86drm.lo -MD -MP -MF .deps/xf86drm.Tpo -c -o xf86drm.lo xf86drm.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I../shared-core -g -O2 -MT xf86drm.lo -MD -MP -MF .deps/xf86drm.Tpo -c xf86drm.c -fPIC -DPIC -o .libs/xf86drm.o xf86drm.c: In function `drmGetVersion': xf86drm.c:717: error: syntax error before "struct" xf86drm.c: At top level: xf86drm.c:722: error: syntax error before "if" xf86drm.c:731: warning: parameter names (without types) in function declaration xf86drm.c:731: error: conflicting types for 'drmFreeKernelVersion' xf86drm.c:656: error: previous definition of 'drmFreeKernelVersion' was here xf86drm.c:731: warning: data definition has no type or storage class xf86drm.c:732: error: syntax error before "return" xf86drm.c:740: error: invalid type argument of `unary *' xf86drm.c:740: warning: initialization makes integer from pointer without a cast xf86drm.c:740: error: initializer element is not constant xf86drm.c:740: warning: data definition has no type or storage class xf86drm.c:741: warning: parameter names (without types) in function declaration xf86drm.c:741: error: conflicting types for 'drmCopyVersion' xf86drm.c:677: error: previous definition of 'drmCopyVersion' was here xf86drm.c:741: warning: data definition has no type or storage class xf86drm.c:742: warning: parameter names (without types) in function declaration xf86drm.c:742: warning: data definition has no type or storage class xf86drm.c:743: error: syntax error before "return" xf86drm.c: In function `drmGetBusid': xf86drm.c:815: error: syntax error before "struct" xf86drm.c:818: error: syntax error before "struct" xf86drm.c: In function `drmSetBusid': xf86drm.c:845: error: syntax error before "struct" xf86drm.c: In function `drmGetMagic': xf86drm.c:856: error: syntax error before "struct" xf86drm.c: In function `drmAuthMagic': xf86drm.c:867: error: syntax error before "struct" xf86drm.c: In function `drmAddMap': xf86drm.c:932: error: syntax error before "struct" xf86drm.c: In function `drmRmMap': xf86drm.c:945: error: syntax error before "struct" xf86drm.c: In function `drmAddBufs': xf86drm.c:978: error: syntax error before "struct" xf86drm.c: In function `drmMarkBufs': xf86drm.c:991: error: syntax error before "struct" xf86drm.c:1000: error: syntax error before "struct" xf86drm.c: At top level: xf86drm.c:1006: error: syntax error before "for" xf86drm.c:1011: error: syntax error before '.' token xf86drm.c:1011: error: conflicting types for 'drmFree' xf86drm.c:156: error: previous definition of 'drmFree' was here xf86drm.c:1011: warning: data definition has no type or storage class xf86drm.c:1015: error: syntax error before '.' token xf86drm.c:1015: warning: data definition has no type or storage class xf86drm.c: In function `drmFreeBufs': xf86drm.c:1041: error: syntax error before "struct" xf86drm.c: In function `drmGetBufInfo': xf86drm.c:1130: error: syntax error before "struct" xf86drm.c:1137: error: syntax error before "struct" xf86drm.c: At top level: xf86drm.c:1154: error: syntax error before "return" xf86drm.c: In function `drmMapBufs': xf86drm.c:1181: error: syntax error before "struct" xf86drm.c:1190: error: syntax error before "struct" xf86drm.c: At top level: xf86drm.c:1195: error: redefinition of 'retval' xf86drm.c:740: error: previous definition of 'retval' was here xf86drm.c:1195: error: invalid type argument of `unary *' xf86drm.c:1195: warning: initialization makes integer from pointer without a cast xf86drm.c:1195: error: initializer element is not constant xf86drm.c:1195: warning: data definition has no type or storage class xf86drm.c:1196: error: syntax error before '->' token xf86drm.c:1205: error: syntax error before '.' token xf86drm.c:1205: warning: data definition has no type or storage class xf86drm.c: In function `drmDMA': xf86drm.c:1266: error: syntax error before "struct" xf86drm.c: In function `drmGetLock': xf86drm.c:1305: error: syntax error before "struct" xf86drm.c: In function `drmUnlock': xf86drm.c:1328: error: syntax error before "struct" xf86drm.c: In function `drmGetReservedContextList': xf86drm.c:1340: error: syntax error before "struct" xf86drm.c:1354: error: syntax error before "struct" xf86drm.c: In function `drmCreateContext': xf86drm.c:1393: error: syntax error before "struct" xf86drm.c: In function `drmSwitchToContext': xf86drm.c:1404: error: syntax error before "struct" xf86drm.c: In function `drmSetContextFlags': xf86drm.c:1425: error: syntax error before "struct" xf86drm.c: In function `drmGetContextFlags': xf86drm.c:1436: error: syntax error before "struct" xf86drm.c: In function `drmDestroyContext': xf86drm.c:1467: error: syntax error before "struct" xf86drm.c: In function `drmCreateDrawable': xf86drm.c:1475: error: syntax error before "struct" xf86drm.c: In function `drmDestroyDrawable': xf86drm.c:1485: error: syntax error before "struct" xf86drm.c: In function `drmUpdateDrawableInfo': xf86drm.c:1501: error: syntax error before "struct" xf86drm.c: In function `drmAgpEnable': xf86drm.c:1562: error: syntax error before "struct" xf86drm.c: In function `drmAgpAlloc': xf86drm.c:1593: error: syntax error before "struct" xf86drm.c: In function `drmAgpFree': xf86drm.c:1620: error: syntax error before "struct" xf86drm.c: In function `drmAgpBind': xf86drm.c:1645: error: syntax error before "struct" xf86drm.c: In function `drmAgpUnbind': xf86drm.c:1669: error: syntax error before "struct" xf86drm.c: In function `drmAgpVersionMajor': xf86drm.c:1690: error: syntax error before "struct" xf86drm.c: In function `drmAgpVersionMinor': xf86drm.c:1711: error: syntax error before "struct" xf86drm.c: In function `drmAgpGetMode': xf86drm.c:1732: error: syntax error before "struct" xf86drm.c: In function `drmAgpBase': xf86drm.c:1753: error: syntax error before "struct" xf86drm.c: In function `drmAgpSize': xf86drm.c:1774: error: syntax error before "struct" xf86drm.c: In function `drmAgpMemoryUsed': xf86drm.c:1795: error: syntax error before "struct" xf86drm.c: In function `drmAgpMemoryAvail': xf86drm.c:1816: error: syntax error before "struct" xf86drm.c: In function `drmAgpVendorId': xf86drm.c:1837: error: syntax error before "struct" xf86drm.c: In function `drmAgpDeviceId': xf86drm.c:1858: error: syntax error before "struct" xf86drm.c: In function `drmScatterGatherAlloc': xf86drm.c:1870: error: syntax error before "struct" xf86drm.c: In function `drmScatterGatherFree': xf86drm.c:1882: error: syntax error before "struct" xf86drm.c: In function `drmWaitVBlank': xf86drm.c:1911: error: syntax error before "union" xf86drm.c: In function `drmCtlInstHandler': xf86drm.c:1973: error: syntax error before "struct" xf86drm.c: In function `drmCtlUninstHandler': xf86drm.c:1996: error: syntax error before "struct" xf86drm.c: In function `drmFinish': xf86drm.c:2013: error: syntax error before "struct" xf86drm.c: In function `drmGetInterruptFromBusID': xf86drm.c:2039: error: syntax error before "struct" xf86drm.c: In function `drmAddContextPrivateMapping': xf86drm.c:2081: error: syntax error before "struct" xf86drm.c: In function `drmGetContextPrivateMapping': xf86drm.c:2093: error: syntax error before "struct" xf86drm.c: In function `drmGetMap': xf86drm.c:2108: error: syntax error before "struct" xf86drm.c: In function `drmGetClient': xf86drm.c:2125: error: syntax error before "struct" xf86drm.c: In function `drmGetStats': xf86drm.c:2140: error: syntax error before "struct" xf86drm.c: In function `drmSetInterfaceVersion': xf86drm.c:2282: error: syntax error before "struct" xf86drm.c: At top level: xf86drm.c:2286: error: syntax error before '->' token xf86drm.c: In function `drmCommandRead': xf86drm.c:2339: error: `DRM_IOC_READ' undeclared (first use in this function) xf86drm.c:2339: error: (Each undeclared identifier is reported only once xf86drm.c:2339: error: for each function it appears in.) xf86drm.c: In function `drmCommandWrite': xf86drm.c:2368: error: `DRM_IOC_WRITE' undeclared (first use in this function) xf86drm.c: In function `drmCommandWriteRead': xf86drm.c:2397: error: `DRM_IOC_READ' undeclared (first use in this function) xf86drm.c:2397: error: `DRM_IOC_WRITE' undeclared (first use in this function) gmake[3]: *** [xf86drm.lo] Error 1 gmake[3]: Leaving directory `/export/work/xorg/drm/libdrm' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/export/work/xorg/drm/libdrm' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/export/work/xorg/drm/libdrm' gmake: *** [all-recursive] Error 1
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
