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