View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000456 | Raptor RDF Syntax Library | api | public | 2011-07-14 15:15 | 2011-07-14 20:13 |
| Reporter | ssuominen | Assigned To | Dave Beckett | ||
| Priority | high | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Random distribution | ||
| Product Version | 2.0.3 | ||||
| Fixed in Version | 2.0.4 | ||||
| Summary | 0000456: raptor-2.0.3 fails to build against yajl-2.0.2 API | ||||
| Description | yajl2 has new API, thus raptor2 fails to build with following errors: raptor_json.c:87:3: error: expected specifier-qualifier-list before 'yajl_parser_config' raptor_json.c: In function 'raptor_json_reset_term': raptor_json.c:111:13: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:112:5: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:113:13: error: 'raptor_json_parser_context' has no member named 'term_lang' raptor_json.c:114:5: error: 'raptor_json_parser_context' has no member named 'term_lang' raptor_json.c:115:13: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c:116:5: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c:118:10: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:119:10: error: 'raptor_json_parser_context' has no member named 'term_lang' raptor_json.c:120:10: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c:121:10: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:122:10: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c: In function 'raptor_json_generate_term': raptor_json.c:172:14: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:177:17: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:179:66: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:181:82: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:190:17: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c:191:65: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c:193:69: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:193:104: error: 'raptor_json_parser_context' has no member named 'term_lang' raptor_json.c:199:39: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c: In function 'raptor_json_yajl_string': raptor_json.c:250:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:251:14: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:252:19: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c:254:16: error: 'raptor_json_parser_context' has no member named 'term_value' raptor_json.c:257:16: error: 'raptor_json_parser_context' has no member named 'term_lang' raptor_json.c:261:18: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:263:18: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:265:18: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:268:18: error: 'raptor_json_parser_context' has no member named 'term_type' raptor_json.c:274:16: error: 'raptor_json_parser_context' has no member named 'term_datatype' raptor_json.c: In function 'raptor_json_yajl_map_key': raptor_json.c:295:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:297:14: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:300:17: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:301:33: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:302:14: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:303:18: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:305:14: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:308:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:309:15: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:310:31: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:311:12: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:312:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:315:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:317:14: error: 'raptor_json_parser_context' has no member named 'term' raptor_json.c:320:14: error: 'raptor_json_parser_context' has no member named 'term' raptor_json.c:323:14: error: 'raptor_json_parser_context' has no member named 'term' raptor_json.c:329:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:330:21: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:332:14: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c:335:14: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c:338:14: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c:341:14: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c:344:14: error: 'raptor_json_parser_context' has no member named 'attrib' raptor_json.c: In function 'raptor_json_yajl_start_map': raptor_json.c:361:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:362:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:364:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:365:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:367:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:368:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:370:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:371:36: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:372:12: error: 'raptor_json_parser_context' has no member named 'term' raptor_json.c:373:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:375:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:376:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c: In function 'raptor_json_yajl_end_map': raptor_json.c:392:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:393:12: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:394:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:398:69: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:400:29: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:401:12: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:404:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:406:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:407:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:409:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:415:19: error: 'raptor_json_parser_context' has no member named 'term' raptor_json.c:417:19: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:418:35: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:419:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:422:19: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:423:35: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:424:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:427:19: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:428:35: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:429:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:437:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:440:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:441:16: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:444:23: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:447:23: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:452:71: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:454:36: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:455:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:457:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:458:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:460:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:461:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c: In function 'raptor_json_yajl_start_array': raptor_json.c:475:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:476:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:478:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:479:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c: In function 'raptor_json_yajl_end_array': raptor_json.c:493:13: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:494:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:496:20: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:497:12: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c: At top level: raptor_json.c:525:3: warning: initialization from incompatible pointer type raptor_json.c:526:3: warning: initialization from incompatible pointer type raptor_json.c:534:3: warning: initialization from incompatible pointer type raptor_json.c:537:3: warning: initialization from incompatible pointer type raptor_json.c:539:3: warning: initialization from incompatible pointer type raptor_json.c: In function 'raptor_json_parse_init': raptor_json.c:562:33: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c:565:10: error: 'raptor_json_parser_context' has no member named 'config' raptor_json.c:566:10: error: 'raptor_json_parser_context' has no member named 'config' raptor_json.c: In function 'raptor_json_parse_terminate': raptor_json.c:583:13: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:584:22: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:587:34: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c: In function 'raptor_json_parse_chunk': raptor_json.c:603:32: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:606:19: error: 'yajl_status_insufficient_data' undeclared (first use in this function) raptor_json.c:606:19: note: each undeclared identifier is reported only once for each function it appears in raptor_json.c:608:51: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:611:30: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:617:41: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:621:51: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:624:30: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:628:36: error: 'raptor_json_parser_context' has no member named 'statement' raptor_json.c: In function 'raptor_json_parse_start': raptor_json.c:641:13: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:642:22: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:645:10: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:647:13: error: 'raptor_json_parser_context' has no member named 'config' raptor_json.c:650:3: error: too many arguments to function 'yajl_alloc' /usr/include/yajl/yajl_parse.h:107:26: note: declared here raptor_json.c:652:14: error: 'raptor_json_parser_context' has no member named 'handle' raptor_json.c:658:10: error: 'raptor_json_parser_context' has no member named 'state' raptor_json.c:660:34: error: 'raptor_json_parser_context' has no member named 'statement' libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -I/usr/include/libxml2 -march=core2 -mtune=generic -msse4.1 -msse4.2 -O2 -pipe -c raptor_serialize_rdfxml.c -fPIC -DPIC -o .libs/raptor_serialize_rdfxml.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -I/usr/include/libxml2 -march=core2 -mtune=generic -msse4.1 -msse4.2 -O2 -pipe -c raptor_serialize_ntriples.c -fPIC -DPIC -o .libs/raptor_serialize_ntriples.o make[2]: *** [raptor_json.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -I/usr/include/libxml2 -march=core2 -mtune=generic -msse4.1 -msse4.2 -O2 -pipe -c raptor_abbrev.c -fPIC -DPIC -o .libs/raptor_abbrev.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -I/usr/include/libxml2 -march=core2 -mtune=generic -msse4.1 -msse4.2 -O2 -pipe -c raptor_serialize_rdfxmla.c -fPIC -DPIC -o .libs/raptor_serialize_rdfxmla.o make[2]: Leaving directory `/var/tmp/portage/media-libs/raptor-2.0.3/work/raptor2-2.0.3/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/media-libs/raptor-2.0.3/work/raptor2-2.0.3/src' make: *** [all-recursive] Error 1 | ||||
| Additional Information | This was reported downstream here: http://bugs.gentoo.org/show_bug.cgi?id=374365 The downstream bug has full build log available if you need it. Looking at the errors, I found some related patches floating around: http://web.archiveorange.com/archive/v/8XiUWCd1m7y6rxzAYbxl Where 'unsigned int' becomes 'size_t' and 'yajl_parser_config' is no longer used... I'm sure there are more, but I'm unable to provide working patch, sorry. | ||||
| Tags | No tags attached. | ||||
| Syntax Name | json | ||||
|
|
I've had a look at yajl2 vs yajl1 and there isn't much change but the author made ABI/API changes and didn't change the library soname or base name. That will cause problems and won't let you install both at the same time in the same lib dir. |
|
|
Fixed in GIT commit 6105d5175f575ca5339c90d179c19d33e2f57ddc https://github.com/dajobe/raptor/commit/6105d5175f575ca5339c90d179c19d33e2f57ddc |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-07-14 15:15 | ssuominen | New Issue | |
| 2011-07-14 20:01 | Dave Beckett | Note Added: 0001821 | |
| 2011-07-14 20:13 | Dave Beckett | Syntax Name | => json |
| 2011-07-14 20:13 | Dave Beckett | Note Added: 0001822 | |
| 2011-07-14 20:13 | Dave Beckett | Status | new => closed |
| 2011-07-14 20:13 | Dave Beckett | Assigned To | => Dave Beckett |
| 2011-07-14 20:13 | Dave Beckett | Resolution | open => fixed |
| 2011-07-14 20:13 | Dave Beckett | Fixed in Version | => 2.0.4 |