unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1)
@ 2009-12-06  3:49 Steve Revilak
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Revilak @ 2009-12-06  3:49 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 3108 bytes --]

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Symptoms: when (tool-bar-mode 1) is used with Emacs 23.1.1 on Mac OS
X, the toolbar icons are black and gray silhouettes.  Here is a screen
capture which shows toolbar mode on Emacs 23.

   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-23.png

I expected to see color tool bar icons, as show in the following image
(a screen capture taken from emacs 22.3.1)

   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-22.png

Steps to Reproduce:

Start emacs as follows:

   /Applications/Emacs-23.1.app/Contents/MacOS/Emacs --no-init-file

Once emacs has started, eval the following

   (tool-bar-mode 1)

uname for my system is

   Darwin spud.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
     `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Applications/Emacs-23.1.app/Contents/Resources/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48)
  of 2009-10-14 on spud.local
Windowing system distributor `Apple', version 10.3.824
configured using `configure  '--with-ns''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: C
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <return> C-x C-f 
f o o . t x t <return> ( t o o l - b a r - m o d e 
SPC 1 ) C-x C-e s-x <help-echo> C-g C-x C-e <left> 
<backspace> 0 <right> C-x C-e <left> <backspace> 1 
<right> C-x C-e <help-echo> C-a C-k s-x s-x M-x r e 
p o <tab> t <tab> <backspace> r <tab> <return>

Recent messages:
kill-region: The mark is not set now, so there is no region
Quit
Auto-saving...
Quit
t
nil
t
Auto-saving...
kill-region: The mark is not set now, so there is no region [2 times]
Making completion list...


[-- Attachment #2: Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1)
@ 2009-12-06 19:10 Chong Yidong
  2009-12-06 20:25 ` Steve Revilak
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2009-12-06 19:10 UTC (permalink / raw)
  To: Steve Revilak; +Cc: 5132

> Symptoms: when (tool-bar-mode 1) is used with Emacs 23.1.1 on Mac OS
> X, the toolbar icons are black and gray silhouettes.  Here is a screen
> capture which shows toolbar mode on Emacs 23.
>
>   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-23.png
>
> I expected to see color tool bar icons, as show in the following image
> (a screen capture taken from emacs 22.3.1)
>
>   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-22.png

Did you compile Emacs with image support?  (You need the image
development libraries.  The output of `configure' should tell you
whether they were found.)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1)
  2009-12-06 19:10 bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1) Chong Yidong
@ 2009-12-06 20:25 ` Steve Revilak
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Revilak @ 2009-12-06 20:25 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 5132


[-- Attachment #1.1: Type: text/plain, Size: 4256 bytes --]

>From: Chong Yidong <cyd@stupidchicken.com>

>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/Desktop/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 
   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 
   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 

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/libXpm.4.11.dylib
     4 lrwxr-xr-x   1 root  wheel      17 Jun 20 20:56 /usr/X11R6/lib/libXpm.4.dylib@ -> libXpm.4.11.dylib
   180 -rw-r--r--   1 root  wheel  183780 Mar 23  2007 /usr/X11R6/lib/libXpm.a
     4 lrwxr-xr-x   1 root  wheel      17 Jun 20 20:56 /usr/X11R6/lib/libXpm.dylib@ -> libXpm.4.11.dylib

   $ ls -l /usr/X11R6/include/X11/xpm.h 
   16 -r--r--r--   1 root  wheel  16286 Mar 23  2007 /usr/X11R6/include/X11/xpm.h


What else can I try?


Steve Revilak

[-- Attachment #1.2: configure.out --]
[-- Type: text/plain, Size: 14526 bytes --]

# output of ./configure --with-ns --with-xpm
# on 
# Darwin spud.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 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... 
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 >= 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 >= 2.11.0... no
checking for pkg-config... (cached) /opt/local/bin/pkg-config
checking for dbus-1 >= 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/dist/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 
  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 
  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

[-- Attachment #2: Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-06 20:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 19:10 bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1) Chong Yidong
2009-12-06 20:25 ` Steve Revilak
  -- strict thread matches above, loose matches on Subject: below --
2009-12-06  3:49 Steve Revilak

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).