From unknown Mon Aug 18 14:23:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20332 <20332@debbugs.gnu.org> To: bug#20332 <20332@debbugs.gnu.org> Subject: Status: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" Reply-To: bug#20332 <20332@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:23:43 +0000 retitle 20332 24.5; With jpeg-6b configure says "WARNING: libjpeg found, bu= t not version 6b or later" reassign 20332 emacs submitter 20332 =E7=99=BD=E4=BA=95=E5=BD=B0 severity 20332 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 14 12:48:19 2015 Received: (at submit) by debbugs.gnu.org; 14 Apr 2015 16:48:19 +0000 Received: from localhost ([127.0.0.1]:56405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi40Y-0005cv-OS for submit@debbugs.gnu.org; Tue, 14 Apr 2015 12:48:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59412) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi40W-0005ch-9d for submit@debbugs.gnu.org; Tue, 14 Apr 2015 12:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi40L-0003lY-Hs for submit@debbugs.gnu.org; Tue, 14 Apr 2015 12:48:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi40L-0003lU-Fe for submit@debbugs.gnu.org; Tue, 14 Apr 2015 12:48:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi40J-0008PH-Pt for bug-gnu-emacs@gnu.org; Tue, 14 Apr 2015 12:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi40E-0003kU-PT for bug-gnu-emacs@gnu.org; Tue, 14 Apr 2015 12:48:03 -0400 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:34114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi40E-0003kF-DH for bug-gnu-emacs@gnu.org; Tue, 14 Apr 2015 12:47:58 -0400 Received: by pacyx8 with SMTP id yx8so17739919pac.1 for ; Tue, 14 Apr 2015 09:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; bh=PDb8DPcZNmHNfbb3ti4iOR/SLfosnoyIegh44CARBMI=; b=pbAMyXlGbcZ3WzYwJy+o554ccNC6VBLoOtqg9+pUBUV6OMwRY4rZSUuJz5KecKBl8y /YvlaCMX4MvvlXyFDqM9Ig9Wdj4VWcuiL+zVzdlin4O1m0J9YyeRuBK3zbvTXtRXJ9wJ g6URJ9WCzAy5e15y00PJn00rn1WBnOUJ8nqPBBF1K+xOc4ik8OgMltzu+U6h4HNfwdNm mVVp9HVZK4VriBvvasVb8ro42VEJgqBXb1sGypucghdvOiTZQBbDRlu1o9u8O4JO7kC2 PRcBEXiZ/7oUmZW/Ngs+kWxLbSEmA6O3t6roB9ajZXml9OYm4EwVmc0GmQEkn8arlfd+ OdMw== X-Received: by 10.66.139.195 with SMTP id ra3mr37398753pab.21.1429030076617; Tue, 14 Apr 2015 09:47:56 -0700 (PDT) Received: from [172.20.10.11] (pw126255028201.9.panda-world.ne.jp. [126.255.28.201]) by mx.google.com with ESMTPSA id ic7sm1568507pbc.70.2015.04.14.09.47.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Apr 2015 09:47:55 -0700 (PDT) From: =?utf-8?B?55m95LqV5b2w?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" Date: Wed, 15 Apr 2015 01:47:48 +0900 Message-Id: To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Akira Shirai X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) With jpeg-6b, configure in Emacs 24.5 says "WARNING: libjpeg found, but not version 6b or later". The host system type is i386-pc-solaris2.10, and the C compiler is SUN = C. In config.log the cc says: "conftest.c", line 86: invalid input token: 6b cc: acomp failed for conftest.c % cat -n /usr/include/jpeglib.h | sed -n 33p 33 #define JPEG_LIB_VERSION 62 /* Version 6b */ % cat emacs-24.4.91.tar | tar xfp - % (cd emacs-24.4.91; ./configure --with-gif=3Dno | fgrep -i jpeg > = configure_jpeg_emacs-24.4.91) % gzcat emacs-24.5.tar.gz | tar xfp - % (cd emacs-24.5; ./configure --with-gif=3Dno | fgrep -i jpeg > = configure_jpeg_emacs-24.5) configure: WARNING: libjpeg found, but not version 6b or later configure: error: The following required libraries were not found: libjpeg Maybe some development libraries/packages are missing? If you don't want to link with them give --with-jpeg=3Dno as options to configure % (cd emacs-24.4.91; cat -n config.log | sed -n 4683,4688p) 4683 configure:13880: checking for jpeg_destroy_compress in -ljpeg 4684 configure:13905: cc -D_STDC_C99=3D -o conftest = -I/usr/openwin/include -g -O -I/usr/openwin/include = -L/usr/openwin/lib conftest.c -ljpeg -lXext -lXmu -lXt -lSM -lICE -lX11 = -lpthread -lsocket -lnsl >&5 4685 "conftest.c", line 96: warning: statement not reached 4686 configure:13905: $? =3D 0 4687 configure:13914: result: yes 4688 configure:13995: checking png.h usability % (cd emacs-24.5; cat -n config.log | sed -n 4683,4691p) 4683 configure:13882: checking for jpeg_destroy_compress in -ljpeg 4684 configure:13907: cc -D_STDC_C99=3D -o conftest = -I/usr/openwin/include -g -O -I/usr/openwin/include = -L/usr/openwin/lib conftest.c -ljpeg -lXext -lXmu -lXt -lSM -lICE -lX11 = -lpthread -lsocket -lnsl >&5 4685 "conftest.c", line 96: warning: statement not reached 4686 configure:13907: $? =3D 0 4687 configure:13916: result: yes 4688 "conftest.c", line 86: invalid input token: 6b 4689 cc: acomp failed for conftest.c 4690 configure:13943: WARNING: libjpeg found, but not version 6b or = later 4691 configure:13999: checking png.h usability % (cd emacs-24.5; ./configure --with-gif=3Dno) checking for xcrun... no checking for a BSD-compatible install... /opt/sfw/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/sfw/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for gcc... no checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of cc... none checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/xpg4/bin/grep checking for egrep... /usr/xpg4/bin/grep -E checking for Minix Amsterdam compiler... no checking for ar... ar checking for ranlib... ranlib checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for cc option to accept ISO C99... -D_STDC_C99=3D checking for cc -D_STDC_C99=3D option to accept ISO Standard C... = (cached) -D_STDC_C99=3D checking whether cc -D_STDC_C99=3D accepts -g3... no checking whether cc -D_STDC_C99=3D accepts -O... yes checking whether the compiler is clang... no checking whether ln -s works for files in the same directory... yes checking for install-info... : checking for gzip... /bin/gzip checking for makeinfo... /home/shirai/bin/makeinfo checking for -znocombreloc... no checking whether addresses are sanitized... no checking for pkg-config... /bin/pkg-config checking for machine/soundcard.h... no checking for sys/soundcard.h... no checking for soundcard.h... no checking for mmsystem.h... no checking for _oss_ioctl in -lossaudio... no checking for alsa >=3D 1.0.0... no checking for sys/systeminfo.h... yes checking for coff.h... no checking for pty.h... no checking for sys/resource.h... yes checking for sys/utsname.h... yes checking for pwd.h... yes checking for utmp.h... yes checking for util.h... no checking for sys/socket.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for pthread.h... yes checking for malloc/malloc.h... no checking for maillock.h... yes checking for sys/un.h... yes checking for dirent.h... yes checking for execinfo.h... no checking for stdio_ext.h... yes checking for getopt.h... yes checking for sys/time.h... yes checking for wchar.h... yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking for sys/select.h... yes checking for sys/stat.h... (cached) yes checking for utime.h... yes checking if personality LINUX32 can be set... no checking for term.h... yes checking whether time.h and sys/time.h may both be included... yes checking whether sys_siglist is declared... no checking whether __sys_siglist is declared... no checking for sys/wait.h that is POSIX.1 compatible... yes checking for net/if.h... yes checking for ifaddrs.h... no checking for net/if_dl.h... yes checking for struct ifreq.ifr_flags... yes checking for struct ifreq.ifr_hwaddr... no checking for struct ifreq.ifr_netmask... no checking for struct ifreq.ifr_broadaddr... yes checking for struct ifreq.ifr_addr... yes checking for struct ifreq.ifr_addr.sa_len... no checking for long file names... yes checking for X... libraries /usr/openwin/lib, headers = /usr/openwin/include checking whether malloc is Doug Lea style... no checking for getpagesize... yes checking for working mmap... yes checking for dnet_ntoa in -ldnet... no checking for main in -lXbsd... no checking for pthread_self in -lpthread... yes checking for cma_open in -lpthreads... no checking for Xkb... yes checking for XrmSetDatabase... yes checking for XScreenResourceString... yes checking for XScreenNumberOfScreen... yes checking X11 version 6... 6 or newer checking for librsvg-2.0 >=3D 2.11.0... no checking for Wand >=3D 6.3.5 Wand !=3D 6.8.2... no checking for gtk+-3.0 >=3D 3.0 glib-2.0 >=3D 2.28... no checking for gtk+-2.0 >=3D 2.10 glib-2.0 >=3D 2.10... no checking for dbus-1 >=3D 1.0... no checking for gio-2.0 >=3D 2.26... no checking for gconf-2.0 >=3D 2.13... no checking for lgetfilecon in -lselinux... no checking for gnutls >=3D 3.0.0... no checking for gnutls >=3D 2.6.6... no checking for gio-2.0 >=3D 2.24... no checking sys/inotify.h usability... no checking sys/inotify.h presence... no checking for sys/inotify.h... no checking for xaw3d... no checking for libXaw... yes; using Lucid toolkit checking X11 toolkit version... 6 or newer checking for XmuConvertStandardSelection in -lXmu... yes checking for XShapeQueryExtension in -lXext... yes checking for fontconfig >=3D 2.2.0... yes CFLAGS=3D' ' = LIBS=3D'-lfontconfig ' checking for xft >=3D 0.13.0... yes CFLAGS=3D'-I/usr/openwin/include = -I/usr/sfw/include -I/usr/sfw/include/freetype2 ' = LIBS=3D'-R/usr/openwin/lib -R/usr/sfw/lib = -R/usr/openwin/lib:/usr/openwin/sfw/lib -L/usr/openwin/lib = -L/usr/sfw/lib -L/usr/openwin/sfw/lib -lXft -lfreetype -lXrender = -lfontconfig ' checking for XRenderQueryExtension in -lXrender... no checking X11/xpm.h usability... yes checking X11/xpm.h presence... yes checking for X11/xpm.h... yes checking for XpmReadFileToPixmap in -lXpm... yes checking for XpmReturnAllocPixels preprocessor define... yes checking jerror.h usability... yes checking jerror.h presence... yes checking for jerror.h... yes checking for jpeg_destroy_compress in -ljpeg... yes configure: WARNING: libjpeg found, but not version 6b or later checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_get_channels in -lpng... yes checking whether png_longjmp is declared... no checking for library containing inflateEnd... -lz checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes checking for TIFFGetVersion in -ltiff... yes configure: error: The following required libraries were not found: libjpeg Maybe some development libraries/packages are missing? If you don't want to link with them give --with-jpeg=3Dno as options to configure % which cc /opt/SUNWspro/bin/cc % sh $ echo version=3D62 > aaa_emacs-24.4.91.c; cc -E aaa_emacs-24.4.91.c # 1 "aaa_emacs-24.4.91.c" version=3D62 #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" $ echo $? 0 $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E aaa_emacs-24.5.c # 1 "aaa_emacs-24.5.c" "aaa_emacs-24.5.c", line 1: invalid input token: 6b version 6b or later #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" cc: acomp failed for aaa_emacs-24.5.c $ echo $? 2 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 14 12:53:01 2015 Received: (at control) by debbugs.gnu.org; 14 Apr 2015 16:53:01 +0000 Received: from localhost ([127.0.0.1]:56410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi457-0005jt-4K for submit@debbugs.gnu.org; Tue, 14 Apr 2015 12:53:01 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:56018 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi455-0005jl-EA for control@debbugs.gnu.org; Tue, 14 Apr 2015 12:52:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Yi455-0005sD-4D for control@debbugs.gnu.org; Tue, 14 Apr 2015 12:52:59 -0400 Date: Tue, 14 Apr 2015 12:52:59 -0400 Message-Id: Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 19759 by 20332 From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 15 08:25:31 2015 Received: (at 20332) by debbugs.gnu.org; 15 Apr 2015 12:25:31 +0000 Received: from localhost ([127.0.0.1]:56806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiMNl-0001iy-TN for submit@debbugs.gnu.org; Wed, 15 Apr 2015 08:25:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45102) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiMNh-0001il-3C for 20332@debbugs.gnu.org; Wed, 15 Apr 2015 08:25:27 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3FCPNar012984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Apr 2015 08:25:23 -0400 Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3FCPLc6002543; Wed, 15 Apr 2015 08:25:22 -0400 Message-ID: <552E58B1.6030600@redhat.com> Date: Wed, 15 Apr 2015 14:25:21 +0200 From: Petr Hracek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?55m95LqV5b2w?= , 20332@debbugs.gnu.org Subject: Re: bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20332 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I guess that it was already solved in bug 20124. On 04/14/2015 06:47 PM, 白井彰 wrote: > With jpeg-6b, configure in Emacs 24.5 says "WARNING: libjpeg found, > but not version 6b or later". > > The host system type is i386-pc-solaris2.10, and the C compiler is SUN C. > In config.log the cc says: > "conftest.c", line 86: invalid input token: 6b > cc: acomp failed for conftest.c > > % cat -n /usr/include/jpeglib.h | sed -n 33p > 33 #define JPEG_LIB_VERSION 62 /* Version 6b */ > > % cat emacs-24.4.91.tar | tar xfp - > % (cd emacs-24.4.91; ./configure --with-gif=no | fgrep -i jpeg > configure_jpeg_emacs-24.4.91) > > % gzcat emacs-24.5.tar.gz | tar xfp - > % (cd emacs-24.5; ./configure --with-gif=no | fgrep -i jpeg > configure_jpeg_emacs-24.5) > configure: WARNING: libjpeg found, but not version 6b or later > configure: error: The following required libraries were not found: > libjpeg > Maybe some development libraries/packages are missing? > If you don't want to link with them give > --with-jpeg=no > as options to configure > > % (cd emacs-24.4.91; cat -n config.log | sed -n 4683,4688p) > 4683 configure:13880: checking for jpeg_destroy_compress in -ljpeg > 4684 configure:13905: cc -D_STDC_C99= -o conftest -I/usr/openwin/include -g -O -I/usr/openwin/include -L/usr/openwin/lib conftest.c -ljpeg -lXext -lXmu -lXt -lSM -lICE -lX11 -lpthread -lsocket -lnsl >&5 > 4685 "conftest.c", line 96: warning: statement not reached > 4686 configure:13905: $? = 0 > 4687 configure:13914: result: yes > 4688 configure:13995: checking png.h usability > > % (cd emacs-24.5; cat -n config.log | sed -n 4683,4691p) > 4683 configure:13882: checking for jpeg_destroy_compress in -ljpeg > 4684 configure:13907: cc -D_STDC_C99= -o conftest -I/usr/openwin/include -g -O -I/usr/openwin/include -L/usr/openwin/lib conftest.c -ljpeg -lXext -lXmu -lXt -lSM -lICE -lX11 -lpthread -lsocket -lnsl >&5 > 4685 "conftest.c", line 96: warning: statement not reached > 4686 configure:13907: $? = 0 > 4687 configure:13916: result: yes > 4688 "conftest.c", line 86: invalid input token: 6b > 4689 cc: acomp failed for conftest.c > 4690 configure:13943: WARNING: libjpeg found, but not version 6b or later > 4691 configure:13999: checking png.h usability > > % (cd emacs-24.5; ./configure --with-gif=no) > checking for xcrun... no > checking for a BSD-compatible install... /opt/sfw/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /opt/sfw/bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking whether make supports nested variables... yes > checking build system type... i386-pc-solaris2.10 > checking host system type... i386-pc-solaris2.10 > checking for gcc... no > checking for cc... cc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... no > checking whether cc accepts -g... yes > checking for cc option to accept ISO C89... none needed > checking whether cc understands -c and -o together... yes > checking for style of include used by make... GNU > checking dependency style of cc... none > checking how to run the C preprocessor... cc -E > checking for grep that handles long lines and -e... /usr/xpg4/bin/grep > checking for egrep... /usr/xpg4/bin/grep -E > checking for Minix Amsterdam compiler... no > checking for ar... ar > checking for ranlib... ranlib > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking minix/config.h usability... no > checking minix/config.h presence... no > checking for minix/config.h... no > checking whether it is safe to define __EXTENSIONS__... yes > checking whether _XOPEN_SOURCE should be defined... no > checking for special C compiler options needed for large files... no > checking for _FILE_OFFSET_BITS value needed for large files... 64 > checking for cc option to accept ISO C99... -D_STDC_C99= > checking for cc -D_STDC_C99= option to accept ISO Standard C... (cached) -D_STDC_C99= > checking whether cc -D_STDC_C99= accepts -g3... no > checking whether cc -D_STDC_C99= accepts -O... yes > checking whether the compiler is clang... no > checking whether ln -s works for files in the same directory... yes > checking for install-info... : > checking for gzip... /bin/gzip > checking for makeinfo... /home/shirai/bin/makeinfo > checking for -znocombreloc... no > checking whether addresses are sanitized... no > checking for pkg-config... /bin/pkg-config > checking for machine/soundcard.h... no > checking for sys/soundcard.h... no > checking for soundcard.h... no > checking for mmsystem.h... no > checking for _oss_ioctl in -lossaudio... no > checking for alsa >= 1.0.0... no > checking for sys/systeminfo.h... yes > checking for coff.h... no > checking for pty.h... no > checking for sys/resource.h... yes > checking for sys/utsname.h... yes > checking for pwd.h... yes > checking for utmp.h... yes > checking for util.h... no > checking for sys/socket.h... yes > checking for stdlib.h... (cached) yes > checking for unistd.h... (cached) yes > checking for sys/param.h... yes > checking for pthread.h... yes > checking for malloc/malloc.h... no > checking for maillock.h... yes > checking for sys/un.h... yes > checking for dirent.h... yes > checking for execinfo.h... no > checking for stdio_ext.h... yes > checking for getopt.h... yes > checking for sys/time.h... yes > checking for wchar.h... yes > checking for stdint.h... (cached) yes > checking for inttypes.h... (cached) yes > checking for sys/select.h... yes > checking for sys/stat.h... (cached) yes > checking for utime.h... yes > checking if personality LINUX32 can be set... no > checking for term.h... yes > checking whether time.h and sys/time.h may both be included... yes > checking whether sys_siglist is declared... no > checking whether __sys_siglist is declared... no > checking for sys/wait.h that is POSIX.1 compatible... yes > checking for net/if.h... yes > checking for ifaddrs.h... no > checking for net/if_dl.h... yes > checking for struct ifreq.ifr_flags... yes > checking for struct ifreq.ifr_hwaddr... no > checking for struct ifreq.ifr_netmask... no > checking for struct ifreq.ifr_broadaddr... yes > checking for struct ifreq.ifr_addr... yes > checking for struct ifreq.ifr_addr.sa_len... no > checking for long file names... yes > checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include > checking whether malloc is Doug Lea style... no > checking for getpagesize... yes > checking for working mmap... yes > checking for dnet_ntoa in -ldnet... no > checking for main in -lXbsd... no > checking for pthread_self in -lpthread... yes > checking for cma_open in -lpthreads... no > checking for Xkb... yes > checking for XrmSetDatabase... yes > checking for XScreenResourceString... yes > checking for XScreenNumberOfScreen... yes > checking X11 version 6... 6 or newer > checking for librsvg-2.0 >= 2.11.0... no > checking for Wand >= 6.3.5 Wand != 6.8.2... no > checking for gtk+-3.0 >= 3.0 glib-2.0 >= 2.28... no > checking for gtk+-2.0 >= 2.10 glib-2.0 >= 2.10... no > checking for dbus-1 >= 1.0... no > checking for gio-2.0 >= 2.26... no > checking for gconf-2.0 >= 2.13... no > checking for lgetfilecon in -lselinux... no > checking for gnutls >= 3.0.0... no > checking for gnutls >= 2.6.6... no > checking for gio-2.0 >= 2.24... no > checking sys/inotify.h usability... no > checking sys/inotify.h presence... no > checking for sys/inotify.h... no > checking for xaw3d... no > checking for libXaw... yes; using Lucid toolkit > checking X11 toolkit version... 6 or newer > checking for XmuConvertStandardSelection in -lXmu... yes > checking for XShapeQueryExtension in -lXext... yes > checking for fontconfig >= 2.2.0... yes CFLAGS=' ' LIBS='-lfontconfig ' > checking for xft >= 0.13.0... yes CFLAGS='-I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 ' LIBS='-R/usr/openwin/lib -R/usr/sfw/lib -R/usr/openwin/lib:/usr/openwin/sfw/lib -L/usr/openwin/lib -L/usr/sfw/lib -L/usr/openwin/sfw/lib -lXft -lfreetype -lXrender -lfontconfig ' > checking for XRenderQueryExtension in -lXrender... no > checking X11/xpm.h usability... yes > checking X11/xpm.h presence... yes > checking for X11/xpm.h... yes > checking for XpmReadFileToPixmap in -lXpm... yes > checking for XpmReturnAllocPixels preprocessor define... yes > checking jerror.h usability... yes > checking jerror.h presence... yes > checking for jerror.h... yes > checking for jpeg_destroy_compress in -ljpeg... yes > configure: WARNING: libjpeg found, but not version 6b or later > checking png.h usability... yes > checking png.h presence... yes > checking for png.h... yes > checking for png_get_channels in -lpng... yes > checking whether png_longjmp is declared... no > checking for library containing inflateEnd... -lz > checking tiffio.h usability... yes > checking tiffio.h presence... yes > checking for tiffio.h... yes > checking for TIFFGetVersion in -ltiff... yes > configure: error: The following required libraries were not found: > libjpeg > Maybe some development libraries/packages are missing? > If you don't want to link with them give > --with-jpeg=no > as options to configure > > % which cc > /opt/SUNWspro/bin/cc > % sh > > $ echo version=62 > aaa_emacs-24.4.91.c; cc -E aaa_emacs-24.4.91.c > # 1 "aaa_emacs-24.4.91.c" > version=62 > #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" > $ echo $? > 0 > > $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E aaa_emacs-24.5.c > # 1 "aaa_emacs-24.5.c" > "aaa_emacs-24.5.c", line 1: invalid input token: 6b > version 6b or later > #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" > cc: acomp failed for aaa_emacs-24.5.c > $ echo $? > 2 > > > > -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 15 11:36:47 2015 Received: (at 20332) by debbugs.gnu.org; 15 Apr 2015 15:36:47 +0000 Received: from localhost ([127.0.0.1]:57237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiPMs-0006x1-W4 for submit@debbugs.gnu.org; Wed, 15 Apr 2015 11:36:47 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37144 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiPMq-0006wt-SC for 20332@debbugs.gnu.org; Wed, 15 Apr 2015 11:36:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YiPMp-0002ka-LT; Wed, 15 Apr 2015 11:36:43 -0400 From: Glenn Morris To: Petr Hracek Subject: Re: bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" References: <552E58B1.6030600@redhat.com> X-Spook: national information infrastructure Waco, Texas PLO ASO X-Ran: r>v?X2X*,>u?&B~3R~h_yd-[(sW3cOaU4^s>1AqVtv^+_&>V2MSso"3[%U]&<^f+J}Db)u X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 15 Apr 2015 11:36:43 -0400 In-Reply-To: <552E58B1.6030600@redhat.com> (Petr Hracek's message of "Wed, 15 Apr 2015 14:25:21 +0200") Message-ID: <1foamppfn8.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20332 Cc: okshirai@gmail.com, 20332@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Petr Hracek wrote: > I guess that it was already solved in bug 20124. No, I guess this problem was in fact caused by the change made for 20124. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 15 13:59:49 2015 Received: (at 20332) by debbugs.gnu.org; 15 Apr 2015 17:59:49 +0000 Received: from localhost ([127.0.0.1]:57321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiRbI-0005VJ-GQ for submit@debbugs.gnu.org; Wed, 15 Apr 2015 13:59:48 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40434 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiRbF-0005V8-MI for 20332@debbugs.gnu.org; Wed, 15 Apr 2015 13:59:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YiRbF-0006kS-0F; Wed, 15 Apr 2015 13:59:45 -0400 From: Glenn Morris To: okshirai@gmail.com Subject: Re: bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" References: X-Spook: Ruby Ridge global CBNRC interception Rand Corporation X-Ran: H.N4LjQ1ny&/0w>-Sz6kh;?~1>}xK4#Q[W\Sz`:HY`3gKI<%Gi!J,6joE}+7a%[ue(}b\O X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 15 Apr 2015 13:59:44 -0400 In-Reply-To: (=?utf-8?B?IueZveS6leW9sCIncw==?= message of "Wed, 15 Apr 2015 01:47:48 +0900") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20332 Cc: 20332@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E aaa_emacs-24.5.c > # 1 "aaa_emacs-24.5.c" > "aaa_emacs-24.5.c", line 1: invalid input token: 6b > version 6b or later > #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" > cc: acomp failed for aaa_emacs-24.5.c > $ echo $? > 2 Funnily enough, our own etc/PROBLEMS file used to contain a solution for this very issue: *** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc'' The final stage of the Emacs configure process uses the C preprocessor to generate the Makefiles. Errors of this form can occur if the C preprocessor inserts extra whitespace into its output. The solution is to find the switches that stop your preprocessor from inserting extra whitespace, add them to CPPFLAGS, and re-run configure. For example, this error can occur on Solaris 10 when using the Sun Studio compiler ``Sun C 5.8'' with its preprocessor CPP="/opt/SUNWspro/bin/cc -E". The relevant switch in this case is "-Xs" (``compile assuming (pre-ANSI) K & R C style code''). And indeed adding -Xs seems to avoid the issue. I don't think this is a real solution to this case, just a historical curiosity. :) From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 15 21:37:17 2015 Received: (at 20332-done) by debbugs.gnu.org; 16 Apr 2015 01:37:17 +0000 Received: from localhost ([127.0.0.1]:57581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiYk0-0003kL-RL for submit@debbugs.gnu.org; Wed, 15 Apr 2015 21:37:17 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:36668) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiYjy-0003k7-Qq for 20332-done@debbugs.gnu.org; Wed, 15 Apr 2015 21:37:15 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 9E04EA6005B; Wed, 15 Apr 2015 18:37:08 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ze1ckqP-7pqp; Wed, 15 Apr 2015 18:37:06 -0700 (PDT) Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id D70B6A6007F; Wed, 15 Apr 2015 18:37:06 -0700 (PDT) Message-ID: <552F1242.507@cs.ucla.edu> Date: Wed, 15 Apr 2015 18:37:06 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?55m95LqV5b2w?= Subject: Re: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" Content-Type: multipart/mixed; boundary="------------000602010301090409070901" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20332-done Cc: 20332-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------000602010301090409070901 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the bug report. This area of 'configure.ac' has been a source of trouble recently. I rewrote it, installed the attached patch into the master branch, and am marking the bug as done. --------------000602010301090409070901 Content-Type: text/x-patch; name="0001-Port-jpeg-configuration-to-Solaris-10-with-Sun-C.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Port-jpeg-configuration-to-Solaris-10-with-Sun-C.patch" >From fdf532b9c915ad9ba72155646d29d0f530fd72ec Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 15 Apr 2015 18:30:01 -0700 Subject: [PATCH] Port jpeg configuration to Solaris 10 with Sun C * configure.ac: Check for jpeglib 6b by trying to link it, instead of relying on cpp magic that has problems in practice. Check for both jpeglib.h and jerror.h features. Remove special case for mingw32, which should no longer be needed (and if it were needed, should now be addressable by hotwiring emacs_cv_jpeglib). Fixes: bug#20332 --- configure.ac | 76 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/configure.ac b/configure.ac index 858cf78..c35e962 100644 --- a/configure.ac +++ b/configure.ac @@ -3189,48 +3189,40 @@ AC_SUBST(LIBXPM) ### mingw32 doesn't use -ljpeg, since it loads the library dynamically. HAVE_JPEG=no LIBJPEG= -if test "${opsys}" = "mingw32"; then - if test "${with_jpeg}" != "no"; then - dnl Checking for jpeglib.h can lose because of a redefinition of - dnl HAVE_STDLIB_H. - AC_CHECK_HEADER(jerror.h, HAVE_JPEG=yes, HAVE_JPEG=no) - fi - AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl - if test "${HAVE_JPEG}" = "yes"; then - AC_DEFINE(HAVE_JPEG) - AC_EGREP_CPP([version 6b or later], - [#include - #if JPEG_LIB_VERSION >= 62 - version 6b or later - #endif - ], - [AC_DEFINE(HAVE_JPEG)], - [AC_MSG_WARN([libjpeg found, but not version 6b or later]) - HAVE_JPEG=no]) - fi -elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then - if test "${with_jpeg}" != "no"; then - dnl Checking for jpeglib.h can lose because of a redefinition of - dnl HAVE_STDLIB_H. - AC_CHECK_HEADER(jerror.h, - [AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes)]) - fi - - AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl - if test "${HAVE_JPEG}" = "yes"; then - AC_DEFINE(HAVE_JPEG) - AC_EGREP_CPP([version 6b or later], - [#include - #if JPEG_LIB_VERSION >= 62 - version 6b or later - #endif - ], - [AC_DEFINE(HAVE_JPEG)], - [AC_MSG_WARN([libjpeg found, but not version 6b or later]) - HAVE_JPEG=no]) - fi - if test "${HAVE_JPEG}" = "yes"; then - LIBJPEG=-ljpeg +if test "${with_jpeg}" != "no"; then + AC_CACHE_CHECK([for jpeglib 6b or later], + [emacs_cv_jpeglib], + [OLD_LIBS=$LIBS + for emacs_cv_jpeglib in yes -ljpeg no; do + case $emacs_cv_jpeglib in + yes) ;; + no) break;; + *) LIBS="$LIBS $emacs_cv_jpeglib";; + esac + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#undef HAVE_STDLIB_H /* Avoid config.h/jpeglib.h collision. */ + #include /* jpeglib.h needs FILE and size_t. */ + #include + #include + char verify[JPEG_LIB_VERSION < 62 ? -1 : 1]; + struct jpeg_decompress_struct cinfo; + ]], + [[ + jpeg_create_decompress (&cinfo); + WARNMS (&cinfo, JWRN_JPEG_EOF); + jpeg_destroy_decompress (&cinfo); + ]])], + [emacs_link_ok=yes], + [emacs_link_ok=no]) + LIBS=$OLD_LIBS + test $emacs_link_ok = yes && break + done]) + if test "$emacs_cv_jpeglib" != no; then + HAVE_JPEG=yes + AC_DEFINE([HAVE_JPEG], 1, + [Define to 1 if you have the jpeg library (typically -ljpeg).]) + test "$emacs_cv_jpeglib" != yes && LIBJPEG=$emacs_cv_jpeglib fi fi AC_SUBST(LIBJPEG) -- 2.1.0 --------------000602010301090409070901-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 12:40:36 2015 Received: (at 20332-done) by debbugs.gnu.org; 16 Apr 2015 16:40:36 +0000 Received: from localhost ([127.0.0.1]:58280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YimqA-0005ze-Mk for submit@debbugs.gnu.org; Thu, 16 Apr 2015 12:40:35 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33241) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yimq7-0005zM-RQ for 20332-done@debbugs.gnu.org; Thu, 16 Apr 2015 12:40:32 -0400 Received: by paboj16 with SMTP id oj16so95359121pab.0 for <20332-done@debbugs.gnu.org>; Thu, 16 Apr 2015 09:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KSfiUz33bMr7MzskBqz/pJXLq8uf+oAXbply95RlQFU=; b=qPVnY+INoK7bKYKnCT+8OF6OuZniyQeR5lIUR+1DiOK+D8cp8LLcvMsmd3GnCK1hmt mzLcRuw5RZFyz4cftaqvpoL4oXtfMq4OzwKFV0VuuxRTGHqizb6jyWXd8RvoqMhMs2E+ GopVe+aUmRtuknkR/O29UZuWdqWIXIGZk3YLrhVjg37hGWOuh8IXGe9C1P2+0fDz6p9r mpV4KcK0Q8u/Mq4SF2nAD6VNuA15TLHDbDOp6lAVT8LDsnlDLAxQY2eCTKpehDPaAmbv BL++sqUd27KOPOq+u+J2QRhPASl7xIhagZA9bbicdfvD8F6tRa5sK3alyT1si0BGEbHK LgnQ== X-Received: by 10.66.253.137 with SMTP id aa9mr58120759pad.143.1429202425918; Thu, 16 Apr 2015 09:40:25 -0700 (PDT) Received: from [172.20.10.11] (pw126253200172.6.panda-world.ne.jp. [126.253.200.172]) by mx.google.com with ESMTPSA id x3sm7682808pdo.0.2015.04.16.09.40.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Apr 2015 09:40:24 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" From: =?utf-8?B?55m95LqV5b2w?= In-Reply-To: <552F1242.507@cs.ucla.edu> Date: Fri, 17 Apr 2015 01:40:21 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <73AE9BEA-D735-40D2-A353-CE99009A70AD@gmail.com> References: <552F1242.507@cs.ucla.edu> To: Paul Eggert X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20332-done Cc: Akira Shirai , 20332-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) The attached patch works. Thanks. % gzcat emacs-24.5.tar.gz | tar xfp - % (cd emacs-24.5; mv configure configure.orig) % (cd emacs-24.5; patch < = ../0001-Port-jpeg-configuration-to-Solaris-10-with-Sun-C.patch) patching file `configure.ac' Hunk #1 succeeded at 3066 (offset -123 lines). % (cd emacs-24.5; autoconf) % (cd emacs-24.5; ./configure --with-gif=3Dno | fgrep -i jpeg > = configure_jpeg_emacs-24.5_20332) % (cd emacs-24.5; cat -n config.log | sed -n '4673,4683p;4762,4785p') 4673 configure:13845: checking for jpeglib 6b or later 4674 configure:13878: cc -D_STDC_C99=3D -o conftest = -I/usr/openwin/include -g -O -I/usr/openwin/include = -L/usr/openwin/lib conftest.c -lXext -lXmu -lXt -lSM -lICE -lX11 = -lpthread -lsocket -lnsl >&5 4675 Undefined first referenced 4676 symbol in file 4677 jpeg_destroy_decompress conftest.o 4678 jpeg_CreateDecompress conftest.o 4679 ld: fatal: Symbol referencing errors. No output written to = conftest 4680 configure:13878: $? =3D 1 4681 configure: failed program was: 4682 | /* confdefs.h */ 4683 | #define PACKAGE_NAME "emacs" 4762 | #define HAVE_XPM 1 4763 | /* end confdefs.h. */ 4764 | #undef HAVE_STDLIB_H /* Avoid config.h/jpeglib.h collision. = */ 4765 | #include /* jpeglib.h needs FILE and = size_t. */ 4766 | #include 4767 | #include 4768 | char verify[JPEG_LIB_VERSION < 62 ? -1 : 1]; 4769 | struct jpeg_decompress_struct cinfo; 4770 | 4771 | int 4772 | main () 4773 | { 4774 | 4775 | jpeg_create_decompress (&cinfo); 4776 | WARNMS (&cinfo, JWRN_JPEG_EOF); 4777 | jpeg_destroy_decompress (&cinfo); 4778 | 4779 | ; 4780 | return 0; 4781 | } 4782 configure:13878: cc -D_STDC_C99=3D -o conftest = -I/usr/openwin/include -g -O -I/usr/openwin/include = -L/usr/openwin/lib conftest.c -lXext -lXmu -lXt -lSM -lICE -lX11 = -lpthread -lsocket -lnsl -ljpeg >&5 4783 configure:13878: $? =3D 0 4784 configure:13889: result: -ljpeg 4785 configure:13944: checking png.h usability > 2015/04/16 10:37=E3=80=81Paul Eggert = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=EF=BC=9A >=20 > Thanks for the bug report. This area of 'configure.ac' has been a = source of trouble recently. I rewrote it, installed the attached patch = into the master branch, and am marking the bug as done. > <0001-Port-jpeg-configuration-to-Solaris-10-with-Sun-C.patch> From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 12:42:47 2015 Received: (at 20332) by debbugs.gnu.org; 16 Apr 2015 16:42:47 +0000 Received: from localhost ([127.0.0.1]:58284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YimsJ-00063e-El for submit@debbugs.gnu.org; Thu, 16 Apr 2015 12:42:47 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:35918) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YimsH-00063P-Vx for 20332@debbugs.gnu.org; Thu, 16 Apr 2015 12:42:46 -0400 Received: by pdea3 with SMTP id a3so97773877pde.3 for <20332@debbugs.gnu.org>; Thu, 16 Apr 2015 09:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xfQaHBH4i2ozUaJNGQJp+ozAdOgCCCbulRDWZHJ5KeM=; b=ZktRVRBwYvkO3wpQBzbauQsd504A52yDhYtT0eO5lL044WHe6ks+ASwpVts/v0Z/F0 K0nA4W25ibW75drVN/hfAZe8MdS6E1MLGgZ/NnQMcLEvY9ptJwuyL1WQCDH4yjxgPb1d yHcljiTBd7qvZOdbNO3BmbSTL+ZTB3ja7vJiyyMbMvEZZGLS+3pdYDx5Z3sJevdqjErw H11xlYG9OdkONsKyMuvviJcT7OOVkEtuN0L1WL6BWtuYeBV+NcXXpbW3UJ4fkmrgCypi wQIULLKNOB4it72tg9PvaP7D155ZhXobl4CWGDr3uNLBzQSJiwk8y+TnyBK41djnAc+b 81bg== X-Received: by 10.66.137.98 with SMTP id qh2mr57468594pab.76.1429202560185; Thu, 16 Apr 2015 09:42:40 -0700 (PDT) Received: from [172.20.10.11] (pw126253200172.6.panda-world.ne.jp. [126.253.200.172]) by mx.google.com with ESMTPSA id rx3sm7605003pbc.78.2015.04.16.09.42.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Apr 2015 09:42:39 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" From: =?utf-8?B?55m95LqV5b2w?= In-Reply-To: Date: Fri, 17 Apr 2015 01:42:36 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <16ED6729-0CC5-4030-AC5E-8FA593A40B75@gmail.com> References: To: Glenn Morris X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20332 Cc: Akira Shirai , 20332@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Adding -Xs works. Thanks. $ cc -V cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12 usage: cc [ options] files. Use 'cc -flags' for details $ cc -flags | egrep '^-E|^-Xs' -E Compile source through preprocessor only, output to = stdout -Xs Compile assuming (pre-ANSI) K & R C style code $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E -Xs = aaa_emacs-24.5.c # 1 "aaa_emacs-24.5.c" version 6b or later $ echo $? 0 > 2015/04/16 2:59=E3=80=81Glenn Morris =E3=81=AE=E3=83=A1=E3= =83=BC=E3=83=AB=EF=BC=9A >=20 >=20 >> $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E = aaa_emacs-24.5.c >> # 1 "aaa_emacs-24.5.c" >> "aaa_emacs-24.5.c", line 1: invalid input token: 6b >> version 6b or later >> #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12" >> cc: acomp failed for aaa_emacs-24.5.c >> $ echo $? >> 2 >=20 > Funnily enough, our own etc/PROBLEMS file used to contain a solution = for > this very issue: >=20 > *** `configure' fails with ``"junk.c", line 660: invalid input = token: 8.elc'' >=20 > The final stage of the Emacs configure process uses the C = preprocessor > to generate the Makefiles. Errors of this form can occur if the C > preprocessor inserts extra whitespace into its output. The = solution > is to find the switches that stop your preprocessor from inserting = extra > whitespace, add them to CPPFLAGS, and re-run configure. For = example, > this error can occur on Solaris 10 when using the Sun Studio = compiler > ``Sun C 5.8'' with its preprocessor CPP=3D"/opt/SUNWspro/bin/cc = -E". > The relevant switch in this case is "-Xs" (``compile assuming > (pre-ANSI) K & R C style code''). >=20 > And indeed adding -Xs seems to avoid the issue. >=20 > I don't think this is a real solution to this case, > just a historical curiosity. :) From unknown Mon Aug 18 14:23:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 May 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator