From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 19580E0073D for ; Tue, 18 Dec 2012 03:43:49 -0800 (PST) Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TkvaO-0004jf-AF from Vladimir_Zapolskiy@mentor.com ; Tue, 18 Dec 2012 03:43:48 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 18 Dec 2012 03:43:47 -0800 Received: from [172.30.4.79] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.1.289.1; Tue, 18 Dec 2012 11:43:45 +0000 Message-ID: <50D056EC.1030805@mentor.com> Date: Tue, 18 Dec 2012 13:43:40 +0200 From: Vladimir Zapolskiy User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10 MIME-Version: 1.0 To: Andrei Gherzan References: <1355787450-9831-1-git-send-email-vladimir_zapolskiy@mentor.com> In-Reply-To: X-Originating-IP: [137.202.0.76] X-OriginalArrivalTime: 18 Dec 2012 11:43:47.0684 (UTC) FILETIME=[F10CBA40:01CDDD14] Cc: meta-freescale@yoctoproject.org, Otavio Salvador Subject: Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2012 11:43:49 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 18.12.2012 12:30, Andrei Gherzan wrote: > On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy > > > wrote: > > Prior to xf86-video-imxfs-vivante there should be built libX11. > > This change fixes an issue met on configuration stage: > > | configure:3303: checking whether the C compiler works > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 > | > /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XWidthOfScreen' > [snip] > | collect2: ld returned 1 exit status > > It's very strange that i never saw this issue before. I compiled this > driver a couple of times and didn't see this error. Maybe it was a race > thing where libx11 was compiled first but about that LDFLAGS, are you > sure -lX11 is not added by default? You would fix it, if you see it, mostly I work within non-Yocto environment, and this might be the rootcause. Below is more detailed output: [log] | configure:3303: checking whether the C compiler works | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mno-unaligned-access --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 -pipe -g -feliminate-unused-debug-types -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c >&5 | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XWidthOfScreen' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XMoveWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XHeightOfScreen' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XOpenDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XSetWMProperties' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XDestroyWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCloseDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetGeometry' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XUnmapWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFreeGC' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XNextEvent' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateGC' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XScreenOfDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFlush' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XPutImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XInitThreads' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetWindowAttributes' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFreePixmap' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XStringListToTextProperty' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreatePixmap' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XMapRaised' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XPending' | collect2: ld returned 1 exit status | configure:3329: $? = 1 | configure:3367: result: no | configure: failed program was: | | /* confdefs.h */ | | #define PACKAGE_NAME "xf86-video-vivante" | | #define PACKAGE_TARNAME "xf86-video-vivante" | | #define PACKAGE_VERSION "0.1.0" | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" | | #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | | #define PACKAGE_URL "" | | #define PACKAGE "xf86-video-vivante" | | #define VERSION "0.1.0" | | /* end confdefs.h. */ | | | | int | | main () | | { | | | | ; | | return 0; | | } | configure:3372: error: in `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': | configure:3374: error: C compiler cannot create executables | See `config.log' for more details [/log] I would appreciate, if you could check your log of the configuration task for presence of -lX11 linker option, and if it is present, it would be good to know where it comes from. > +1 for [meta-fsl-arm] prefix. > Thanks for pointing out, I'll correct the prefix. -- With best wishes, Vladimir