Bug 100530

Summary: Linking of etnaviv_cmd_stream_test is broken
Product: DRI Reporter: Bernd Kuhls <berndkuhls>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: XOrg git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch none

Description Bernd Kuhls 2017-04-02 10:25:30 UTC
Created attachment 130638 [details] [review]
Patch

Buildroot autobuilders detected a broken link command for etnaviv_cmd_stream_test

http://autobuild.buildroot.net/results/68a/68af62f4ab6944d326468818562c05fd5cc55b03/build-end.log

/home/test/autobuild/run/instance-1/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabi/5.4.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: warning: libdrm.so.2, needed by ../../etnaviv/.libs/libdrm_etnaviv.so, not found (try using -rpath or -rpath-link)
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmCommandWriteRead'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmCommandWrite'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmPrimeHandleToFD'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmHashDelete'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmMsg'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmIoctl'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmHashLookup'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmHashCreate'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmHashInsert'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmHashDestroy'
../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `drmPrimeFDToHandle'
collect2: error: ld returned 1 exit status
make[4]: *** [etnaviv_cmd_stream_test] Error 1

The attached patch fixes the problem.
Comment 1 Emil Velikov 2017-04-03 17:04:45 UTC
Thanks Bernd, pushed to master.

For the future please send patches to the mailing list. Running autogen.sh will set format.subjectPrefix and sendemail.to for your convenience ;-)

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.