From: Stephen W. <wo...@sw...> - 2011-09-24 15:06:06
|
Also fixed a minor type in branches/datastore/geocode_response/main.c and checked that into svn. So to answer my previous questions, pagc and geocode_response works built with THREE_SOURCE_IDS that was built without that option. http://imaptools.com:8080/cgi-bin/gc-tiger?methodName=GeocodeRequest&Version=1.1&InterpolationOffset=10.0&UnParsedAddress=&CompleteAddressNumber=11&CompleteStreetName=Radcliffe+Rd&CompleteStreetName2=&PlaceName=North+Chelmsford&StateName=MA&ZipCode=01863&CountryCode=US&ResponseFormat=XML Thanks for the help. My next step is to build a new instance that populates those fields. Thanks for the help, -Steve On 9/24/2011 1:44 AM, whi...@de... wrote: > Hi Steve : I posted changes for the below in revision 257. Thanks,<= w => > >> Hi Walter, >> >> build.c has some other problems also related to WITH_ALT_LEFT_RIGHT >> being set or not. >> >> at line 552 you have: >> >> #ifdef WITH_ALT_LEFT_RIGHT >> int stand_alt_macro_right ; /* 2011-08-13 new */ >> char unstandard_mac_alternate_right[ MAXSTRLEN ] ; /* 2011-08-13 new >> */ >> #else >> char unstandard_mac_alternate[ MAXSTRLEN ] ; /* 2008-07-30 new */ >> #endif >> >> But later at line 597 you have: >> >> error_code = read_unstandardized( sch_p , >> _alpha_table , >> alpha_row_num , >> &sides_to_do , >> &stand_alt_macro , >> #ifdef WITH_ALT_LEFT_RIGHT >> &stand_alt_macro_right , /* >> 2011-08-13 */ >> #endif >> house_address , >> check_dir , >> unstandard_mic , >> unstandard_mac_left, >> ( is_arc? unstandard_mac_right : >> NULL ) , >> unstandard_mac_alternate , /* >> 2008-07-30 */ >> #ifdef WITH_ALT_LEFT_RIGHT >> unstandard_mac_alternate_right , >> /* 2011-08-13 */ >> #endif >> unstandard_occupancy , >> official_buffers , >> official_fields , >> &off_cnt , >> err_p ) ; >> >> So this leaves unstandard_mac_alternate undefined up top if >> WITH_ALT_LEFT_RIGHT is define and referenced here regardless. So it >> compiles only when WITH_ALT_LEFT_RIGHT is not defined. >> >> And this also has the untermined #ifdef WITH_ALT_LEFT_RIGHT that I >> mentioned in the prior email. >> >> Hope this helps, >> -Steve >> >> >> On 9/23/2011 11:39 AM, Stephen Woodbridge wrote: >>> Hi Walter, >>> >>> That seems to have fixed the first two issues. At 734 the problem is the >>> colon following the "switch () :" just remove it. >>> >>> svn diff alpharef.c >>> Index: alpharef.c >>> =================================================================== >>> --- alpharef.c (revision 256) >>> +++ alpharef.c (working copy) >>> @@ -731,7 +731,7 @@ >>> case PROV : >>> #ifdef WITH_ALT_LEFT_RIGHT >>> /* 2011-08-17 : enable left_right for PROV */ >>> - switch ( cmp ) : >>> + switch ( cmp ) >>> { >>> case NO_COMPARISON : >>> break ; >>> >>> In pagc.h I commented out WITH_ALT_LEFT_RIGHT because I am build single >>> sided records: >>> >>> svn diff pagc.h >>> Index: pagc.h >>> =================================================================== >>> --- pagc.h (revision 256) >>> +++ pagc.h (working copy) >>> @@ -34,7 +34,7 @@ >>> #include<math.h> >>> #include "ds.h" >>> >>> -#define WITH_ALT_LEFT_RIGHT >>> +//#define WITH_ALT_LEFT_RIGHT >>> >>> /* 2009-07-21 : keep track of version >>> 2010-02-01 : increase to 0.3.0 >>> >>> I also show this random change in score.c: >>> >>> svn diff score.c >>> Index: score.c >>> =================================================================== >>> --- score.c (revision 256) >>> +++ score.c (working copy) >>> @@ -106,6 +106,7 @@ >>> >>> #ifdef DEFER >>> DS_Flag_t defer_bit = 0 ; >>> + DS_Score_t absent_score = 0.00 ; >>> DS_Score_t absent_match = 0.00 ; >>> DS_Score_t absent_unmatch = 0.00 ; >>> DS_Score_t present_norm = 0.00 ; >>> >>> And finally I'm now hitting an issue compiling build.c it looks like >>> there is an issue with an unclosed #ifdef blobk near the bottom. But I >>> also suspect that there may be an issue with WITH_ALT_LEFT_RIGHT not >>> being defined. >>> >>> woodbri@mappy:~/work/pagc/pagc/branches/datastore/pagclib$ make >>> /bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"pagc\" >>> -DPACKAGE_TARNAME=\"pagc\" -DPACKAGE_VERSION=\"0.4.0\" >>> -DPACKAGE_STRING=\"pagc\ 0.4.0\" >>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 >>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR="\"/usr/local/share/pagc\"" >>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-build.lo -MD >>> -MP -MF .deps/libpagc_la-build.Tpo -c -o libpagc_la-build.lo `test -f >>> 'build.c' || echo './'`build.c >>> gcc -DPACKAGE_NAME=\"pagc\" -DPACKAGE_TARNAME=\"pagc\" >>> -DPACKAGE_VERSION=\"0.4.0\" "-DPACKAGE_STRING=\"pagc 0.4.0\"" >>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 >>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR=\"/usr/local/share/pagc\" >>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-build.lo -MD >>> -MP -MF .deps/libpagc_la-build.Tpo -c build.c -fPIC -DPIC -o >>> .libs/libpagc_la-build.o >>> build.c:1008:1: error: unterminated #ifdef >>> build.c:987:1: error: unterminated #else >>> build.c: In function âbuild_rowâ: >>> build.c:1006: error: expected declaration or statement at end of input >>> build.c:1006: error: expected declaration or statement at end of input >>> make: *** [libpagc_la-build.lo] Error 1 >>> >>> Thanks, >>> -Steve >>> >>> On 9/23/2011 2:02 AM, whi...@de... wrote: >>>> Hi Steve : I fixed 242 and 262. I'm not grokking the one at 734, if >>>> there >>>> is one. >>>> >>>>> Hi Walter, >>>>> >>>>> I'm having a problem building pagc. >>>>> >>>>> cd ~/work/pagc/pagc/branches/datastore/ds >>>>> ./configure --with-norm=s --with-raw=d --with-sch=d --with-cache=f >>>>> make clean >>>>> make >>>>> sudo make install >>>>> sudo ldconfig >>>>> >>>>> cd ../pagclib >>>>> ./configure --disable-threads >>>>> vi makefile >>>>> # append to DEFS=... -DTHREE_SOURCE_IDS=1 >>>>> make clean >>>>> make >>>>> woodbri@mappy:~/work/pagc/pagc/branches/datastore/pagclib$ make >>>>> /bin/sh ./libtool --tag=CC --mode=compile gcc >>>>> -DPACKAGE_NAME=\"pagc\" >>>>> -DPACKAGE_TARNAME=\"pagc\" -DPACKAGE_VERSION=\"0.4.0\" >>>>> -DPACKAGE_STRING=\"pagc\ 0.4.0\" >>>>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>>>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>>>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>>>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>>>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>>>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DDEFER >>>>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR="\"/usr/local/share/pagc\"" >>>>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-alpharef.lo >>>>> -MD -MP -MF .deps/libpagc_la-alpharef.Tpo -c -o libpagc_la-alpharef.lo >>>>> `test -f 'alpharef.c' || echo './'`alpharef.c >>>>> mkdir .libs >>>>> gcc -DPACKAGE_NAME=\"pagc\" -DPACKAGE_TARNAME=\"pagc\" >>>>> -DPACKAGE_VERSION=\"0.4.0\" "-DPACKAGE_STRING=\"pagc 0.4.0\"" >>>>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>>>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>>>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>>>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>>>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>>>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DDEFER >>>>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR=\"/usr/local/share/pagc\" >>>>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-alpharef.lo >>>>> -MD -MP -MF .deps/libpagc_la-alpharef.Tpo -c alpharef.c -fPIC -DPIC >>>>> -o >>>>> .libs/libpagc_la-alpharef.o >>>>> alpharef.c:240: error: expected â;â, â,â or â)â before âprimary_rightâ >>>>> alpharef.c: In function âread_unstandardizedâ: >>>>> alpharef.c:734: error: expected expression before â:â token >>>>> make: *** [libpagc_la-alpharef.lo] Error 1 >>>>> >>>>> Fixed this by changing (notice missing '_' char: >>>>> char *dest primary_right >>>>> to: >>>>> char *dest_primary_right >>>>> >>>>> Now getting: >>>>> >>>>> woodbri@mappy:~/work/pagc/pagc/branches/datastore/pagclib$ make >>>>> /bin/sh ./libtool --tag=CC --mode=compile gcc >>>>> -DPACKAGE_NAME=\"pagc\" >>>>> -DPACKAGE_TARNAME=\"pagc\" -DPACKAGE_VERSION=\"0.4.0\" >>>>> -DPACKAGE_STRING=\"pagc\ 0.4.0\" >>>>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>>>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>>>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>>>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>>>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>>>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 >>>>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR="\"/usr/local/share/pagc\"" >>>>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-alpharef.lo >>>>> -MD -MP -MF .deps/libpagc_la-alpharef.Tpo -c -o libpagc_la-alpharef.lo >>>>> `test -f 'alpharef.c' || echo './'`alpharef.c >>>>> mkdir .libs >>>>> gcc -DPACKAGE_NAME=\"pagc\" -DPACKAGE_TARNAME=\"pagc\" >>>>> -DPACKAGE_VERSION=\"0.4.0\" "-DPACKAGE_STRING=\"pagc 0.4.0\"" >>>>> -DPACKAGE_BUGREPORT=\"whi...@de...\" -DPACKAGE=\"pagc\" >>>>> -DVERSION=\"0.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >>>>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >>>>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >>>>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 >>>>> -DSTDC_HEADERS=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 >>>>> -DTHREE_SOURCE_IDS=1 -I. -DSTZ_DIR=\"/usr/local/share/pagc\" >>>>> -I/usr/local/include -DPAGC_EXPORTS -g -O2 -MT libpagc_la-alpharef.lo >>>>> -MD -MP -MF .deps/libpagc_la-alpharef.Tpo -c alpharef.c -fPIC -DPIC >>>>> -o >>>>> .libs/libpagc_la-alpharef.o >>>>> alpharef.c: In function âleft_right_alt_macroâ: >>>>> alpharef.c:242: error: âunstandard_mac_leftâ undeclared (first use in >>>>> this function) >>>>> alpharef.c:242: error: (Each undeclared identifier is reported only >>>>> once >>>>> alpharef.c:242: error: for each function it appears in.) >>>>> alpharef.c:242: error: âunstandard_mac_alternateâ undeclared (first >>>>> use >>>>> in this function) >>>>> alpharef.c:262: error: âunstandard_mac_rightâ undeclared (first use in >>>>> this function) >>>>> alpharef.c:262: error: âunstandard_mac_alternate_rightâ undeclared >>>>> (first use in this function) >>>>> alpharef.c: In function âread_unstandardizedâ: >>>>> alpharef.c:734: error: expected expression before â:â token >>>>> make: *** [libpagc_la-alpharef.lo] Error 1 >>>>> >>>>> Can you check that everything you changed has been checked in. >>>>> >>>>> Thanks, >>>>> -Steve >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All the data continuously generated in your IT infrastructure contains >>>>> a >>>>> definitive record of customers, application performance, security >>>>> threats, fraudulent activity and more. Splunk takes this data and >>>>> makes >>>>> sense of it. Business sense. IT sense. Common sense. >>>>> http://p.sf.net/sfu/splunk-d2dcopy1 >>>>> _______________________________________________ >>>>> Pagc-devel mailing list >>>>> Pag...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/pagc-devel >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. >>>> Why? It contains a definitive record of application performance, >>>> security >>>> threats, fraudulent activity, and more. Splunk takes this data and >>>> makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2dcopy2 >>>> _______________________________________________ >>>> Pagc-devel mailing list >>>> Pag...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pagc-devel >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously >>> valuable. >>> Why? It contains a definitive record of application performance, >>> security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2dcopy2 >>> _______________________________________________ >>> Pagc-devel mailing list >>> Pag...@li... >>> https://lists.sourceforge.net/lists/listinfo/pagc-devel >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Pagc-devel mailing list >> Pag...@li... >> https://lists.sourceforge.net/lists/listinfo/pagc-devel >> > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Pagc-devel mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagc-devel |