{"comment":{"created_at":"2011-10-10T19:20:33Z","body":"On 10/10/2011 07:36 PM, Dmitry Matveev wrote:\n> Ok, I have overwritten the files for this time, and everything\n> compiled well. I even started pure X on my Intel G41!!! Thank you,\n> man!\n\nGlad to hear that it built and launched fine. :-)\n\nPlease let me know how it goes.\n\nIn particular, if you have the opportunity, it would be nice if you\ncould try after booting with the frame-buffer console.  It works on\nmy older laptop, but not on my latest one [1].\n\nGrégoire\n\n[1] https://github.com/gsutre/netbsd-drmgem/issues/4","updated_at":"2011-10-10T19:20:33Z","url":"https://api.github.com/repos/gsutre/netbsd-drmgem/issues/comments/2351123","id":2351123,"user":{"avatar_url":"https://secure.gravatar.com/avatar/059c4ee20814c73a0e0797b3047851ed?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/gsutre","id":566373,"login":"gsutre"}},"action":"created","issue":{"number":6,"created_at":"2011-10-09T16:31:39Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hello,\r\n\r\nI am trying to build netbsd-drmgem on my amd64 machine. NetBSD is updated to today's current.\r\n\r\nDuring building\r\n\r\n    $ cd /usr/src/external/mit/xorg/lib/libdrm\r\n    $ su root -c \"make includes\"\r\n    $ make\r\n    $ su root -c \"make install\"\r\n\r\nI have got some issues:\r\n\r\n    #   compile  libdrm/xf86drm.ln\r\n    lint -chapbxzFS   -I/usr/X11R7/include/libdrm -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__    -i /usr/xsrc/external/mit/libdrm/dist/xf86drm.c\r\n    /usr/X11R7/include/libdrm/drm.h(178): warning: trailing ',' prohibited in enum declaration [54]\r\n    /usr/X11R7/include/libdrm/drm.h(428): warning: trailing ',' prohibited in enum declaration [54]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(149): warning: assignment in conditional context [159]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(193): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(320): warning: comparison of unsigned int with 0, op p >= p [162]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(337): warning: conversion to 'unsigned long' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(383): warning: conversion to 'unsigned long' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(420): warning: conversion to 'long' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(454): warning: assignment in conditional context [159]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(562): warning: assignment in conditional context [159]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(715): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(717): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(719): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(742): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(757): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(757): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(759): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(759): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(761): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(761): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(774): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(796): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(812): warning: pointer casts may be troublesome [247]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(794): warning: argument fd unused in function drmGetLibVersion [231]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(826): warning: cast discards 'const' from pointer target type [275]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(851): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(851): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(876): warning: cast discards 'const' from pointer target type [275]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(964): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(965): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1009): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1031): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1031): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1130): warning: conversion from 'unsigned long' to 'unsigned int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1132): warning: conversion to 'long' due to prototype, arg #6 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1168): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1168): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1176): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1178): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1178): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1221): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1221): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1229): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1231): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1231): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1292): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1380): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1380): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1382): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(1382): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2145): warning: conversion from 'unsigned long' to 'unsigned int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2146): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2147): warning: enum type mismatch, op p = p [130]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2162): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2163): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2471): warning: constant in conditional context [161]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2502): DRM_IOCTL_SET_MASTER undefined [99]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c(2507): DRM_IOCTL_DROP_MASTER undefined [99]\r\n    #   compile  libdrm/xf86drm.o\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c    /usr/xsrc/external/mit/libdrm/dist/xf86drm.c -o xf86drm.o\r\n    #   compile  libdrm/xf86drm.pico\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c    -fPIC -DPIC /usr/xsrc/external/mit/libdrm/dist/xf86drm.c -o xf86drm.pico\r\n    #   compile  libdrm/xf86drm.po\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c -DGPROF -DPROF    -pg /usr/xsrc/external/mit/libdrm/dist/xf86drm.c -o xf86drm.po\r\n    #   compile  libdrm/xf86drmMode.ln\r\n    *** Error code 1 (continuing)\r\n    lint -chapbxzFS   -I/usr/X11R7/include/libdrm -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__    -i /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c\r\n    /usr/X11R7/include/libdrm/drm.h(178): warning: trailing ',' prohibited in enum declaration [54]\r\n    /usr/X11R7/include/libdrm/drm.h(428): warning: trailing ',' prohibited in enum declaration [54]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(77): warning: cannot do pointer arithmetic on operand of unknown size [136]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(156): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(156): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(161): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(161): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(166): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(166): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(171): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(171): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(199): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(211): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(211): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(212): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(212): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(213): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(213): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(214): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(214): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(251): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(251): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(251): warning: assignment in conditional context [159]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(260): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(260): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(275): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(292): initialisation of an incomplete type [175]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(292): incomplete structure or union drm_mode_fb_dirty_cmd: dirty [31]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(294): illegal member use: fb_id [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(295): undefined struct/union member: clips_ptr [101]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(295): warning: conversion from 'unsigned long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(296): undefined struct/union member: num_clips [101]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(298): DRM_IOCTL_MODE_DIRTYFB undefined [99]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(320): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(353): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(353): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(370): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(370): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(382): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(382): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(401): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(432): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(432): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(435): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(435): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(441): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(441): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(447): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(447): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(470): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(483): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(483): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(484): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(484): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(485): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(485): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(487): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(487): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(519): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(519): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(529): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(529): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(549): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(549): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(552): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(552): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(555): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(555): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(556): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(556): warning: conversion from 'unsigned long' to 'int' may lose accuracy, arg #1 [298]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(564): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(572): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(572): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(575): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(575): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(577): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(577): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(578): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(578): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(614): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(621): warning: conversion to 'int' due to prototype, arg #1 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(626): warning: conversion to 'int' due to prototype, arg #3 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(651): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(651): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(660): warning: argument busid unused in function drmCheckModesettingSupported [231]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(728): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(728): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(742): warning: conversion to 'int' due to prototype, arg #2 [259]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(742): warning: conversion of 'unsigned long' to 'int' is out of range, arg #2 [295]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(755): warning: conversion from 'long' to 'int' may lose accuracy [132]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(763): warning: possible pointer alignment problem [135]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(763): warning: pointer casts may be troublesome [247]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(769): warning: possible pointer alignment problem [135]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(769): warning: pointer casts may be troublesome [247]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(780): warning: possible pointer alignment problem [135]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(780): warning: pointer casts may be troublesome [247]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(799): incomplete structure or union drm_mode_crtc_page_flip: flip [31]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(801): illegal member use: fb_id [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(802): illegal member use: crtc_id [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(803): illegal member use: user_data [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(804): illegal member use: flags [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(805): illegal member use: reserved [102]\r\n    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c(807): DRM_IOCTL_MODE_PAGE_FLIP undefined [99]\r\n    #   compile  libdrm/xf86drmMode.o\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c    /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c -o xf86drmMode.o\r\n    #   compile  libdrm/xf86drmMode.pico\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c    -fPIC -DPIC /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c -o xf86drmMode.pico\r\n    #   compile  libdrm/xf86drmMode.po\r\n    *** Error code 1 (continuing)\r\n    gcc -O2 -I/usr/X11R7/include/libdrm -std=gnu99 -Werror   -fno-strict-aliasing  -I/usr/X11R7/include/libdrm  -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ -c -DGPROF -DPROF    -pg /usr/xsrc/external/mit/libdrm/dist/xf86drmMode.c -o xf86drmMode.po\r\n    #     build  libdrm/libdrm.so.3.2\r\n    *** Error code 1 (continuing)\r\n    rm -f libdrm.so.3.2\r\n    gcc  -Wl,-x -shared -Wl,-soname,libdrm.so.3 -Wl,--warn-shared-textrel  -Wl,-rpath,/usr/X11R7/lib -L=/usr/X11R7/lib   -o libdrm.so.3.2  -Wl,-rpath-link,/lib  -L=/lib  -Wl,--whole-archive libdrm_pic.a -Wl,--no-whole-archive  \r\n    all ===> drm\r\n    *** Error code 1 (continuing)\r\n    `all' not remade because of errors.\r\n\r\nI have resolved some issues related to include files (undefined identifiers), but it still failed to compile, as I think, due to many type conversion warnings.\r\n\r\nReally, converting from int to long should be harmful on non-x86 systems. What should I do, how can I fix this stuff? Had you tried to build it on x86_64?\r\n\r\nHow does the graphics work on x86?\r\n\r\nRegards,\r\nDmitry","comments":6,"title":"Build issues on NetBSD-current (amd64)","updated_at":"2011-10-10T19:20:33Z","url":"https://api.github.com/repos/gsutre/netbsd-drmgem/issues/6","id":1856870,"assignee":null,"milestone":null,"closed_at":"2011-10-10T17:36:52Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/ff5f4fac47cc108c3922bc12b0d51303?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/dmatveev","id":144187,"login":"dmatveev"},"html_url":"https://github.com/gsutre/netbsd-drmgem/issues/6","labels":[],"state":"closed"},"legacy":{"issue_id":1856870,"comment_id":2351123}}