Re: Error Building libapreq2.08
Jonathan Vanasco [EMAIL PROTECTED] writes: On Apr 15, 2007, at 8:15 PM, Joe Schaefer wrote: # at (util.c:106) test 4 in test_charset_divine # testing: apreq_decode(expect, elen, src3, sizeof(src3) -1) == APR_SUCCESS, as integers (util.c:108) # format: %d #left: 120011 # right: 120011 not ok 36 - apreq_decode(expect, elen, src3, sizeof(src3) -1) == APR_SUCCESS, Still puzzled as to why left == right here, but that error code is APREQ_ERROR_BADCHAR. There are only a few places in util.c which return that error, and none of them look relevant to the decoding of src3. It makes little sense to me either. Try removing the register declarations in url_decode. If that doesn't resolve it, I'm afraid you'll need to step through that test using gdb. I think everything pretty much works if i install, except for uploads which seem to cause a segfault or just crash. If you compiler can't compile url_decode correctly, there's no reason to believe it compiled the more complex stuff correctly either. -- Joe Schaefer
Re: Error Building libapreq2.08
Jonathan Vanasco [EMAIL PROTECTED] writes: I encountered an error building libapreq2.08 I posted it on the mp list when I thought it was perl related, but the issue seems to be in the C code , so i'm reposting here. I'm running osx 10.4.9 What optimization flags are you using? You may need -O0 on osx. -- Joe Schaefer
Re: Error Building libapreq2.08
On Apr 15, 2007, at 9:22 AM, Joe Schaefer wrote: Jonathan Vanasco [EMAIL PROTECTED] writes: I encountered an error building libapreq2.08 I posted it on the mp list when I thought it was perl related, but the issue seems to be in the C code , so i'm reposting here. I'm running osx 10.4.9 What optimization flags are you using? You may need -O0 on osx. Makefile had: CFLAGS = -g -O2 -fno-strict-aliasing CXXFLAGS = -g -O2 I tried it as -O0, no luck Any other suggestions? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | SyndiClick.com | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Re: Error Building libapreq2.08
Jonathan Vanasco [EMAIL PROTECTED] writes: It makes little sense to me either. I think everything pretty much works if i install, except for uploads which seem to cause a segfault or just crash. What compiler version are you using? -- Joe Schaefer
Error Building libapreq2.08
I encountered an error building libapreq2.08 I posted it on the mp list when I thought it was perl related, but the issue seems to be in the C code , so i'm reposting here. I'm running osx 10.4.9 Error perl -MTest::Harness -e 'runtests(@ARGV)' version.t cookie.t params.t parsers.t error.t util.t versionok cookie.ok params.ok parsersok 3/542 skipped: skipping ELF-dependent tests (parsers.c:134) error..ok util...FAILED tests 36-37 Failed 2/89 tests, 97.75% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- util.t892 2.25% 36-37 3 subtests skipped. Failed 1/6 test scripts, 83.33% okay. 2/747 subtests failed, 99.73% okay. make[2]: *** [test] Error 255 make[1]: *** [test] Error 2 make: *** [library_test] Error 2 Verbose error ( $export HARNESS_VERBOSE='1' ) not ok 36 - apreq_decode(expect, elen, src3, sizeof(src3) -1) == APR_SUCCESS, as integers # at (util.c:107) test 5 in test_charset_divine not ok 37 - apreq_charset_divine(expect, elen) == APREQ_CHARSET_CP1252, as integers # at (util.c:109) test 6 in test_charset_divine in util.c: static void test_charset_divine(dAT) { apr_size_t elen; char src1[] = %C3%80%E3%82%a2; /* A_GRAVE KATAKANA_A as utf8 */ char src2[] = pound%A3;/* latin-1 */ char src3[] = euro%80;/* cp-1252 */ char expect[6]; AT_int_eq(apreq_decode(expect, elen, src1, sizeof(src1) -1), APR_SUCCESS); AT_int_eq(apreq_charset_divine(expect, elen), APREQ_CHARSET_UTF8); AT_int_eq(apreq_decode(expect, elen, src2, sizeof(src2) -1), APR_SUCCESS); AT_int_eq(apreq_charset_divine(expect, elen), APREQ_CHARSET_LATIN1); AT_int_eq(apreq_decode(expect, elen, src3, sizeof(src3) -1), APR_SUCCESS); AT_int_eq(apreq_charset_divine(expect, elen), APREQ_CHARSET_CP1252); } // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | SyndiClick.com | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity Management and 3D Social Networking | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | RoadSound.com - Tools For Bands, Stuff For Fans | Collaborative Online Management And Syndication Tools | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -