Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#168 LibWWW

Performance problem
closed-out-of-date
nobody
Other (40)
5
2013-08-07
2008-10-19
Markus Schatten
No

I tried to use the libwww package of XSB. I used four different versions of w3c libwww (5.2.8, 5.3.0 pre, 5.3.1, 5.4.0) since i wasn't able to find 5.2.9 in the repository.

After install and configuring XSB I always got the following error (except with 5.2.8)

[xsb_configuration loaded]
[sysinitrc loaded]

XSB Version 3.1 (Incognito) of August 10, 2007
[i686-pc-linux-gnu; mode: optimal; engine: slg-wam; scheduling: local; word size: 32]

| ?- [libwww].
[libwww loaded]
[Compiling /media/disk/XSB/packages/libwww/libwww_init]
[Module libwww_init compiled, cpu time used: 0.0120 seconds]
[libwww_init loaded]
[Compiling /media/disk/XSB/packages/libwww/libwwwconfig]
[Preprocessing /media/disk/XSB/packages/libwww/libwwwconfig.P]
[libwwwconfig compiled, cpu time used: 0.0160 seconds]
[libwwwconfig loaded]
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c using gcc]
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c: In function ‘xml_push_element’:
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c:267: error: expected identifier before ‘__extension__’
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c:281: error: expected identifier before ‘__extension__’
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/media/disk/myPackages/w3c-libwww-pre-5.3.0/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -L/usr/lib -lssl -lcrypto
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c using gcc]
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/media/disk/myPackages/w3c-libwww-pre-5.3.0/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -L/usr/lib -lssl -lcrypto
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_html.c using gcc]
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_html.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_html.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/media/disk/myPackages/w3c-libwww-pre-5.3.0/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -L/usr/lib -lssl -lcrypto

yes
| ?-

5.2.8 complained about:

[xsb_configuration loaded]
[sysinitrc loaded]

XSB Version 3.1 (Incognito) of August 10, 2007
[i686-pc-linux-gnu; mode: optimal; engine: slg-wam; scheduling: local; word size: 32]

| ?- [libwww].
[libwww loaded]
[Compiling /media/disk/XSB/packages/libwww/libwww_init]
[Module libwww_init compiled, cpu time used: 0.0080 seconds]
[libwww_init loaded]
[Compiling /media/disk/XSB/packages/libwww/libwwwconfig]
[Preprocessing /media/disk/XSB/packages/libwww/libwwwconfig.P]
[libwwwconfig compiled, cpu time used: 0.0120 seconds]
[libwwwconfig loaded]
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c using gcc]
In file included from /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c:26:
/media/disk/XSB/packages/libwww/cc//libwww_util.h:168: error: expected declaration specifiers or ‘...’ before ‘HTRDF’
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c: In function ‘xml_push_element’:
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c:267: error: expected identifier before ‘__extension__’
/media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c:281: error: expected identifier before ‘__extension__’
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_xml.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c using gcc]
In file included from /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:26:
/media/disk/XSB/packages/libwww/cc//libwww_util.h:168: error: expected declaration specifiers or ‘...’ before ‘HTRDF’
In file included from /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:28:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.h:31: error: expected specifier-qualifier-list before ‘HTRDF’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.h:38: error: expected ‘)’ before ‘*’ token
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.h:40: error: expected ‘)’ before ‘*’ token
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c: In function ‘set_rdf_conversions’:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:62: error: ‘HTRDFToTriples’ undeclared (first use in this function)
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:62: error: (Each undeclared identifier is reported only once
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:62: error: for each function it appears in.)
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c: At top level:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:80: error: expected declaration specifiers or ‘...’ before ‘HTRDF’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c: In function ‘libwww_newRDF_parserHandler’:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:83: error: ‘rdfparser’ undeclared (first use in this function)
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:86: warning: implicit declaration of function ‘rdf_create_userData’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:86: warning: initialization makes pointer from integer without a cast
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:89: warning: implicit declaration of function ‘HTRDF_registerNewTripleCallback’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:90: error: ‘rdf_new_triple_handler’ undeclared (first use in this function)
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c: At top level:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:97: error: expected ‘)’ before ‘*’ token
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:132: error: expected ‘)’ before ‘*’ token
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c: In function ‘rdf_delete_userData’:
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:179: error: ‘USERDATA’ has no member named ‘request’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:198: error: ‘USERDATA’ has no member named ‘parsed_term_tail’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:201: error: ‘USERDATA’ has no member named ‘parsed_term’
/media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c:202: error: ‘USERDATA’ has no member named ‘parsed_term’
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_rdf.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl
[Compiling C file /media/disk/XSB/packages/libwww/cc//libwww_parse_html.c using gcc]
In file included from /media/disk/XSB/packages/libwww/cc//libwww_parse_html.c:26:
/media/disk/XSB/packages/libwww/cc//libwww_util.h:168: error: expected declaration specifiers or ‘...’ before ‘HTRDF’
gcc -s -o /media/disk/XSB/packages/libwww/cc//libwww_parse_html.so -shared /media/disk/XSB/packages/libwww/cc//libwww_parse_html.c -Wall -fPIC -I/media/disk/XSB/emu -I/media/disk/XSB/config/i686-pc-linux-gnu -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O3 -fno-strict-aliasing -Wall -pipe -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl

yes
| ?-

I'm using the cvs version of XSB. Am I doing something wrong?

Best regards,

Markus Schatten

Discussion

  • I forgot. It seems that in file libwww_parse_xml.c the function XSB_StrCmp isn't recognized (line 267 and 281). But varstring_xsb.h is included through libwww_util.h ...?

    I run out of ideas...

     
  • hafsi
    hafsi
    2008-11-28

    Hi , i am trying another version of XSB (older)

    i have the same problem too !

     
  • hafsi
    hafsi
    2008-11-28

    Hi , i am trying another version of XSB (older)

    i have the same problem too !

     
  • Michael Kifer
    Michael Kifer
    2013-08-07

    The libwww package is not being maintained because W3C has stopped its support for the underlying C package.
    Please use the curl package instead.

     
  • Michael Kifer
    Michael Kifer
    2013-08-07

    • status: open --> closed-out-of-date
    • Group: --> Performance problem