Date: Fri, 29 Jun 2012 12:06:26 -0400 From: Chris Dukes <chris.dukes.aix@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/169545: graphics/libjpeg-turbo is a build conflict with java/openjdk7 due to poor ordering of -I directives to gcc. Message-ID: <CAB%2BELM3DTUQP3LTFaZjFSb-uekEr=w0t37Dj0QQGNm4n8WiR_g@mail.gmail.com> Resent-Message-ID: <201206291610.q5TGAD9E079559@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169545 >Category: ports >Synopsis: graphics/libjpeg-turbo is a build conflict with >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 29 16:10:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Dukes >Release: FreeBSD 9.0-RELEASE amd64 >Organization: Squirrely Girl Produce >Environment: System: FreeBSD basement-00 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Installed libjpeg-turbo to work on building tigervnc on FreeBSD. Attempted to upgrade the version of openjdk7. Fails due to JPEG_LIB_VERSION being undefined. Cause, libjpeg-turbo provides its own versions of jpeglib.h and jconfig.h in /usr/local/include which do not define JPEG_LIB_VERSION. Upon removing libjpeg-turbo openjdk7 builds just fine. In the long term -I../../../src/share/native/sun/awt/image/jpeg needs to come before -I/usr/local/include /usr/bin/gcc -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DSPLASHSCREEN -DWITH_X11 -DNDEBUG -DARCH='"amd64"' -Damd64 -D_ALLBSD_SOURCE -DRELEASE='"1.7.0_04"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I. -I/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp/sun/sun.awt/splashscreen/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt -I/usr/local/include -I/usr/local/include -I/usr/local/include/X11/extensions -I../../../src/solaris/native/sun/awt/splashscreen -I../../../src/share/native/sun/awt/splashscreen -I../../../src/share/native/sun/awt/image/jpeg -DPNG_NO_MMX_CODE -c -o /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp/sun/sun.awt/splashscreen/obj64/splashscreen_jpeg.o ../../../src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c >How-To-Repeat: build and install graphics/libjpeg-turbo build java/openjdk7 >Fix: Please add libjpeg-turbo* to BUILD_CONFLICTS for java/openjdk7 until it can be determined why -I/usr/local/include is before -I../../../src/share/native/sun/awt/image/jpeg and how this may be corrected. --485b397dd04161badb04c39ea15e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>>Submitter-Id: =A0current-users</div><div>>Originator: =A0 =A0Ch= ris Dukes</div><div>>Organization: =A0Squirrely Girl Produce</div><div>&= gt;Confidential: =A0no=A0</div><div>>Synopsis: =A0 =A0 =A0graphics/libjp= eg-turbo is a build conflict with java/openjdk7 due to poor ordering of -I = directives to gcc.</div> <div>>Severity: =A0 =A0 =A0non-critical</div><div>>Priority: =A0 =A0 = =A0low</div><div>>Category: =A0 =A0 =A0ports</div><div>>Class: =A0 = =A0 =A0 =A0 sw-bug</div><div>>Release: =A0 =A0 =A0 FreeBSD 9.0-RELEASE a= md64</div><div>>Environment:</div> <div>System: FreeBSD basement-00 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Ja= n 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GEN= ERIC amd64</div><div><br></div><div><br></div><div>=A0 =A0 =A0 =A0=A0</div>= <div>>Description:</div> <div>Installed libjpeg-turbo to work on building tigervnc on FreeBSD.</div>= <div>Attempted to upgrade the version of openjdk7.</div><div>Fails due to J= PEG_LIB_VERSION being undefined.</div><div>Cause, libjpeg-turbo provides it= s own versions of jpeglib.h and jconfig.h</div> <div>in /usr/local/include which do not define JPEG_LIB_VERSION.</div><div>= Upon removing libjpeg-turbo openjdk7 builds just fine.</div><div><br></div>= <div>In the long term -I../../../src/share/native/sun/awt/image/jpeg</div> <div>needs to come before -I/usr/local/include</div><div>/usr/bin/gcc =A0-O= 2 =A0 -fno-strict-aliasing -fPIC -W -Wall =A0-Wno-unused -Wno-parentheses -= pipe -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN =A0 -DSPLASHSCREEN -DWIT= H_X11 -DNDEBUG -DARCH=3D'"amd64"' -Damd64 -D_ALLBSD_SOURC= E -DRELEASE=3D'"1.7.0_04"' -D_LARGEFILE64_SOURCE -D_GNU_S= OURCE -D_REENTRANT -D_LP64=3D1 -I. -I/usr/ports/java/openjdk7/work/openjdk/= build/bsd-amd64/tmp/sun/sun.awt/splashscreen/CClassHeaders -I../../../src/s= olaris/javavm/export -I../../../src/share/javavm/export -I../../../src/shar= e/native/common -I../../../src/solaris/native/common -I../../../src/share/n= ative/sun/awt -I../../../src/solaris/native/sun/awt =A0 -I/usr/local/includ= e -I/usr/local/include -I/usr/local/include/X11/extensions -I../../../src/s= olaris/native/sun/awt/splashscreen -I../../../src/share/native/sun/awt/spla= shscreen -I../../../src/share/native/sun/awt/image/jpeg -DPNG_NO_MMX_CODE = =A0-c -o /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp/sun/sun.= awt/splashscreen/obj64/splashscreen_jpeg.o =A0../../../src/share/native/sun= /awt/splashscreen/splashscreen_jpeg.c</div> <div><br></div><div><div>>How-To-Repeat:</div><div>build and install gra= phics/libjpeg-turbo</div><div>build java/openjdk7</div><div><br></div><div>= >Fix:</div><div>Please add libjpeg-turbo* to BUILD_CONFLICTS for java/op= enjdk7 until it can be determined=A0why=A0</div> <div>-I/usr/local/include=A0</div><div>is before=A0</div><div>-I../../../sr= c/share/native/sun/awt/image/jpeg=A0</div><div>and how this may be correcte= d.</div><div><br></div><div><br></div></div> --485b397dd04161badb04c39ea15e-- >Release-Note: >Audit-Trail: >Unformatted: --485b397dd04161badb04c39ea15e Content-Type: text/plain; charset=ISO-8859-1 java/openjdk7 due to poor ordering of -I directives to gcc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB%2BELM3DTUQP3LTFaZjFSb-uekEr=w0t37Dj0QQGNm4n8WiR_g>