Re: Problems building applications as user with a limited account

2007-09-29 Thread Angelo Graziosi


On Sat, 29 Sep 2007, d.henman wrote:

>
>... Try adding--x-includes=/usr/X11R6/include/X11
>to your configure arguments.

Now the problems seem desappeared. In any case, I will consider your
suggestion.


Many thanks,

Angelo.

--
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: llrint implementation in Cygwin

2007-09-29 Thread Diego Biurrun

Igor Peshansky wrote:

On Fri, 28 Sep 2007, Diego Biurrun wrote:


Tim Prince wrote:


Diego Biurrun wrote:


I have noticed that Cygwin does not implement llrint.  However,
llrint is part of C99 and not having it available makes some
applications (for example MPlayer and FFmpeg) fail to compile.

Are there any plans to implement llrint (in the near future)?


Perhaps if you would submit a patch to newlib, something may happen.


Telling me what newlib is would greatly help in this regard :-)


Newlib is the library that Cygwin uses for some standard functions (math
and otherwise).

(The only way to interpret this question is "what is the connection
between newlib and Cygwin", as a quick Google would have pointed you to
the newlib webpage).


Yes, I was not precise.  I was unsure about the relationship between 
Cygwin and newlib.



I understand that adding llrint to Cygwin is probably not hard at all
for somebody familiar with Cygwin.  However, I am not such a person and
I don't even have a Windows environment around to test any modifications
I might make.

We are about to make an MPlayer release and unfortunately it will not
compile on Cygwin due to the missing llrint.  I would appreciate to know
if this is going to get addressed so that I can put an appropriate
comment in the release notes.


What's wrong with adding llrint to your code (perhaps with a #define,
i.e.,

#define llrint my_llrint
typeof(llrint) my_llrint(...) { ... }

)?


It is ugly and it is a workaround for a problem that should be solved 
outside of FFmpeg.  Should every project using llrint add that 
workaround?  No, Cygwin should be fixed.


Diego


--
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: llrint implementation in Cygwin

2007-09-29 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Diego Biurrun on 9/29/2007 1:14 PM:
>> What's wrong with adding llrint to your code (perhaps with a #define,
>> i.e.,
>>
>> #define llrint my_llrint
>> typeof(llrint) my_llrint(...) { ... }
>>
>> )?
> 
> It is ugly and it is a workaround for a problem that should be solved
> outside of FFmpeg.  Should every project using llrint add that
> workaround?  No, Cygwin should be fixed.

What part of portable programming don't you get?  On platforms where
something is lacking, a portable program will use replacement functions to
make up for the platform limitations (autoconf is particularly helpful in
determining whether a platform has limitations so the replacement is not
used on platforms with more features, and gnulib is a good supply of a lot
of replacement functions).

And what part of open source programming don't you get?  If it bugs you,
write and submit a patch, so that cygwin WILL have llrint.  Cygwin won't
have it until someone takes the time to write it.

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

Eric Blake [EMAIL PROTECTED]
-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

iD8DBQFG/qkZ84KuGfSFAYARAuigAKCphfivrZirq6b8iJRaz13E/1XtIwCfQjti
8a7jKJGuYocaMLl3iSfDluA=
=dk7b
-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/



[ANNOUNCEMENT] New package: bsfilter 1.0.15 -- Bayesian spam filter with Japanese support

2007-09-29 Thread Jari Aalto
PACKAGE DESCRIPTION
===

Homepage: http://sourceforge.jp/projects/bsfilter
License : GPL

A spam filter which can distinguish spam mail from other mails. It can
read mails by three way: reads from normal file or stdin, retrieves
and stores from IMAP server, reads from POP server and passes to POP
client (POP proxy). Program also supports of Japanese text.

CHANGES SINCE LAST RELEASE
==

None.

INSTALL OR UPGRADE NOTES


Standard install.

CYGWIN INSTALLATION INFORMATION
===

To install this package, click on the "Install Cygwin now" link on the
 web page. This downloads setup.exe to your
system. Then, run setup and answer all of the questions. You'll find
the package listed in the "All" category. After installation, read the
documentation at directories:

/usr/share/doc//*
/usr/share/doc/Cygwin/.README

If you have questions or comments, please send them to the Cygwin
mailing list at .

CYGWIN-ANNOUNCE UNSUBSCRIBE INFO


This message has been sent to cygwin-announce list.

If you want to unsubscribe from the mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message. Send
email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com AT cygwin.com

More information on unsubscribing can be found:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at the above URL.

-- 
Welcome to FOSS revolution: we fix and modify until it shines

--
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: llrint implementation in Cygwin

2007-09-29 Thread Igor Peshansky
On Sat, 29 Sep 2007, Diego Biurrun wrote:

> Igor Peshansky wrote:
> > On Fri, 28 Sep 2007, Diego Biurrun wrote:
>
> > > I understand that adding llrint to Cygwin is probably not hard at
> > > all for somebody familiar with Cygwin.  However, I am not such a
> > > person and I don't even have a Windows environment around to test
> > > any modifications I might make.

Cygwin uses newlib as-is for most such functionality.  So, patching
newlib to include llrint would automatically make Cygwin support it.

Also, newlib builds on Linux just as well as it does on Windows...

> > > We are about to make an MPlayer release and unfortunately it will
> > > not compile on Cygwin due to the missing llrint.  I would appreciate
> > > to know if this is going to get addressed so that I can put an
> > > appropriate comment in the release notes.
> >
> > What's wrong with adding llrint to your code (perhaps with a #define,
> > i.e.,
> >
> > #define llrint my_llrint
> > typeof(llrint) my_llrint(...) { ... }
> >
> > )?
>
> It is ugly and it is a workaround for a problem that should be solved
> outside of FFmpeg.  Should every project using llrint add that
> workaround?  No, Cygwin should be fixed.

Fair enough.  I agree that it's ugly, but ultimately it's your call --
whether you want your project to compile on Cygwin or whether you want to
require the feature that's missing and accept that Cygwin compilation will
be broken for a while.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: llrint implementation in Cygwin

2007-09-29 Thread Diego Biurrun

Igor Peshansky wrote:

On Sat, 29 Sep 2007, Diego Biurrun wrote:


Igor Peshansky wrote:


On Fri, 28 Sep 2007, Diego Biurrun wrote:



I understand that adding llrint to Cygwin is probably not hard at
all for somebody familiar with Cygwin.  However, I am not such a
person and I don't even have a Windows environment around to test
any modifications I might make.


Cygwin uses newlib as-is for most such functionality.  So, patching
newlib to include llrint would automatically make Cygwin support it.

Also, newlib builds on Linux just as well as it does on Windows...


OK, that's useful information, thank you.  In the unlikely event that I 
find some time to dedicate to this I might actually be motivated to have 
a go at this.



We are about to make an MPlayer release and unfortunately it will
not compile on Cygwin due to the missing llrint.  I would appreciate
to know if this is going to get addressed so that I can put an
appropriate comment in the release notes.


What's wrong with adding llrint to your code (perhaps with a #define,
i.e.,

#define llrint my_llrint
typeof(llrint) my_llrint(...) { ... }

)?


It is ugly and it is a workaround for a problem that should be solved
outside of FFmpeg.  Should every project using llrint add that
workaround?  No, Cygwin should be fixed.


Fair enough.  I agree that it's ugly, but ultimately it's your call --
whether you want your project to compile on Cygwin or whether you want to
require the feature that's missing and accept that Cygwin compilation will
be broken for a while.


llrint is required, so I guess Cygwin compilation will indeed be broken 
for a while.  We don't add OS-specific workarounds to FFmpeg.


Diego


--
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: llrint implementation in Cygwin

2007-09-29 Thread Christopher Faylor
On Sat, Sep 29, 2007 at 10:20:23PM +0200, Diego Biurrun wrote:
> llrint is required, so I guess Cygwin compilation will indeed be broken for 
> a while.  We don't add OS-specific workarounds to FFmpeg.

So what other kinds of workarounds do you add?

cgf

--
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: llrint implementation in Cygwin

2007-09-29 Thread Diego Biurrun

Christopher Faylor wrote:

On Sat, Sep 29, 2007 at 10:20:23PM +0200, Diego Biurrun wrote:

llrint is required, so I guess Cygwin compilation will indeed be broken for 
a while.  We don't add OS-specific workarounds to FFmpeg.


So what other kinds of workarounds do you add?


Workarounds for broken variants of the many multimedia formats we 
support for example.


Diego


--
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: llrint implementation in Cygwin

2007-09-29 Thread Charles Wilson

Diego Biurrun wrote:

llrint is required, so I guess Cygwin compilation will indeed be broken 
for a while.  We don't add OS-specific workarounds to FFmpeg.


I call shenanigans.  The libavcodec directory has entirely separate 
subdirs for different processors -- platform specificity is BUILT IN to 
the ffmpeg source tree.  Second, common.h contains compiler-specific 
workarounds:


#ifndef av_always_inline
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && 
__GNUC_MINOR__ > 0)

#define av_always_inline __attribute__((always_inline)) inline
#else
#define av_always_inline inline
#endif
#endif

to account for gcc-specific behavior. That file ALSO contains a 
half-dozen implementations of read_time depending on which 
microprocessor architecture is in use.


internal.h has this:

// Use rip-relative addressing if compiling PIC code on x86-64.
#if defined(__MINGW32__) || defined(__CYGWIN__) || \
defined(__OS2__) || (defined (__OpenBSD__) && !defined(__ELF__))
#if defined(ARCH_X86_64) && defined(PIC)
#define MANGLE(a) "_" #a"(%%rip)"
#else
#define MANGLE(a) "_" #a
#endif
#else
#if defined(ARCH_X86_64) && defined(PIC)
#define MANGLE(a) #a"(%%rip)"
#elif defined(__APPLE__)
#define MANGLE(a) "_" #a
#else
#define MANGLE(a) #a
#endif
#endif

which looks pretty darn OS-specific to me.  (__CYGWIN__? __MINGW32__? 
__OS2__?)


Oh, and lookee here, in the same file:

#ifndef HAVE_LRINTF
/* XXX: add ISOC specific test to avoid specific BSD testing. */
/* better than nothing implementation. */
/* btw, rintf() is existing on fbsd too -- alex */
static av_always_inline long int lrintf(float x)
{
return (int)(rint(x));
}
#endif /* HAVE_LRINTF */

a replacement function lrintf() that is activated only when a configure 
test determines that lrintf doesn't exist and therefore neglects to 
define HAVE_LRINTF


So, we have:
  architecture-specific workarounds
  compiler-specific workarounds
  OS-specific workarounds
  AND capability-specific (!HAVE_FOO) workarounds

All god's chillins gots workaround code. "We don't add OS-specific 
workarounds", indeed...


--
Chuck

--
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/



Bug In Cygwin For Vista Setup Postinstall post-textmf.sh

2007-09-29 Thread Thomas Dineen

Gentle People:

  I have found a bug actually a hang condition when I attempt to
run Setup for Cygwin on my Toshiba Satellite with MS Vista
with all current MS Windows updates installed.

  The hang occurs in the "Running" section of Setup on the file:
/etc/postinstall/post-texmf.sh

   From what I can tell I am running the current version of Cygwin
Version 1.5.24-2.

  This hang prevents Setup from finishing.

   What is the best way to fix this?

   BTW: I did install successfully on my win2k machine.
Great Software once it is installed.

Thanks for the help.
Thomas Dineen
[EMAIL PROTECTED]


--
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/



Problems with freshclam

2007-09-29 Thread Angelo Graziosi

Using freshclam.exe (from clamav-0.91.2-1), now gives these errors:

$ fresclam.exe
ERROR: Please edit the example config file /etc/freshclam.conf.
ERROR: Please edit the example config file /etc/clamd.conf.
ERROR: Can't parse the config file /etc/clamd.conf

It worked fine until a few days ago.


In /etc the file are:

$ ls -lrt /etc/*clam*

-rwxrwx---+ 1 user Administrators 3620 Sep 27 22:46 /etc/freshclam.conf
-rwxrwx---+ 1 user Administrators 9174 Sep 30 01:19 /etc/clamd.conf


Any idea?


TIA,

  Angelo.

--
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/



using a USB flash mem device

2007-09-29 Thread Tom Hall

I got this nice little Sandisk "sansa express" MP3 player that plugs into the
USB port on my XP machine.

Unlike other USB devices I've used, Windows doesn't give this thing a drive
letter, but does something else; it shows up on the "explorer" window and kind
of acts like a drive there, but it doesn't show up in the /cygdrive directory.

Is there a way I access this with cygwin as if it were a drive ?

- Tom



--
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: Problems with freshclam

2007-09-29 Thread d.henman

I have the same version but have not encountered the problem you mention.

I have:
ls -l /etc/*clam*
-rwx-- 1 djh Users 9293 Jun 28 09:22 /etc/clamd.conf
-rwx-- 1 djh Users 3619 Jun 28 09:13 /etc/freshclam.conf

freshclam.conf is probably the same as yours, but our clamd.conf file sizes
are 119 bytes different.  I don't recall ever doing anything to it

Maybe try download a new freshclam.conf file.

Darel


> $ fresclam.exe
> ERROR: Please edit the example config file /etc/freshclam.conf.
> ERROR: Please edit the example config file /etc/clamd.conf.
> ERROR: Can't parse the config file /etc/clamd.conf
> 
> It worked fine until a few days ago.
> 
> In /etc the file are:
> 
> $ ls -lrt /etc/*clam*
> 
> -rwxrwx---+ 1 user Administrators 3620 Sep 27 22:46 /etc/freshclam.conf
> -rwxrwx---+ 1 user Administrators 9174 Sep 30 01:19 /etc/clamd.conf
> 
 

--
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: Problems with freshclam

2007-09-29 Thread René Berber
Angelo Graziosi wrote:

> Using freshclam.exe (from clamav-0.91.2-1), now gives these errors:
> 
> $ fresclam.exe ERROR: Please edit the example config file
> /etc/freshclam.conf. ERROR: Please edit the example config file
> /etc/clamd.conf. ERROR: Can't parse the config file /etc/clamd.conf
> 
> It worked fine until a few days ago.
> 
> In /etc the file are:
> 
> $ ls -lrt /etc/*clam*
> 
> -rwxrwx---+ 1 user Administrators 3620 Sep 27 22:46 /etc/freshclam.conf 
> -rwxrwx---+ 1 user Administrators 9174 Sep 30 01:19 /etc/clamd.conf
> 
> Any idea?

Edit the file and comment out the "Example" as the instructions above it say,
then add your favorite options... closest db server.

When did you install version 0.91.2?  The post-installer probably erased your
original configuration, which is a bug, just make sure before reporting it.
-- 
René Berber


--
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/