openbsd: cannot compile csv.c for SO

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

openbsd: cannot compile csv.c for SO

Jungle Boogie

Hello,

I don't know know if this is an openBSD issue or something with sqlite3
- posting here for guidance.

I'd like to make a loadable module for csv, but when attempting to
generate the so file, I see this:

$ gcc -g -fPIC -shared csv.c -o csv.o
csv.c:42:24: error: sqlite3ext.h: No such file or directory
In file included from /usr/include/string.h:40,
                  from csv.c:44:
/usr/include/machine/_types.h:60: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'typedef'
/usr/include/machine/_types.h:70: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '__int_least8_t'
In file included from /usr/include/stdlib.h:42,
                  from csv.c:45:
/usr/include/sys/types.h:75: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int8_t'
csv.c: In function 'csv_reader_open':
csv.c:128: warning: assignment makes pointer from integer without a cast
csv.c: In function 'csv_resize_and_append':
csv.c:177: warning: assignment makes pointer from integer without a cast
csv.c: At top level:
csv.c:289: error: expected ')' before '*' token
csv.c:291: error: expected ')' before '*' token
csv.c:293: error: expected ')' before '*' token
csv.c:294: error: expected ')' before '*' token
csv.c:295: error: expected ')' before '*' token
csv.c:296: error: expected ')' before '*' token
csv.c:297: error: expected ')' before '*' token
csv.c:299: error: expected ')' before '*' token
csv.c:300: error: expected ')' before '*' token
csv.c:301: error: expected ')' before '*' token
csv.c:302: error: expected ')' before '*' token
csv.c:306: error: expected specifier-qualifier-list before 'sqlite3_vtab'
csv.c:319: error: expected specifier-qualifier-list before
'sqlite3_vtab_cursor'
csv.c: In function 'csv_xfer_error':
csv.c:328: error: 'CsvTable' has no member named 'base'
csv.c:329: error: 'CsvTable' has no member named 'base'
csv.c: At top level:
csv.c:335: error: expected ')' before '*' token
csv.c: In function 'csv_string_parameter':
csv.c:405: warning: assignment makes pointer from integer without a cast
csv.c: At top level:
csv.c:457: error: expected ')' before '*' token
csv.c: In function 'csvtabCursorRowReset':
csv.c:597: error: 'CsvCursor' has no member named 'base'
csv.c:599: error: 'CsvTable' has no member named 'nCol'
csv.c:600: error: 'CsvCursor' has no member named 'azVal'
csv.c:601: error: 'CsvCursor' has no member named 'azVal'
csv.c:602: error: 'CsvCursor' has no member named 'aLen'
csv.c: At top level:
csv.c:611: error: expected ')' before '*' token
csv.c:623: error: expected ')' before '*' token
csv.c:634: error: expected ')' before '*' token
csv.c:657: error: expected ')' before '*' token
csv.c:702: error: expected ')' before '*' token
csv.c:717: error: expected ')' before '*' token
csv.c:727: error: expected ')' before '*' token
csv.c:737: error: expected ')' before '*' token
csv.c:764: error: expected ')' before '*' token
csv.c:802: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'CsvModule'
csv.c:870: error: expected ')' before '*' token

Some of this points to files on the OS, others in csv.
regexp compiled without any issues.

Thanks,
jb

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users