pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47658: editors/emacs24 dispnew.c: In function 'update_frame_1' dereferencing pointer to incomplete type



>Number:         47658
>Category:       pkg
>Synopsis:       editors/emacs24 dispnew.c: In function 'update_frame_1' 
>dereferencing pointer to incomplete type
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 16 22:25:00 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.3-DEVELOPMENT x86_64 and i386
>Organization:
>Environment:
DragonFly 3.3-DEVELOPMENT x86_64 and i386
>Description:
Using DragonFly 3.3-DEVELOPMENT x86_64 and i386 through master
commit 9720775e4ed3ad9ddec3238d67f40909d9030979
Date:   Fri Mar 15 20:37:29 2013 +0100

    pciconf(8): Add support for displaying extended capabilities with -c.

with default compiler
$ cc --version
cc 4.7.2 [DragonFly] Release/2012-09-20

and using pkgsrc current master through:

commit 7bbd4108e9499f6d74c60da3a2b4dd35ba2365e9
Date:   Sat Mar 16 08:00:46 2013 -0700

building either editors/emacs or editors/emacs24 fails with:

Configured for `i386-pc-dragonfly'.

  Where should the build process find the source code?    
/usr/pkgsrc/editors/emacs24/work/emacs-24.3
  What compiler should emacs be built with?               cc -std=gnu99 -O2 -g 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/include/gettext
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK2
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use -lpng?                                   yes
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use imagemagick?                             no
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               yes
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              yes
  Does Emacs use -lotf?                                   yes
  Does Emacs use -lxft?                                   yes
  Does Emacs use toolkit scroll bars?                     yes
...
gmake[2]: Entering directory `/usr/pkgsrc/editors/emacs24/work/emacs-24.3/src'
touch stamp-oldxmenu
../lib-src/make-docfile -d /usr/pkgsrc/editors/emacs24/work/emacs-24.3/src -g 
dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o 
category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o 
xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o gtkutil.o  
dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o 
insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o 
indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o 
eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o 
process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o 
intervals.o textprop.o composite.o xml.o profiler.o     xfont.o ftfont.o 
xftfont.o ftxfont.o  fontset.o fringe.o image.o  > gl-tmp
/usr/pkgsrc/editors/emacs24/work/emacs-24.3/src/../build-aux/move-if-change 
gl-tmp globals.h
echo timestamp > gl-stamp
cc -std=gnu99 -c -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/include/gettext -Demacs  -I. 
-I/usr/pkgsrc/editors/emacs24/work/emacs-24.3/src -I../lib 
-I/usr/pkgsrc/editors/emacs24/work/emacs-24.3/src/../lib   -D_REENTRANT 
-pthread -I/usr/pkg/include/gtk-2.0 -I/usr/pkg/lib/gtk-2.0/include 
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/atk-1.0 
-I/usr/pkg/include/cairo -I/usr/pkg/include/pixman-1 -I/usr/pkg/include 
-I/usr/pkg/include/gdk-pixbuf-2.0 -I/usr/pkg/include/libpng16 
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/harfbuzz 
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/freetype2 -I/usr/pkg/include 
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include 
-I/usr/pkg/include  -D_REENTRANT -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include    -pthread -D_REENTRANT 
-I/usr/pkg/include/librsvg-2.0 -I/usr/pkg/include/gdk-pixbuf-2.0 
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include 
-I/usr/pkg/include -I/usr/pk
 g/include/cairo -I/usr/pkg/include/pixman-1 -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include/libpng16 
-I/usr/pkg/include   -I/usr/pkg/include/libxml2  -I/usr/pkg/include/dbus-1.0 
-I/usr/pkg/lib/dbus-1.0/include  -pthread -I/usr/pkg/include/glib/glib-2.0 
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include  
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include 
-I/usr/pkg/include  -I/usr/pkg/include/freetype2 -I/usr/pkg/include  
-I/usr/pkg/include  -I/usr/pkg/include/freetype2 -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include  -I/usr/pkg/include  -MMD -MF 
deps/dispnew.d -MP     -O2 -g -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/gettext dispnew.c
dispnew.c: In function 'update_frame_1':
dispnew.c:4651:16: error: dereferencing pointer to incomplete type
dispnew.c:4651:16: error: dereferencing pointer to incomplete type
gmake[2]: *** [dispnew.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/editors/emacs24/work/emacs-24.3/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/editors/emacs24/work/emacs-24.3'
gmake: *** [bootstrap] Error 2

The lines around line 4651 of src/dispnew.c are:

              FILE *display_output = FRAME_TTY (f)->output;
              if (display_output)
                {
                  int outq = PENDING_OUTPUT_COUNT (display_output);
                  if (outq > 900
                      || (outq > 20 && ((i - 1) % preempt_count == 0)))

emacs24 built without incident on NetBSD 6.99.17.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index