gettext 0.14.5 - some warnings on compiling

View: New views
7 Messages — Rating Filter:   Alert me  

gettext 0.14.5 - some warnings on compiling

by -VASKO- :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

===================================================================
./l10nflist.c: In function `_nl_make_l10nflist':
./l10nflist.c:343: warning: assignment makes pointer from integer without a cast
===================================================================
../../gettext-runtime/intl/l10nflist.c: In function `_nl_make_l10nflist':
../../gettext-runtime/intl/l10nflist.c:343: warning: assignment makes pointer from integer without a cast
===================================================================
Making all in libgrep
dfa.c: In function `parse_bracket_exp_mb':
dfa.c:580: warning: comparison is always false due to limited range of data type
dfa.c:615: warning: comparison is always true due to limited range of data type
===================================================================
In file included from regex.c:582:
regex.c: In function `byte_regex_compile':
regex.c:3211: warning: comparison is always true due to limited range of data type
===================================================================

I get warnings listed above when compiling gettext 0.14.5-1. I found fix for l10nflist.c here:

http://gcc.gnu.org/ml/gcc/2006-09/msg00646.html

But what about other warnings? I know its appeared because sizeof(wchar_t) on Linux is 4, but on Windows is 2.
Anybody have fixes for these warnings? Maybe I can ignore them? Any ideas or comments? Can you help me?
Thanks a lot.

Re: gettext 0.14.5 - some warnings on compiling

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to -VASKO- on 1/25/2007 6:22 AM:
> ===================================================================
> ./l10nflist.c: In function `_nl_make_l10nflist':
> ./l10nflist.c:343: warning: assignment makes pointer from integer without a
> cast

Consider upgrading.  The latest version of gettext is 0.16.1.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFuLCT84KuGfSFAYARAjcnAJ9NnMPEMyPrnbII/XmrgCAWom/GtgCeP5AY
qSPi9UcDVQ5uVPVkdnrhBs8=
=C6h6
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: gettext 0.14.5 - some warnings on compiling

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 1/25/2007 6:28 AM:
> According to -VASKO- on 1/25/2007 6:22 AM:
>> ===================================================================
>> ./l10nflist.c: In function `_nl_make_l10nflist':
>> ./l10nflist.c:343: warning: assignment makes pointer from integer without a
>> cast
>
> Consider upgrading.  The latest version of gettext is 0.16.1.
>

Or for that matter, explain why you need to compile from source.  Cygwin
comes with gettext 0.15 precompiled, so that you need not worry about
compiling it yourself.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFuLE484KuGfSFAYARAoveAKCgH8NL/mX0/lN2z0fdwux/LzBSngCffiKh
h8VYVo4+rF9RKXXEWWD7WPc=
=wnDc
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: gettext 0.14.5 - some warnings on compiling

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 1/25/2007 6:31 AM:
>
> Or for that matter, explain why you need to compile from source.  Cygwin
> comes with gettext 0.15 precompiled, so that you need not worry about
> compiling it yourself.
>

I will add this - gettext 0.16.1 built just fine for me out of the box
into /usr/local, but I don't know if I am missing anything important from
Chuck's detailed procedure for getting a release-worthy version into /usr.
 I also know that Bruno has stated that 0.15 is incompatible with automake
1.10, so building coreutils or m4 from CVS requires gettext 0.16 or
greater.  But no pressure on getting a new release made, Chuck :)

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFuLfU84KuGfSFAYARAi24AJsHVgAHpzW5ygfLS6OMc2rUXyieVgCfT/E/
YRv7sjL1ECxfqObfiduqdM8=
=3vRR
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Parent Message unknown Re: gettext 0.14.5 - some warnings on compiling

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE - redirected to the list

According to VASKO on 1/25/2007 7:26 AM:

> Hello Eric,
>
> Thursday, January 25, 2007, 4:31:36 PM, you wrote:
>
>>>> ===================================================================
>>>> ./l10nflist.c: In function `_nl_make_l10nflist':
>>>> ./l10nflist.c:343: warning: assignment makes pointer from integer without a
>>>> cast
>>> Consider upgrading.  The latest version of gettext is 0.16.1.
>>>
>
> EB> Or for that matter, explain why you need to compile from source.  Cygwin
> EB> comes with gettext 0.15 precompiled, so that you need not worry about
> EB> compiling it yourself.
>
> I  try to compile VideoLAN (aka VLC media player) Cygwin-based version
> from  SVN.  It  required gettext 0.14.5. I just run 'make src' command
> and  download  from  http://ftp.gnu.org/gnu  automatically stared with
> curl.  Don't  ask  me,  why.  Patch for l10nflist.c is trivial, I just
> change  some  arguments types to 'const char*' instead of 'char*'. But
> other warnings still appears in gettext 0.16.1 too. I am not sure that
> 'comparison  is  always  true'  (or false) is absolutely safe for main
> program stability.
>
>

It depends on whether the warning was masking a bug or not.  But you are
better off reporting such bugs to the upstream maintainers - oftentimes,
that warning indicates a true bug where someone has compiled on Linux and
used wchar_t when they should have used wint_t, but other times, it is
benign.  What makes this particular error annoying is that there is no way
(except in CVS gcc) to disable it when it is a false positive, and
restructuring the comparison to avoid the warning can sometimes be rather
difficult.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFuV2h84KuGfSFAYARAofNAJ0Tl2dR97HWFp2o4bRd+UQeJa4LogCbB1BJ
vsdKxtOHt5LK6d6/5FVhkH0=
=LBeb
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: gettext 0.14.5 - some warnings on compiling

by -VASKO- :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eric Blake-1 wrote:
It depends on whether the warning was masking a bug or not.  But you are
better off reporting such bugs to the upstream maintainers - oftentimes,
that warning indicates a true bug where someone has compiled on Linux and
used wchar_t when they should have used wint_t, but other times, it is
benign.  What makes this particular error annoying is that there is no way
(except in CVS gcc) to disable it when it is a false positive, and
restructuring the comparison to avoid the warning can sometimes be rather
difficult.
So, to whom I should report about these warnings to get skilled suggestions for fast fixing or confirmations for safely ignoring it? Anybody can really help ? Thanks a lot.

Re: gettext 0.14.5 - some warnings on compiling

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to -VASKO- on 1/26/2007 5:54 AM:
>
> So, to whom I should report about these warnings to get skilled suggestions
> for fast fixing or confirmations for safely ignoring it? Anybody can really
> help ? Thanks a lot.
>

When building a package from the upstream source, the best bet for
compilation questions is asking the upstream source maintainer (ie. by not
using the precompiled cygwin version, you have moved beyond the realm of
cygwin-specific questions that this list covers).  In this case, the
upstream source for gettext is tracked on the mailing list bug-gnu-utils
AT gnu DOT org.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFug7384KuGfSFAYARAqsiAJ9r1B0kXwBa+VY5YV5F1x9FB7utYgCgw5uB
JJDhS8oV5jQJQI9LVPdXtL8=
=HHmg
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/