bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I want to parse RFC822 header "Date:" field for an application


From: Andrew Lynch
Subject: I want to parse RFC822 header "Date:" field for an application
Date: Tue, 22 Oct 2002 16:23:17 -0700 (PDT)

Alain Magloire Wrote:

> 
> First, Thank you for your help.
> 
> I did search config.h and found that the above was
not
> defined.  I have attached my config.h for review. 
Why

You mean that
        HAVE_PROGRAM_INVOCATION_NAME
was not set, then this is good, then you should have
a lib/pin.c and lib/pin.o

# cd mailutils/lib
# gcc -DHAVE_CONFIG_H -E -I .. -I ../include pin.c

If things where ok you should see the definitions of
the variables.

> do you think the flag was not defined?  Is there a
bug

They should not be defined since it appears that on
cygwin
libc does not provide them.

> *************************
> 
> Well, it was a long weekend, but I finally made the
> make log as promised.  I defined
> HAVE_PROGRAM_INVOCATION_NAME  in config.h but it did
> not make much difference.  I am attaching my
config.h
> and the make log.  Does anyone know why this is
> breaking the Cygwin build?

It's the other way around, comment out the
HAVE_PRORAM_INVOCATION_NAME
to let lib/pin.c define the variables.

> 
> Thanks in advance for your help!
> 
> Andrew Lynch
> 
> PS, I gave it another try and was able to finally
trim
> out just the parse822.c routines and get them to
work
> so I can sort dates.  I'd rather just call on the
> library but that is still an option as a work
around.


If it is that all you need, then it should be
sufficient.

Sorry, I do not have a cygwin system to test.


*********************************

Hmmm.
Still no luck.  I went back to the original config.h
(without HAVE_PRORAM_INVOCATION_NAME) defined and
started the "make".  After it stopped I went back and
typed in the commands

# cd mailutils/lib
# gcc -DHAVE_CONFIG_H -E -I .. -I ../include pin.c

Here is a log of what happened and when I typed "make"
again here is a make log of that build.  Apparently
nothing changed...

Any ideas?

Thanks!

Andrew Lynch




__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
# 1 "pin.c"
 




# 1 "../config.h" 1
 
 

 


 

 
 

 
 

 


 



 
 

 
 

 


 
 

 
 

 



 



 



 



 



 



 



 



 


 


 


 


 


 
 

 


 
 

 
 

 


 


 


 
 

 


 
 

 
 

 


 


 


 


 
 

 
 

 
 

 
 

 
 

 
 

 


 
 

 


 
 

 


 


 
 

 
 

 
 

 
 

 
 

 
 

 
 

 


 


 
 

 
 

 
 

 
 

 


 


 
 

 


 
 

 


 


 


 


 


 


 


 
 

 


 
 

 


 


 


 

 

 


 

 

 


 


 


 


 


 


 

 

 



 


 
 

 


 
 

 


 
 

 


 
 

 


 
 

 


 


 


 


 


 


 
 

 


 


 





 

 


 
 

 
 

 
 

 
 

 


 
 

 
 

 
 

 
 

 
 

 
 

 


 


 



 


 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 



# 1 "/usr/include/paths.h" 1 3
 


















# 450 "../config.h" 2






















extern char *program_invocation_short_name;
extern char *program_invocation_name;








 



# 6 "pin.c" 2




char *program_invocation_short_name = 0;
char *program_invocation_name = 0;

make  all-recursive
make[1]: Entering directory `/home/andrew/mailutils'
Making all in include
make[2]: Entering directory `/home/andrew/mailutils/include'
Making all in mailutils
make[3]: Entering directory `/home/andrew/mailutils/include/mailutils'
Making all in gnu
make[4]: Entering directory `/home/andrew/mailutils/include/mailutils/gnu'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/andrew/mailutils/include/mailutils/gnu'
make[4]: Entering directory `/home/andrew/mailutils/include/mailutils'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/andrew/mailutils/include/mailutils'
make[3]: Leaving directory `/home/andrew/mailutils/include/mailutils'
make[3]: Entering directory `/home/andrew/mailutils/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/andrew/mailutils/include'
make[2]: Leaving directory `/home/andrew/mailutils/include'
Making all in m4
make[2]: Entering directory `/home/andrew/mailutils/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/andrew/mailutils/m4'
Making all in lib
make[2]: Entering directory `/home/andrew/mailutils/lib'
Making all in posix
make[3]: Entering directory `/home/andrew/mailutils/lib/posix'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/andrew/mailutils/lib/posix'
make[3]: Entering directory `/home/andrew/mailutils/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/andrew/mailutils/lib'
make[2]: Leaving directory `/home/andrew/mailutils/lib'
Making all in testsuite
make[2]: Entering directory `/home/andrew/mailutils/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/andrew/mailutils/testsuite'
Making all in mailbox
make[2]: Entering directory `/home/andrew/mailutils/mailbox'
Making all in include
make[3]: Entering directory `/home/andrew/mailutils/mailbox/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/andrew/mailutils/mailbox/include'
Making all in testsuite
make[3]: Entering directory `/home/andrew/mailutils/mailbox/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/andrew/mailutils/mailbox/testsuite'
make[3]: Entering directory `/home/andrew/mailutils/mailbox'
/bin/bash ../libtool --mode=link gcc -DSITE_VIRTUAL_PWDDIR=\"\" -g -O2   -o 
libmailbox.la -rpath /usr/local/lib -version-info 0:0:0 address.lo argcv.lo 
attachment.lo attribute.lo auth.lo body.lo debug.lo envelope.lo file_stream.lo 
filter.lo filter_rfc822.lo filter_trans.lo folder.lo folder_imap.lo 
folder_mbox.lo folder_mh.lo folder_pop.lo header.lo iterator.lo list.lo 
locker.lo mailbox.lo mailer.lo mapfile_stream.lo mbx_default.lo mbx_file.lo 
mbx_imap.lo mbx_mbox.lo mbx_mh.lo mbx_pop.lo md5.lo message.lo memory_stream.lo 
mime.lo monitor.lo mu_argp.lo mu_auth.lo mutil.lo muerror.lo muerrno.lo 
observer.lo parse822.lo property.lo registrar.lo sendmail.lo smtp.lo stream.lo 
system.lo tcp.lo ticket.lo url.lo url_file.lo url_imap.lo url_mbox.lo url_mh.lo 
url_path.lo url_pop.lo url_sendmail.lo url_smtp.lo wicket.lo getline.lo 
strndup.lo strnlen.lo strchrnul.lo argp-ba.lo argp-eexst.lo argp-fmtstream.lo 
argp-fs-xinl.lo argp-help.lo argp-parse.lo argp-pv.lo argp-pvh.lo argp-xinl.lo 
-lcrypt  -lpthread
rm -fr  .libs/libmailbox.dll.a
gcc -shared  .libs/address.o .libs/argcv.o .libs/attachment.o .libs/attribute.o 
.libs/auth.o .libs/body.o .libs/debug.o .libs/envelope.o .libs/file_stream.o 
.libs/filter.o .libs/filter_rfc822.o .libs/filter_trans.o .libs/folder.o 
.libs/folder_imap.o .libs/folder_mbox.o .libs/folder_mh.o .libs/folder_pop.o 
.libs/header.o .libs/iterator.o .libs/list.o .libs/locker.o .libs/mailbox.o 
.libs/mailer.o .libs/mapfile_stream.o .libs/mbx_default.o .libs/mbx_file.o 
.libs/mbx_imap.o .libs/mbx_mbox.o .libs/mbx_mh.o .libs/mbx_pop.o .libs/md5.o 
.libs/message.o .libs/memory_stream.o .libs/mime.o .libs/monitor.o 
.libs/mu_argp.o .libs/mu_auth.o .libs/mutil.o .libs/muerror.o .libs/muerrno.o 
.libs/observer.o .libs/parse822.o .libs/property.o .libs/registrar.o 
.libs/sendmail.o .libs/smtp.o .libs/stream.o .libs/system.o .libs/tcp.o 
.libs/ticket.o .libs/url.o .libs/url_file.o .libs/url_imap.o .libs/url_mbox.o 
.libs/url_mh.o .libs/url_path.o .libs/url_pop.o .libs/url_sendmail.o 
.libs/url_smtp.o .libs/wicket.o .libs/getline.o .libs/strndup.o .libs/strnlen.o 
.libs/strchrnul.o .libs/argp-ba.o .libs/argp-eexst.o .libs/argp-fmtstream.o 
.libs/argp-fs-xinl.o .libs/argp-help.o .libs/argp-parse.o .libs/argp-pv.o 
.libs/argp-pvh.o .libs/argp-xinl.o  -lcrypt -lpthread  -o 
.libs/cygmailbox-0.dll -Wl,--image-base=0x10000000 
-Wl,--out-implib,.libs/libmailbox.dll.a
Creating library file: .libs/libmailbox.dll.a
.libs/argp-help.o: In function `argp_state_help':
/home/andrew/mailutils/mailbox/argp-help.c:1697: undefined reference to 
`program_invocation_short_name'
.libs/argp-help.o: In function `argp_error':
/home/andrew/mailutils/mailbox/argp-help.c:1727: undefined reference to 
`program_invocation_short_name'
.libs/argp-help.o: In function `argp_failure':
/home/andrew/mailutils/mailbox/argp-help.c:1765: undefined reference to 
`program_invocation_short_name'
.libs/argp-parse.o: In function `argp_default_parser':
/home/andrew/mailutils/mailbox/argp-parse.c:123: undefined reference to 
`program_invocation_name'
/home/andrew/mailutils/mailbox/argp-parse.c:132: undefined reference to 
`program_invocation_name'
/home/andrew/mailutils/mailbox/argp-parse.c:132: undefined reference to 
`program_invocation_short_name'
/home/andrew/mailutils/mailbox/argp-parse.c:135: undefined reference to 
`program_invocation_short_name'
/home/andrew/mailutils/mailbox/argp-parse.c:140: undefined reference to 
`program_invocation_name'
.libs/argp-parse.o: In function `parser_init':
/home/andrew/mailutils/mailbox/argp-parse.c:608: undefined reference to 
`program_invocation_short_name'
.libs/argp-parse.o: In function `parser_parse_next':
/home/andrew/mailutils/mailbox/argp-parse.c:841: undefined reference to 
`getopt_long_only'
collect2: ld returned 1 exit status
make[3]: *** [libmailbox.la] Error 1
make[3]: Leaving directory `/home/andrew/mailutils/mailbox'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andrew/mailutils/mailbox'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andrew/mailutils'
make: *** [all] Error 2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]