Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Parsing plain text emails to use the subject line as the title

From: Troy Wical <troy(at)not-real.wical.com>
Date: Tue Mar 23 2010 - 02:44:01 GMT
On Mar 22, 2010, at 8:08 PM, Peter Karman wrote:

>
> % sudo make clean && perl Makefile.PL && make test
>
> does that help? Not sure what the error was since you didn't include  
> a message...

Yup, that helped. I had to remove the 'make' command to get it to work  
though because I continued to get the following error:

#######################################################
~/swish-3]# make clean && perl Makefile.PL && make test
make: don't know how to make clean. Stop
#######################################################

So I ran it without 'make'
The build had a lot of warnings in it, so I am including the output  
from the build. Not sure if they are issues with my system locally or  
not.

#######################################################
#######################################################
~/swish-3]# perl Makefile.PL && make test
using libswish3-config /usr/local/bin/libswish3-config
using xml2-config /usr/local/bin/xml2-config
Checking if your kit is complete...
Looks good
Writing Makefile for SWISH::3
cp lib/SWISH/3.pm blib/lib/SWISH/3.pm
touch 3.xs
/usr/bin/perl /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp  - 
typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap   
3.xs > 3.xsc && mv 3.xsc 3.c
cc -c  -g -O2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/ 
local/include  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" - 
DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe - 
Wdeclaration-after-statement -I/usr/local/include -O2 -fno-strict- 
aliasing -pipe    -DVERSION=\"0.05\"  -DXS_VERSION=\"0.05\" -DPIC - 
fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE"   3.c
In file included from 3.xs:11:
xs_helpers.c: In function 'sp_Stash_destroy':
xs_helpers.c:132: warning: ISO C90 forbids mixed declarations and code
xs_helpers.c: In function 'sp_bless_ptr':
xs_helpers.c:399: warning: cast to pointer from integer of different  
size
xs_helpers.c: In function 'sp_handler':
xs_helpers.c:661: warning: cast from pointer to integer of different  
size
3.c: In function 'XS_SWISH__3_slurp':
3.c:217: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3_parse_file':
3.c:263: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3_parse_buffer':
3.c:301: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3_parse_fh':
3.c:335: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__set_or_get':
3.c:372: warning: cast to pointer from integer of different size
3.xs:194: warning: ISO C90 forbids mixed declarations and code
3.xs:214: warning: cast to pointer from integer of different size
3.xs:225: warning: cast from pointer to integer of different size
3.xs:242: warning: cast to pointer from integer of different size
3.xs:253: warning: cast from pointer to integer of different size
3.xs:268: warning: cast to pointer from integer of different size
3.xs:277: warning: cast from pointer to integer of different size
3.xs: In function 'XS_SWISH__3_DESTROY':
3.xs:344: warning: cast to pointer from integer of different size
3.xs:349: warning: cast from pointer to integer of different size
3.c: In function 'XS_SWISH__3_ref_cnt':
3.c:632: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3_tokenize':
3.c:763: warning: cast to pointer from integer of different size
3.xs:484: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3_tokenize_native':
3.c:835: warning: cast to pointer from integer of different size
3.xs:537: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__TokenIterator_next':
3.c:942: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__TokenIterator_DESTROY':
3.c:977: warning: cast to pointer from integer of different size
./XS/TokenIterator.xs:33: warning: cast from pointer to integer of  
different size
3.c: In function 'XS_SWISH__3__Token_value':
3.c:1032: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_meta':
3.c:1073: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_meta_id':
3.c:1106: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_context':
3.c:1136: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_pos':
3.c:1167: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_offset':
3.c:1198: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_len':
3.c:1229: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Token_DESTROY':
3.c:1259: warning: cast to pointer from integer of different size
./XS/Token.xs:98: warning: cast from pointer to integer of different  
size
3.c: In function 'XS_SWISH__3__xml2Hash_get':
3.c:1310: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__xml2Hash_set':
3.c:1346: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__xml2Hash_keys':
3.c:1378: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaNameHash_get':
3.c:1417: warning: cast to pointer from integer of different size
./XS/MetaNameHash.xs:16: warning: cast from pointer to integer of  
different size
3.c: In function 'XS_SWISH__3__MetaNameHash_set':
3.c:1451: warning: cast to pointer from integer of different size
3.c:1458: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaNameHash_keys':
3.c:1486: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__PropertyHash_get':
3.c:1525: warning: cast to pointer from integer of different size
./XS/PropertyHash.xs:16: warning: cast from pointer to integer of  
different size
3.c: In function 'XS_SWISH__3__PropertyHash_set':
3.c:1559: warning: cast to pointer from integer of different size
3.c:1566: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__PropertyHash_keys':
3.c:1594: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaName_id':
3.c:1654: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaName_name':
3.c:1685: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaName_bias':
3.c:1716: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaName_alias_for':
3.c:1747: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__MetaName_DESTROY':
3.c:1782: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_id':
3.c:1823: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_name':
3.c:1854: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_ignore_case':
3.c:1885: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_type':
3.c:1916: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_verbatim':
3.c:1947: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_max':
3.c:1978: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_sort':
3.c:2009: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_presort':
3.c:2040: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_alias_for':
3.c:2071: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Property_DESTROY':
3.c:2106: warning: cast to pointer from integer of different size
./XS/Property.xs:112: warning: cast from pointer to integer of  
different size
./XS/Stash.xs: In function 'XS_SWISH__3__Stash_DESTROY':
./XS/Stash.xs:62: warning: cast from pointer to integer of different  
size
3.c: In function 'XS_SWISH__3__Data_s3':
3.c:2279: warning: cast to pointer from integer of different size
./XS/Data.xs:18: warning: cast from pointer to integer of different size
3.c: In function 'XS_SWISH__3__Data_config':
3.c:2320: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_property':
3.c:2358: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_metaname':
3.c:2395: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_properties':
3.c:2427: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_metanames':
3.c:2458: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_doc':
3.c:2493: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Data_tokens':
3.c:2530: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_mtime':
3.c:2566: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_size':
3.c:2597: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_nwords':
3.c:2628: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_encoding':
3.c:2663: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_uri':
3.c:2704: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_ext':
3.c:2745: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_mime':
3.c:2786: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_parser':
3.c:2827: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_action':
3.c:2868: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Doc_DESTROY':
3.c:2904: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Analyzer_new':
3.c:2943: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Analyzer__set_or_get':
3.c:2982: warning: cast to pointer from integer of different size
./XS/Analyzer.xs:35: warning: ISO C90 forbids mixed declarations and  
code
3.c: In function 'XS_SWISH__3__Analyzer_get_tokenize':
3.c:3028: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Analyzer_set_tokenize':
3.c:3058: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Analyzer_DESTROY':
3.c:3090: warning: cast to pointer from integer of different size
./XS/Analyzer.xs:84: warning: cast from pointer to integer of  
different size
3.c: In function 'XS_SWISH__3__Config_set_default':
3.c:3160: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Config__set_or_get':
3.c:3193: warning: cast to pointer from integer of different size
./XS/Config.xs:53: warning: ISO C90 forbids mixed declarations and code
./XS/Config.xs:60: warning: cast from pointer to integer of different  
size
./XS/Config.xs:68: warning: cast from pointer to integer of different  
size
./XS/Config.xs:76: warning: cast from pointer to integer of different  
size
./XS/Config.xs:84: warning: cast from pointer to integer of different  
size
./XS/Config.xs:92: warning: cast from pointer to integer of different  
size
./XS/Config.xs:100: warning: cast from pointer to integer of different  
size
./XS/Config.xs:108: warning: cast from pointer to integer of different  
size
3.c: In function 'XS_SWISH__3__Config_debug':
3.c:3284: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Config_add':
3.c:3314: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Config_delete':
3.c:3349: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Config_write':
3.c:3405: warning: cast to pointer from integer of different size
3.c: In function 'XS_SWISH__3__Config_DESTROY':
3.c:3435: warning: cast to pointer from integer of different size
./XS/Config.xs:184: warning: cast from pointer to integer of different  
size
xs_helpers.c: In function 'sp_Stash_replace':
xs_helpers.c:114: warning: passing argument 2 of 'sp_hv_replace'  
discards qualifiers from pointer target type
Running Mkbootstrap for SWISH::3 ()
chmod 644 3.bs
rm -f blib/arch/auto/SWISH/3/3.so
LD_RUN_PATH="/usr/local/lib:/usr/lib" cc  -shared  -L/usr/local/lib  
3.o  -o blib/arch/auto/SWISH/3/3.so 	  -L/usr/local/lib -lswish3 -L/ 
usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm  	
chmod 755 blib/arch/auto/SWISH/3/3.so
cp 3.bs blib/arch/auto/SWISH/3/3.bs
chmod 644 blib/arch/auto/SWISH/3/3.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-sanity.t .........
t/00-sanity.t ......... 1/3 $s3 refcount = 1


t/00-sanity.t ......... ok
t/00-version.t ........
t/00-version.t ........ 1/1 # 0.1.


t/00-version.t ........ ok
t/01slurp.t ...........
t/01slurp.t ........... 1/4

t/01slurp.t ........... ok
t/02xml2_version.t ....
t/02xml2_version.t .... 1/3 # libxml2 version 2.6.32
# libswish3 version 0.1.


t/02xml2_version.t .... ok
t/03parse_file.t ......
t/03parse_file.t ...... 1/202

t/03parse_file.t ...... ok
t/04subclass.t ........
t/04subclass.t ........ 1/201

t/04subclass.t ........ ok
t/05latin1.t ..........
t/05latin1.t .......... 1/102

t/05latin1.t .......... ok
t/06constants.t .......
t/06constants.t ....... 1/3

t/06constants.t ....... ok
t/07-refcnt.t .........
t/07-refcnt.t ......... 1/12

t/07-refcnt.t ......... ok
t/08-handler.t ........
t/08-handler.t ........ 1/4
t/08-handler.t ........ 3/4 default handler called
default handler called


t/08-handler.t ........ ok
t/09-mem.t ............
t/09-mem.t ............ 1/4

t/09-mem.t ............ ok
t/10tokenize.t ........
t/10tokenize.t ........ 1/6

t/10tokenize.t ........ ok
t/11get_set_parser.t ..
t/11get_set_parser.t .. 1/12

t/11get_set_parser.t .. ok
t/12-stash.t ..........
t/12-stash.t .......... 1/3

t/12-stash.t .......... ok
t/13-chained.t ........
t/13-chained.t ........ 1/3

t/13-chained.t ........ ok
t/14-config.t .........
t/14-config.t ......... 1/53

t/14-config.t ......... ok
t/15-analyzer.t .......
t/15-analyzer.t ....... 1/3

t/15-analyzer.t ....... ok
t/16-header.t .........
t/16-header.t ......... 1/5

t/16-header.t ......... ok
t/20metanames.t .......
t/20metanames.t ....... 1/28

t/20metanames.t ....... ok
t/21-get-stash.t ......
t/21-get-stash.t ...... 1/5

t/21-get-stash.t ...... ok
t/22-leak-trace.t .....

t/22-leak-trace.t ..... skipped: require Test::LeakTrace
t/pod-coverage.t ......

t/pod-coverage.t ...... skipped: Test::Pod::Coverage 1.04 required for  
testing POD coverage
t/pod.t ...............
t/pod.t ............... 1/1

t/pod.t ............... ok
All tests successful.
Files=23, Tests=658,  5 wallclock secs ( 0.48 usr  0.22 sys +  3.13  
cusr  0.64 csys =  4.48 CPU)
Result: PASS
#######################################################
#######################################################

Running just 'make' after all this, produced the following...

#######################################################
~/swish-3]# make
Manifying blib/man3/SWISH::3.3
#######################################################

Running the index command as previous, produced the same core dump.

Peace, Troy
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Mar 22 22:44:04 2010