Joe Keen wrote:

> While I was trying to compile vim 7.1 with gui support on a stripped
> down Debian 4.0 system I ran into several issues.  I'm sure they're
> problems with the configuration of the OS as I installed it so I'm
> trying to figure out what I'm missing that vim needs.
> 
> First, by the time the configure script got to the point where it was
> checking the --enable-gui argument it had been emptied even though it
> did have a value at the top of the configure script.  Adjusting the
> configure script slightly so that --enable-gui is always true allowed
> it to figure out that it could compile with GTK2 enabled.  Does anyone
> know what configure is looking for to determine that GUI mode is
> available?
> 
> After successfully configuring and adding libraries that turned up
> missing at compile time I ran into another issue with _Xmblen in scr/
> auto/osdefs.h.  The compiler was telling me that the defenition from
> there conflicted with a definition from the X system.  I took the
> definition out of osdefs.h and things worked from there on out.  What
> set of X libraries should I have on the Debian system to make sure
> that  they have compatible definitions?

Francois Ingelrest wrote:

> I've just installed the latest Ubuntu (a RC), and of course one of my
> first move was to compile Vim. I got an error while doing this:
> 
> In file included from /usr/include/X11/Intrinsic.h:56,
>                  from gui.h:32,
>                  from structs.h:81,
>                  from vim.h:1579,
>                  from buffer.c:28:
> /usr/include/X11/Xlib.h:102: error: conflicting types for '_Xmblen'
> auto/osdef.h:135: error: previous declaration of '_Xmblen' was here
> 
> 
> In /usr/include/X11/Xlib.h, I have this:
> 
> extern int
> _Xmblen(
> #ifdef ISC
>     char const *str,
>     size_t len
> #else
>     char *str,
>     int len
> #endif
> );
> 
> 
> And in src/auto/osdef.h, I have the same thing:
> 
> #ifdef ISC
> extern int    _Xmblen __ARGS((char const *, size_t));
> #else
>                   /* This is different from the header but matches mblen() */
> extern int    _Xmblen __ARGS((char *, size_t));
> #endif
> 
> 
> I had to comment the definition in osdef.h to get Vim compiled, and I
> never faced this issue previously. Any idea about what's going on?
> Maybe X headers have changed?

Are you two having the same problem?

There is a difference in the size_t and int type of the second argument.
But the idea is that these lines are removed when the function prototype
is in the header.  Question is why that doesn't happen.  I appear to
have the same thing in the header file and it works for me.

-- 
    [clop clop]
GUARD #1:  Halt!  Who goes there?
ARTHUR:    It is I, Arthur, son of Uther Pendragon, from the castle of
           Camelot.  King of the Britons, defeator of the Saxons, sovereign of
           all England!
GUARD #1:  Pull the other one!
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui