Bug 125747

Summary: Compilation error in editors/vim (vim-7.1.330)
Product: Ports & Packages Reporter: Ashish Shukla <wahjava>
Component: Individual Port(s)Assignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-02 none

Description Ashish Shukla 2008-07-18 14:30:02 UTC
While trying to build the editors/vim port I got following error:

---->8---->8----
cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -I/usr/local/include  -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona  -I/usr/local/include  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING   -I/usr/local/include  -I/usr/local/lib/perl5/5.8.8/mach/CORE -I/usr/local/include/python2.5 -D_THREAD_SAFE    -o objects/gui_beval.o gui_beval.c
/usr/bin/perl -e 'unless ( $] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$_ $_\n" }}' > auto/if_perl.c
/usr/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -prototypes -typemap  /usr/local/lib/perl5/5.8.8/ExtUtils/typemap if_perl.xs >> auto/if_perl.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -I/usr/local/include  -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona  -I/usr/local/include  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING   -I/usr/local/include  -I/usr/local/lib/perl5/5.8.8/mach/CORE -I/usr/local/include/python2.5 -D_THREAD_SAFE    -o objects/if_perl.o auto/if_perl.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -I/usr/local/include  -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona  -I/usr/local/include  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING   -I/usr/local/include  -I/usr/local/lib/perl5/5.8.8/mach/CORE -I/usr/local/include/python2.5 -D_THREAD_SAFE    -o objects/if_perlsfio.o if_perlsfio.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -I/usr/local/include  -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona  -I/usr/local/include  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING   -I/usr/local/include  -I/usr/local/lib/perl5/5.8.8/mach/CORE -I/usr/local/include/python2.5 -D_THREAD_SAFE    -o objects/if_python.o if_python.c
if_python.c: In function 'VimToPython':
if_python.c:1147: error: 'PRINTF_DECIMAL_LONG_U' undeclared (first use in this function)
if_python.c:1147: error: (Each undeclared identifier is reported only once
if_python.c:1147: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/editors/vim/work/vim71/src.
*** Error code 1

Stop in /usr/ports/editors/vim/work/vim71/src.
*** Error code 1

Stop in /usr/ports/editors/vim.
----8<----8<----


Following is the knobs set in /etc/make.conf:

---->8---->8----
CPUTYPE?=nocona
CFLAGS= -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=nocona
DEBUG_FLAGS=-g
MAKEOPTS=-j3
WITH_IPV6=true
WITH_PYTHON=true
WITH_XCB=true
WITH_GCRYPT=true
WITH_PERL=true
WITHOUT_SOCKS=true
WITH_GTK2=true
WITH_TOC2MP3=true
WITH_THREADS=true
WITH_XVID=true
WITH_OPTIMIZED_CFLAGS=true
----8<----8<----

How-To-Repeat: 
1. Execute following command on a root shell:

# make -C /usr/ports/editors/vim build
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-07-18 15:53:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer.
Comment 2 Martin Neubauer 2008-07-21 13:39:23 UTC
Hello,

Since I was affected by the compilation error I poked a little at the
source. Apparenty the patch 7.1.320 depends on 7.1.283, the latter skipped
as bad patch and itself depending on other patches not used by the port. At
that time I decided to just take the appropriate chunk from 7.1.283 and put
it in ports/editors/vim/files/patch-02. The patch is attached for further
testing and (hopefully) inclusion in the ports collection.

Regards,
	Martin Neubauer
Comment 3 Martin Neubauer 2008-07-21 13:42:21 UTC
Sorry, here's the patch acttually attached.

Regards,
	Martin Neubauer
Comment 4 Ashish Shukla 2008-07-22 12:29:08 UTC
In <20080721124221.GB1004@shodan.homeunix.net>, Martin Neubauer wrote:
>Sorry, here's the patch acttually attached.


The attached patch compiles editors/vim successfully :) .
>
>Regards,
>	Martin Neubauer


Thanks
-- 
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-08-04 22:30:38 UTC
miwi        2008-08-04 21:30:25 UTC

  FreeBSD ports repository

  Modified files:
    editors/vim          Makefile 
  Added files:
    editors/vim/files    patch-src_vim.h 
  Log:
  - Unbreak and fix build
  
  PR:             125747 (based on)
  Reported by:    many
  Submitted by:   Martin Neubauer <m.ne@gmx.net>
  No response from: maintainer (obrien, 14 days)
  
  Revision  Changes    Path
  1.331     +0 -2      ports/editors/vim/Makefile
  1.1       +31 -0     ports/editors/vim/files/patch-src_vim.h (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Martin Wilke freebsd_committer freebsd_triage 2008-08-04 22:30:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!