Compiling vim 7.3 failed on Win XP with mingw

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling vim 7.3 failed on Win XP with mingw

Cesar Romani-2
I got following error:

--------------------
gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
`blowfish_self_test'
gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
`blowfish_self_test'
gobjZ/fileio.o:fileio.c:(.text+0x7f18): undefined reference to `bf_key_init'
gobjZ/fileio.o:fileio.c:(.text+0x7f2b): undefined reference to `bf_ofb_init'
gobjZ/fileio.o:fileio.c:(.text+0xc1f9): undefined reference to `sha2_seed'
gobjZ/fileio.o:fileio.c:(.text+0xc207): undefined reference to `bf_ofb_init'
gobjZ/fileio.o:fileio.c:(.text+0xc216): undefined reference to `bf_key_init'
gobjZ/main.o:main.c:(.text+0x3e21): undefined reference to
`blowfish_self_test'
gobjZ/misc2.o:misc2.c:(.text+0x2ce3): undefined reference to `bf_ofb_update'
gobjZ/misc2.o:misc2.c:(.text+0x2bbe): undefined reference to `bf_ranbyte'
gobjZ/misc2.o:misc2.c:(.text+0x2bf5): undefined reference to `bf_ofb_update'
gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
`blowfish_self_test'
collect2: ld returned 1 exit status
make: *** [gvim.exe] Error 1
--------------------

Many thanks in advance

--
Cesar

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Bram Moolenaar

Cesar Romani wrote:

> I got following error:
>
> --------------------
> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
> `blowfish_self_test'
> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
> `blowfish_self_test'
> gobjZ/fileio.o:fileio.c:(.text+0x7f18): undefined reference to `bf_key_init'
> gobjZ/fileio.o:fileio.c:(.text+0x7f2b): undefined reference to `bf_ofb_init'
> gobjZ/fileio.o:fileio.c:(.text+0xc1f9): undefined reference to `sha2_seed'
> gobjZ/fileio.o:fileio.c:(.text+0xc207): undefined reference to `bf_ofb_init'
> gobjZ/fileio.o:fileio.c:(.text+0xc216): undefined reference to `bf_key_init'
> gobjZ/main.o:main.c:(.text+0x3e21): undefined reference to
> `blowfish_self_test'
> gobjZ/misc2.o:misc2.c:(.text+0x2ce3): undefined reference to `bf_ofb_update'
> gobjZ/misc2.o:misc2.c:(.text+0x2bbe): undefined reference to `bf_ranbyte'
> gobjZ/misc2.o:misc2.c:(.text+0x2bf5): undefined reference to `bf_ofb_update'
> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
> `blowfish_self_test'
> collect2: ld returned 1 exit status
> make: *** [gvim.exe] Error 1
> --------------------
>
> Many thanks in advance

I suspect the blowfish.c and sha256.c files are missing from the
Makefile.  Which Makefile were you using?

--
hundred-and-one symptoms of being an internet addict:
60. As your car crashes through the guardrail on a mountain road, your first
    instinct is to search for the "back" button.

 /// Bram Moolenaar -- [hidden email] -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Cesar Romani-2
On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
 >
 > Cesar Romani wrote:
 >
 >> I got following error:
 >>
 >> --------------------
 >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
 >> `blowfish_self_test'
 >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
 >> `blowfish_self_test'
 >> gobjZ/fileio.o:fileio.c:(.text+0x7f18): undefined reference to
`bf_key_init'
 >> gobjZ/fileio.o:fileio.c:(.text+0x7f2b): undefined reference to
`bf_ofb_init'
 >> gobjZ/fileio.o:fileio.c:(.text+0xc1f9): undefined reference to
`sha2_seed'
 >> gobjZ/fileio.o:fileio.c:(.text+0xc207): undefined reference to
`bf_ofb_init'
 >> gobjZ/fileio.o:fileio.c:(.text+0xc216): undefined reference to
`bf_key_init'
 >> gobjZ/main.o:main.c:(.text+0x3e21): undefined reference to
 >> `blowfish_self_test'
 >> gobjZ/misc2.o:misc2.c:(.text+0x2ce3): undefined reference to
`bf_ofb_update'
 >> gobjZ/misc2.o:misc2.c:(.text+0x2bbe): undefined reference to
`bf_ranbyte'
 >> gobjZ/misc2.o:misc2.c:(.text+0x2bf5): undefined reference to
`bf_ofb_update'
 >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
 >> `blowfish_self_test'
 >> collect2: ld returned 1 exit status
 >> make: *** [gvim.exe] Error 1
 >> --------------------
 >>
 >> Many thanks in advance
 >
 > I suspect the blowfish.c and sha256.c files are missing from the
 > Makefile.  Which Makefile were you using?
 >

I'm using Make_ming.mak and it also misses from Make_cyg.mak

Regards

--
Cesar

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Cesar Romani-2
On 18/05/2010 07:37 a.m., Cesar Romani wrote:
 > On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
 >  >
 >  > Cesar Romani wrote:
 >  >
 >  >> I got following error:
 >  >>
 >  >> --------------------
 >  >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
 >  >> `blowfish_self_test'
 >  >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
 >  >> `blowfish_self_test'
 >  >> [...]
 >  >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
 >  >> `blowfish_self_test'
 >  >> collect2: ld returned 1 exit status
 >  >> make: *** [gvim.exe] Error 1
 >  >> --------------------
 >  >>
 >  >> Many thanks in advance
 >  >
 >  > I suspect the blowfish.c and sha256.c files are missing from the
 >  > Makefile. Which Makefile were you using?
 >  >
 >
 > I'm using Make_ming.mak and it also misses from Make_cyg.mak

If I include blowfish.c and sha256.c I get:

--------------------
...
blowfish.c:24: error: syntax error before "uint32_t"
blowfish.c:26: error: syntax error before '}' token
blowfish.c:39: error: syntax error before '*' token
blowfish.c:41: error: syntax error before "ipa"
blowfish.c:45: error: syntax error before "pax"
blowfish.c:46: error: syntax error before "ipa"
blowfish.c:55: error: syntax error before "sbx"
blowfish.c:56: error: syntax error before "sbi"
blowfish.c:334: error: syntax error before "uint32_t"
blowfish.c:335: error: syntax error before '*' token
blowfish.c:336: error: syntax error before '{' token
blowfish.c:342: error: `xl' undeclared here (not in a function)
blowfish.c:342: error: `xr' undeclared here (not in a function)
blowfish.c:342: error: initializer element is not constant
blowfish.c:343: error: initializer element is not constant
blowfish.c:343: error: initializer element is not constant
blowfish.c:344: error: syntax error before '}' token
blowfish.c: In function `bf_e_cblock':
blowfish.c:375: error: syntax error before "bk"
blowfish.c:376: error: `bk' undeclared (first use in this function)
blowfish.c:376: error: (Each undeclared identifier is reported only once
blowfish.c:376: error: for each function it appears in.)
blowfish.c: In function `bf_key_init':
blowfish.c:404: error: `uint32_t' undeclared (first use in this function)
blowfish.c:404: error: syntax error before "val"
blowfish.c:420: error: `val' undeclared (first use in this function)
blowfish.c:426: error: `data_l' undeclared (first use in this function)
blowfish.c:426: error: `data_r' undeclared (first use in this function)
blowfish.c: At top level:
blowfish.c:450: error: syntax error before "uint32_t"
blowfish.c:451: error: syntax error before "sbi"
blowfish.c:452: error: syntax error before "val"
blowfish.c:457: error: syntax error before "for"
blowfish.c:470: error: syntax error before "uint32_t"
blowfish.c:475: error: syntax error before "bf_test_data"
blowfish.c: In function `bf_self_test':
blowfish.c:493: error: syntax error before "bk"
blowfish.c:501: error: request for member `password' in something not a
structure or union
blowfish.c:502: error: request for member `keysum' in something not a
structure or union
blowfish.c:506: error: `bk' undeclared (first use in this function)
blowfish.c:506: error: request for member `plaintxt' in something not a
structure or union
blowfish.c:508: error: request for member `cryptxt' in something not a
structure or union
blowfish.c:510: error: request for member `badcryptxt' in something not
a structure or union
make: *** [gobjZ/blowfish.o] Error 1
--------------------

Regards

--
Cesar

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Bram Moolenaar
In reply to this post by Cesar Romani-2

Cesar Romani wrote:

> On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
>  >
>  > Cesar Romani wrote:
>  >
>  >> I got following error:
>  >>
>  >> --------------------
>  >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
>  >> `blowfish_self_test'
>  >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
>  >> `blowfish_self_test'
>  >> gobjZ/fileio.o:fileio.c:(.text+0x7f18): undefined reference to
> `bf_key_init'
>  >> gobjZ/fileio.o:fileio.c:(.text+0x7f2b): undefined reference to
> `bf_ofb_init'
>  >> gobjZ/fileio.o:fileio.c:(.text+0xc1f9): undefined reference to
> `sha2_seed'
>  >> gobjZ/fileio.o:fileio.c:(.text+0xc207): undefined reference to
> `bf_ofb_init'
>  >> gobjZ/fileio.o:fileio.c:(.text+0xc216): undefined reference to
> `bf_key_init'
>  >> gobjZ/main.o:main.c:(.text+0x3e21): undefined reference to
>  >> `blowfish_self_test'
>  >> gobjZ/misc2.o:misc2.c:(.text+0x2ce3): undefined reference to
> `bf_ofb_update'
>  >> gobjZ/misc2.o:misc2.c:(.text+0x2bbe): undefined reference to
> `bf_ranbyte'
>  >> gobjZ/misc2.o:misc2.c:(.text+0x2bf5): undefined reference to
> `bf_ofb_update'
>  >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
>  >> `blowfish_self_test'
>  >> collect2: ld returned 1 exit status
>  >> make: *** [gvim.exe] Error 1
>  >> --------------------
>  >>
>  >> Many thanks in advance
>  >
>  > I suspect the blowfish.c and sha256.c files are missing from the
>  > Makefile.  Which Makefile were you using?
>  >
>
> I'm using Make_ming.mak and it also misses from Make_cyg.mak

And a few others, some were only partly adjusted by the patch.
I'll go through all of them.

--
hundred-and-one symptoms of being an internet addict:
63. You start using smileys in your snail mail.

 /// Bram Moolenaar -- [hidden email] -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Bram Moolenaar
In reply to this post by Cesar Romani-2

Cesar Romani wrote:

> On 18/05/2010 07:37 a.m., Cesar Romani wrote:
>  > On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
>  >  >
>  >  > Cesar Romani wrote:
>  >  >
>  >  >> I got following error:
>  >  >>
>  >  >> --------------------
>  >  >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
>  >  >> `blowfish_self_test'
>  >  >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
>  >  >> `blowfish_self_test'
>  >  >> [...]
>  >  >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
>  >  >> `blowfish_self_test'
>  >  >> collect2: ld returned 1 exit status
>  >  >> make: *** [gvim.exe] Error 1
>  >  >> --------------------
>  >  >>
>  >  >> Many thanks in advance
>  >  >
>  >  > I suspect the blowfish.c and sha256.c files are missing from the
>  >  > Makefile. Which Makefile were you using?
>  >  >
>  >
>  > I'm using Make_ming.mak and it also misses from Make_cyg.mak
>
> If I include blowfish.c and sha256.c I get:
>
> --------------------
> ...
> blowfish.c:24: error: syntax error before "uint32_t"
> blowfish.c:26: error: syntax error before '}' token
> blowfish.c:39: error: syntax error before '*' token
> blowfish.c:41: error: syntax error before "ipa"
[...]
> make: *** [gobjZ/blowfish.o] Error 1
> --------------------

Strange that these compilers don't define uint32_t.  I'll add it in
vim.h:

#if !defined(HAVE_CONFIG_H) && !defined(uint32_t) \
        && (defined(__CYGWIN32__) || defined(__MINGW32__))
  /* Assuming that MingW and Cygwin do not typedef uint32_t. */
# define uint32_t unsigned int
#endif


We can't check for a typedef, otherwise we could solve this in a more
generic way.

--
hundred-and-one symptoms of being an internet addict:
65. The last time you looked at the clock it was 11:30pm, and in what
    seems like only a few seconds later, your sister runs past you to
    catch her 7am school bus.

 /// Bram Moolenaar -- [hidden email] -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

James Vega-3
On Tue, May 18, 2010 at 4:29 PM, Bram Moolenaar <[hidden email]> wrote:

>
> Cesar Romani wrote:
>
>> On 18/05/2010 07:37 a.m., Cesar Romani wrote:
>>  > On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
>>  >  >
>>  >  > Cesar Romani wrote:
>>  >  >
>>  >  >> I got following error:
>>  >  >>
>>  >  >> --------------------
>>  >  >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
>>  >  >> `blowfish_self_test'
>>  >  >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
>>  >  >> `blowfish_self_test'
>>  >  >> [...]
>>  >  >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
>>  >  >> `blowfish_self_test'
>>  >  >> collect2: ld returned 1 exit status
>>  >  >> make: *** [gvim.exe] Error 1
>>  >  >> --------------------
>>  >  >>
>>  >  >> Many thanks in advance
>>  >  >
>>  >  > I suspect the blowfish.c and sha256.c files are missing from the
>>  >  > Makefile. Which Makefile were you using?
>>  >  >
>>  >
>>  > I'm using Make_ming.mak and it also misses from Make_cyg.mak
>>
>> If I include blowfish.c and sha256.c I get:
>>
>> --------------------
>> ...
>> blowfish.c:24: error: syntax error before "uint32_t"
>> blowfish.c:26: error: syntax error before '}' token
>> blowfish.c:39: error: syntax error before '*' token
>> blowfish.c:41: error: syntax error before "ipa"
> [...]
>> make: *** [gobjZ/blowfish.o] Error 1
>> --------------------
>
> Strange that these compilers don't define uint32_t.

They most likely do define it, but you have to include inttypes.h or
stdint.h to get that definition.  Vim currently doesn't do that
anywhere.  The patch I sent in the "Problem with vim7.3a and Perl"
thread includes those header files based on configure checks.  Not sure
how you want to handle it for non-configure systems.

--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[hidden email]>

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Chris Sutcliffe-2
In reply to this post by Bram Moolenaar
On 18 May 2010 16:29, Bram Moolenaar wrote:
>
> Strange that these compilers don't define uint32_t.  I'll add it in
> vim.h:

Unfortunately revision 2184 seems to have broken Cygwin compilation
with complaints of uint32_t being undefined.

Chris

--
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Compiling vim 7.3 failed on Win XP with mingw

Bram Moolenaar
In reply to this post by James Vega-3

James Vega wrote:

> On Tue, May 18, 2010 at 4:29 PM, Bram Moolenaar <[hidden email]> wrote:
> >
> > Cesar Romani wrote:
> >
> >> On 18/05/2010 07:37 a.m., Cesar Romani wrote:
> >>  > On 18/05/2010 03:43 a.m., Bram Moolenaar wrote:
> >>  >  >
> >>  >  > Cesar Romani wrote:
> >>  >  >
> >>  >  >> I got following error:
> >>  >  >>
> >>  >  >> --------------------
> >>  >  >> gobjZ/ex_docmd.o:ex_docmd.c:(.text+0x1116c): undefined reference to
> >>  >  >> `blowfish_self_test'
> >>  >  >> gobjZ/fileio.o:fileio.c:(.text+0x704f): undefined reference to
> >>  >  >> `blowfish_self_test'
> >>  >  >> [...]
> >>  >  >> gobjZ/option.o:option.c:(.text+0x54ac): undefined reference to
> >>  >  >> `blowfish_self_test'
> >>  >  >> collect2: ld returned 1 exit status
> >>  >  >> make: *** [gvim.exe] Error 1
> >>  >  >> --------------------
> >>  >  >>
> >>  >  >> Many thanks in advance
> >>  >  >
> >>  >  > I suspect the blowfish.c and sha256.c files are missing from the
> >>  >  > Makefile. Which Makefile were you using?
> >>  >  >
> >>  >
> >>  > I'm using Make_ming.mak and it also misses from Make_cyg.mak
> >>
> >> If I include blowfish.c and sha256.c I get:
> >>
> >> --------------------
> >> ...
> >> blowfish.c:24: error: syntax error before "uint32_t"
> >> blowfish.c:26: error: syntax error before '}' token
> >> blowfish.c:39: error: syntax error before '*' token
> >> blowfish.c:41: error: syntax error before "ipa"
> > [...]
> >> make: *** [gobjZ/blowfish.o] Error 1
> >> --------------------
> >
> > Strange that these compilers don't define uint32_t.
>
> They most likely do define it, but you have to include inttypes.h or
> stdint.h to get that definition.  Vim currently doesn't do that
> anywhere.  The patch I sent in the "Problem with vim7.3a and Perl"
> thread includes those header files based on configure checks.  Not sure
> how you want to handle it for non-configure systems.

For MS-Windows we can be quite sure that "unsigned int" is 32 bits.  Not
much of the MS-Windows API code works if that's not true.

Then again we have the problem that we can define uint32_t to unsigned
int when not on Unix, but if stdint.h is included indirectly we get the
redefine error...

Looks like we need to use uint32_T in the code and define it to uint32_t
or unsigned int in vim.h, depending on the system.

--
hundred-and-one symptoms of being an internet addict:
72. Somebody at IRC just mentioned a way to obtain full motion video without
    a PC using a wireless protocol called NTSC, you wonder how you never
    heard about it

 /// Bram Moolenaar -- [hidden email] -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php