From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.bugs Subject: bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1) Date: Sun, 6 Dec 2009 15:25:19 -0500 Message-ID: <20091206202519.GC389@srevilak.net> References: <873a3nsytm.fsf@stupidchicken.com> Reply-To: Steve Revilak , 5132@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cHMo6Wbp1wrKhbfi" X-Trace: ger.gmane.org 1260132485 6668 80.91.229.12 (6 Dec 2009 20:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 20:48:05 +0000 (UTC) Cc: 5132@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 21:47:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHO1K-0005xf-AD for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 21:47:55 +0100 Original-Received: from localhost ([127.0.0.1]:44870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHO1J-0001f9-Uv for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 15:47:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHO11-0001RH-49 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 15:47:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHO0w-0001P8-Qj for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 15:47:34 -0500 Original-Received: from [199.232.76.173] (port=35166 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHO0w-0001Ou-AY for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 15:47:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56147) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHO0v-0000Ik-Bb for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 15:47:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6KlP9n012656; Sun, 6 Dec 2009 12:47:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB6KU6N9010761; Sun, 6 Dec 2009 12:30:06 -0800 Resent-Date: Sun, 6 Dec 2009 12:30:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Steve Revilak Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 06 Dec 2009 20:30:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5132 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5132-submit@emacsbugs.donarmstrong.com id=B5132.126013112410456 (code B ref 5132); Sun, 06 Dec 2009 20:30:06 +0000 Original-Received: (at 5132) by emacsbugs.donarmstrong.com; 6 Dec 2009 20:25:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6KPMZc010453 for <5132@emacsbugs.donarmstrong.com>; Sun, 6 Dec 2009 12:25:23 -0800 Original-Received: (qmail 32658 invoked from network); 6 Dec 2009 20:25:22 -0000 Original-Received: from pool-96-233-67-219.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.219]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 6 Dec 2009 20:25:21 -0000 Content-Disposition: inline In-Reply-To: <873a3nsytm.fsf@stupidchicken.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 06 Dec 2009 15:47:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33332 Archived-At: --cHMo6Wbp1wrKhbfi Content-Type: multipart/mixed; boundary="dkEUBIird37B8yKS" Content-Disposition: inline --dkEUBIird37B8yKS Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >From: Chong Yidong >Did you compile Emacs with image support? (You need the image >development libraries. The output of `configure' should tell you >whether they were found.) Chong, Thanks for responding to my bug report. I saved the configure command line, as well as the summary sectionof configure's output, which I'll reproduce below. ------------------------------------------------------------------ $ ./configure --with-ns [... didn't save this part ...] Configured for `powerpc-apple-darwin8.11.0'. Where should the build process find the source code? /Users/srevilak/Des= ktop/emacs-23.1 What operating system and machine description files should Emacs use? `s/darwin.h' and `m/macppc.h' What compiler should emacs be built with? gcc -g -O2 -Wno-= pointer-sign=20 Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use? nextstep What toolkit should Emacs use? none Where do we find X Windows header files? /usr/X11R6/inclu= de Where do we find X Windows libraries? /usr/X11R6/lib Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? no Does Emacs use -ltiff? no Does Emacs use a gif library? no=20 Does Emacs use -lpng? no Does Emacs use -lrsvg-2? no Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lfreetype? no Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use toolkit scroll bars? yes $ make $ make install ------------------------------------------------------------------ At the time, I was a surprised by the summary (it appeared that Emacs would be compiled with png, jpeg support), but I went ahead and did the compilation anyway. After compiling, I tried to view a few .png and .jpg files via C-x C-f /path/to/image-file RETURN=20 The .png and .jpg images displayed correctly, so I assumed that the supporting libraries had been found. After poking around Contents/Resources/etc/images, I see that there are .xpm images for the toolbar (for example, Contents/Resources/etc/images/help.xpm). In Emacs 23I tried to open help.xpm via C-x C-f, and what I see is exactly the same as the help icon in the toolbar. I've tried to recompile emacs 23.1.1, explictly requesting xpm support. $ unset CFLAGS CXXFLAGS LDFLAGS $ ./configure --with-ns --with-xpm 2>&1 | tee ~/configure.out Configure declared Does Emacs use -lXpm? no (I'll attach the full configure output). After "make", and "make install", I repeated my earlier `steps to reproduce'; I observed no change in behavior -- the toolbar icons are still black silhouettes (and .png, .jpg image view correctly when opened via C-x C-f.). There are xpm libraries and header files installed on my system $ ls -l /usr/X11R6/lib/libXpm.* 136 -rw-r--r-- 1 root wheel 136144 Nov 6 2006 /usr/X11R6/lib/libXp= m.4.11.dylib 4 lrwxr-xr-x 1 root wheel 17 Jun 20 20:56 /usr/X11R6/lib/libXp= m.4.dylib@ -> libXpm.4.11.dylib 180 -rw-r--r-- 1 root wheel 183780 Mar 23 2007 /usr/X11R6/lib/libXp= m.a 4 lrwxr-xr-x 1 root wheel 17 Jun 20 20:56 /usr/X11R6/lib/libXp= m.dylib@ -> libXpm.4.11.dylib $ ls -l /usr/X11R6/include/X11/xpm.h=20 16 -r--r--r-- 1 root wheel 16286 Mar 23 2007 /usr/X11R6/include/X11= /xpm.h What else can I try? Steve Revilak --dkEUBIird37B8yKS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.out" Content-Transfer-Encoding: quoted-printable # output of ./configure --with-ns --with-xpm # on=20 # Darwin spud.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:0= 0 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc checking build system type... powerpc-apple-darwin8.11.0 checking host system type... powerpc-apple-darwin8.11.0 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...=20 checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E -no-cpp-precomp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for AIX... no 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 gcc understands -Wno-pointer-sign... yes checking whether ln -s works... yes checking how to run the C preprocessor... cc -E -no-cpp-precomp checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for install-info... /usr/bin/install-info checking for install-info... (cached) /usr/bin/install-info checking for install-info... (cached) /usr/bin/install-info checking for gzip... /usr/bin/gzip checking for makeinfo... /usr/bin/makeinfo checking for -znocombreloc... no configure: checking the machine- and system-dependent files to find out - which libraries the lib-src programs will want, and - whether the GNU malloc routines are usable... checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking machine/soundcard.h usability... no checking machine/soundcard.h presence... no checking for machine/soundcard.h... no checking sys/soundcard.h usability... no checking sys/soundcard.h presence... no checking for sys/soundcard.h... no checking soundcard.h usability... no checking soundcard.h presence... no checking for soundcard.h... no checking for _oss_ioctl in -lossaudio... no checking for pkg-config... /opt/local/bin/pkg-config checking for alsa >=3D 1.0.0... no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking linux/version.h usability... no checking linux/version.h presence... no checking for linux/version.h... no checking sys/systeminfo.h usability... no checking sys/systeminfo.h presence... no checking for sys/systeminfo.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking termcap.h usability... yes checking termcap.h presence... yes checking for termcap.h... yes checking stdio_ext.h usability... no checking stdio_ext.h presence... no checking for stdio_ext.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for strings.h... (cached) yes checking coff.h usability... no checking coff.h presence... no checking for coff.h... no checking pty.h usability... no checking pty.h presence... no checking for pty.h... no checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/vlimit.h usability... no checking sys/vlimit.h presence... no checking for sys/vlimit.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking sys/_mbstate_t.h usability... no checking sys/_mbstate_t.h presence... no checking for sys/_mbstate_t.h... no checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking if personality LINUX32 can be set... no checking for term.h... yes checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking whether sys_siglist is declared... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for struct utimbuf... yes checking return type of signal handlers... void checking for speed_t... yes checking for struct timeval... yes checking for struct exception... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for net/if.h... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct tm.tm_gmtoff... 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 function prototypes... yes checking for working volatile... yes checking for an ANSI C-conforming const... yes checking for void * support... yes checking whether make sets $(MAKE)... yes checking for long file names... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking AppKit/AppKit.h usability... yes checking AppKit/AppKit.h presence... yes checking for AppKit/AppKit.h... yes checking for malloc_get_state... no checking for malloc_set_state... no checking whether __after_morecore_hook exists... no checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for dnet_ntoa in -ldnet... no checking for main in -lXbsd... no checking for cma_open in -lpthreads... no checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for librsvg-2.0 >=3D 2.11.0... no checking for pkg-config... (cached) /opt/local/bin/pkg-config checking for dbus-1 >=3D 1.0... no checking gpm.h usability... no checking gpm.h presence... no checking for gpm.h... no checking malloc/malloc.h usability... yes checking malloc/malloc.h presence... yes checking for malloc/malloc.h... yes checking whether netdb declares h_errno... yes checking for working alloca.h... yes checking for alloca... yes checking for sqrt in -lm... yes checking for maillock in -lmail... no checking for maillock in -llockfile... no checking for liblockfile.so... no checking for touchlock... no checking maillock.h usability... no checking maillock.h presence... no checking for maillock.h... no checking for gethostname... yes checking for getdomainname... yes checking for dup2... yes checking for rename... yes checking for closedir... yes checking for mkdir... yes checking for rmdir... yes checking for sysinfo... no checking for getrusage... yes checking for get_current_dir_name... no checking for random... yes checking for lrand48... yes checking for bcopy... yes checking for bcmp... yes checking for logb... yes checking for frexp... yes checking for fmod... yes checking for rint... yes checking for cbrt... yes checking for ftime... yes checking for setsid... yes checking for strerror... yes checking for fpathconf... yes checking for select... yes checking for mktime... yes checking for euidaccess... no checking for getpagesize... (cached) yes checking for tzset... yes checking for setlocale... yes checking for utimes... yes checking for getrlimit... yes checking for setrlimit... yes checking for setpgid... yes checking for getcwd... yes checking for getwd... yes checking for shutdown... yes checking for getaddrinfo... yes checking for __fpending... no checking for mblen... yes checking for mbrlen... yes checking for mbsinit... yes checking for strsignal... yes checking for setitimer... yes checking for ualarm... yes checking for index... yes checking for rindex... yes checking for sendto... yes checking for recvfrom... yes checking for getsockopt... yes checking for setsockopt... yes checking for getsockname... yes checking for getpeername... yes checking for gai_strerror... yes checking for mkstemp... yes checking for getline... no checking for getdelim... no checking for mremap... no checking for memmove... yes checking for fsync... yes checking for sync... yes checking for bzero... yes checking for memset... yes checking for memcmp... yes checking for difftime... yes checking for memcpy... yes checking for mempcpy... no checking for mblen... (cached) yes checking for mbrlen... (cached) yes checking for posix_memalign... no checking for cfmakeraw... yes checking for cfsetspeed... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking for getloadavg... yes checking for pstat_getdynamic... no checking for kstat_open in -lkstat... no checking for getloadavg... yes checking whether getloadavg requires setgid... no checking for _LARGEFILE_SOURCE value needed for large files... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for getopt_long_only... yes checking whether optreset is declared... yes checking whether getpgrp requires zero arguments... yes checking for strftime... yes checking for grantpt... yes checking for getpt... no checking for tparm in -lncurses... yes checking for res_init with -lresolv... yes checking for dgettext in -lintl... yes checking whether localtime caches TZ... no checking for gettimeofday... yes checking whether gettimeofday can accept two arguments... yes checking for socket... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking whether system supports dynamic ptys... no checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for nl_langinfo and CODESET... yes checking for size_t... yes checking for mbstate_t... yes checking for C restrict keyword... __restrict checking for C restricted array declarations... yes Configured for `powerpc-apple-darwin8.11.0'. Where should the build process find the source code? /Users/Shared/dis= t/emacs-23.1 What operating system and machine description files should Emacs use? `s/darwin.h' and `m/macppc.h' What compiler should emacs be built with? gcc -g -O2 -Wno-p= ointer-sign=20 Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use? nextstep What toolkit should Emacs use? none Where do we find X Windows header files? /usr/X11R6/include Where do we find X Windows libraries? /usr/X11R6/lib Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? no Does Emacs use -ltiff? no Does Emacs use a gif library? no=20 Does Emacs use -lpng? no Does Emacs use -lrsvg-2? no Does Emacs use -lgpm? no Does Emacs use -ldbus? no Does Emacs use -lfreetype? no Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use toolkit scroll bars? yes You must run "make install" in order to test the built application. The installed application will go to nextstep/Emacs.app and can be run or moved from there. The application will be fully self-contained. configure: creating ./config.status config.status: creating Makefile config.status: creating lib-src/Makefile.c config.status: creating oldXMenu/Makefile config.status: creating doc/emacs/Makefile config.status: creating doc/misc/Makefile config.status: creating doc/lispintro/Makefile config.status: creating doc/lispref/Makefile config.status: creating src/Makefile.c config.status: creating lwlib/Makefile config.status: creating lisp/Makefile config.status: creating leim/Makefile config.status: creating src/config.h config.status: executing default commands creating src/epaths.h src/epaths.h is unchanged creating lib-src/Makefile creating src/Makefile --dkEUBIird37B8yKS-- --cHMo6Wbp1wrKhbfi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkscEy8ACgkQX7YJI4BuyDTBYgCfcWu1bBELm/WOwt0jyrciHXpm 2cMAoM5u3DhHgortB7amN4PgtHPu+844 =AN5A -----END PGP SIGNATURE----- --cHMo6Wbp1wrKhbfi--