[GnuWin32-Users] mingw-users@lists.sourceforge.net

2005-05-05 Thread Lloyd Dupont
I'm tring to compile a very simple test program using libarchive (joined as 
attached file).
apparently I also need libgw32c which define correct header and structure 
required by libarchive while developing
I could download them both from there:
http://gnuwin32.sourceforge.net/packages/
==>
http://gnuwin32.sourceforge.net/packages/libarchive.htm
http://gnuwin32.sourceforge.net/packages/libgw32c.htm

I was not able to install correctly libgw32c, I mean whatever I do I had 
plenty of error message during the compilation (with some error in the 
system header introduced by libgw32c).
-- error like that ---
c:/GNUstep/Development/msys/1.0/mingw/include/winx/stdiox.h: In function 
`__flbf':
c:/GNUstep/Development/msys/1.0/mingw/include/winx/stdiox.h:64: structure 
has no member named `_flag'
c:/GNUstep/Development/msys/1.0/mingw/include/winx/stdiox.h: In function 
`__fpending':
c:/GNUstep/Development/msys/1.0/mingw/include/winx/stdiox.h:69: structure 
has no member named `_ptr'
 continued 


If I try without libgw32c my program compile but fail. for some reason one 
archive_write_data fail with either:
Numeric group ID too large: Result too large
or
GZip compression failed

depending wether or not I use GZip compression or not.
As I'm thining the problem *might* comes from 'struct stat' I try define a 
custome one which fit the form I would expect.
but still got the same errors...

I'm quite at loss, could anyone provide some guidance? or link? or whatever? 
#define __GW32__ 1
#include 
#include 
#include 
#include 
#include 
#include 
//typedef long uid_t;
//typedef long gid_t;
#include 
#include 
#include 
#define DEBUG(x) printf("%s:%d(:%s)   %s =>%d\terr:%s\n", __FILE__, __LINE__, 
__FUNCTION__, #x, x, archive_error_string(a))
static void write_archive();
// gcc libarchive.c -o a.exe -L. -larchive1 -lgw32c  && a
// gcc libarchive.c -o a.exe -L. -larchive1  && a
main()
{
write_archive();
}
/* Structure describing file characteristics.  */
struct stat2
 {
   /* These are the members that POSIX.1 requires.  */
   unsigned __int32 st_mode;/* File mode.  */
unsigned __int32 st_ino;/* File serial number.  */
   unsigned __int64 st_dev; /* Device containing the file.  */
   unsigned __int32 st_nlink;   /* Link count.  */
   unsigned __int32 st_uid; /* User ID of the file's owner.  */
   unsigned __int32 st_gid; /* Group ID of the file's group.  */
   unsigned __int32 st_size;/* Size of file, in bytes.  */
   __int32 st_atime;/* Time of last access.  */
   __int32 st_mtime;/* Time of last modification.  */
   __int32 st_ctime;/* Time of last status change.  */
   /* This should be defined if there is a `st_blksize' member.  */
#undef  _STATBUF_ST_BLKSIZE
 };
static void write_archive()
{
	char data[] = "Lloyd is Great!";
	int len = sizeof(data);
	
	// create an archive
	struct archive * a = archive_write_new();
	DEBUG(archive_write_set_compression_gzip(a));
	DEBUG(archive_write_set_format_ustar(a));
	DEBUG(archive_write_open_file(a, "foo.tar.gz"));
	
	struct stat2 st; // some stat for the entries
	//stat("libarchive.c", &st);
	st.st_mode = S_IFREG|0666;
	st.st_uid = 0; //getuid();
	st.st_gid = -1; //getgid();
	//st.st_blocks = 32;
	//st.st_blksize = 4096;
	st.st_nlink = 1;
	
	// create an entry
	struct archive_entry * entry = archive_entry_new();
	st.st_size = len;
	archive_entry_copy_stat(entry, (struct stat *) &st);
	archive_entry_set_pathname(entry, "grearg.txt");
	archive_entry_set_size(entry, len);
	DEBUG(archive_write_header(a, entry));
	
	// put some data in the entrty
	DEBUG(archive_write_data(a, data, len)); 
	archive_entry_free(entry);
	
	DEBUG(archive_write_close(a));
	archive_write_finish(a); // done
}



[GnuWin32-Users] [SourceForge.net Release] gnuwin32 : cygutils

2005-05-05 Thread SourceForge.net
Project: GnuWin32  (gnuwin32)
Package: cygutils
Date   : 2005-05-05 23:09

Project "GnuWin32" ('gnuwin32') has released the new version of package 
'cygutils'.
You can download it from SourceForge.net by following this link:

or browse Release Notes and ChangeLog by visiting this link:
 

You receive this email because you requested to be notified when new versions
of this package were released. If you don't wish to be notified in the future,
please login to SourceForge.net and click this link:

If you lost your SourceForge.net login name or password, refer to this document:


Note that you may receive this message indirectly via one of your mailing list
subscriptions. Please review message headers before reporting unsolicited
mailings.


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-announce


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: serial port

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3136537
By: nobody

You can check the samples from
 http://chbhand.sourceforge.net/

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] serial port

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3136353
By: nobody

i don't know how to create the functions on a win32 C++ program to comunicate
a microcontroller  with the computer

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Getting grep to recurse a dir tree & pipi

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3135706
By: mdlueck

Quotes did it, and on Win32 they need to be double and not single. Single send
grep off into CPU eating lala land. So, a working syntax to share...

grep -ir --include="*.inf" oem .

Case insensitive, recurse, where filespec is *.inf looking for oem and start
looking in the current directory.

Thanks!
Michael

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Getting grep to recurse a dir tree & pipi

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3135572
By: keithmarshall

The --include option isn't supported by the MSYS grep which I use, (v2.4.2),
but on my Linux box, (Mandrake 8.2, grep 2.5f),

grep -r --include='*.c' GNU groff-working

displays the lines from only *.c files, in my groff source tree.  You might
need to quote the fileproto on Windoze too -- you certainly do on Linux, if
it contains wildcards.

If you do revert to the find command, as I suggested earlier, the -H option
to grep might be useful, i.e.

find dir -iname 'fileproto' -exec grep -H regex {} \;

HTH.

Keith.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Getting grep to recurse a dir tree & pipi

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3135500
By: mdlueck

I found there was a newer build of grep released to fix the piping issue, I
have updated to that version. That problem is now resolved.

Michael

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Getting grep to recurse a dir tree & pipi

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3135487
By: mdlueck

Well I guess I got t used to IBM's Employee Written / open source grep for
OS/2 when it comes to recurse and fileproto as it had a shorter / direct syntax.

Anyway, I was able to get an open (*) recurse working. Now about getting a 
fileproto
working. It looks like this grep supports the following options which makes
calling find not necessary.

-r, --recursive   equivalent to --directories=recurse
--include=PATTERN files that match PATTERN will be examined
--exclude=PATTERN files that match PATTERN will be skipped.

But adding --include=*.inf for example results in no matches vs it matching
in inf files and non-inf files alike.

I guess I will open a bug about the piping problem.

Thanks!
Michael

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Getting grep to recurse a dir tree & pipi

2005-05-05 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3135283
By: keithmarshall

grep -r regex dir

If you want grep to recurse into a directory tree, tell it the top level 
directory
of the tree, (or subtree) you are interested in, rather than a file name
prototype.

If you want to restrict it to specific file name prototypes use:

find dir -iname 'fileproto' -exec grep regex {} \;

Can't comment on your piping problem -- I use MSYS grep, which doesn't have it.

HTH.

Keith.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users