At first I was unable to configure - getting the same message. Googling for the error message came up with hints that this is related to including header files in the wrong order. I edited /usr/local/owfs-2.7p4/module/owlib/src/include/ow.h and moved the includes for time.h and sys/time.h to before sys/stat.h and this allowed configure to run. However, compile still fails.
Can anyone suggest where to look next ?
Config options are :
Current configuration:
Deployment location: /opt/owfs
Compile-time options:
Caching is enabled
USB is enabled
I2C is DISABLED
HA7Net is DISABLED
Multithreading is enabled
Parallel port DS1410E is DISABLED
TAI8570 barometer is enabled
Thermocouple is enabled
Zeroconf/Bonjour is DISABLED
Debug-output is enabled
Profiling is DISABLED
Module configuration:
owlib is enabled
owshell is enabled
owfs is enabled
owhttpd is DISABLED
owftpd is DISABLED
owserver is DISABLED
ownet is DISABLED
ownetlib is DISABLED
owtap is DISABLED
owmon is DISABLED
owcapi is DISABLED
swig is DISABLED
owperl is DISABLED
owphp is DISABLED
owpython is DISABLED
owtcl is DISABLED
LibUSB and LibFUSE are as follows :
dpkg -l libusb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-================================================================
ii libusb-0.1-4 0.1.12-5 userspace USB programming library
ii libusb-dev 0.1.12-5 userspace USB programming library development files
un libusb0 <none> (no description available)
dpkg -l libfuse*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-================================================================
ii libfuse-dev 2.7.1-2~bpo40+1 Filesystem in USErspace (development files)
ii libfuse2 2.7.1-2~bpo40+1 Filesystem in USErspace library
The point where the build fails is :
make[4]: Entering directory /usr/local/owfs-2.7p4/module/owfs/src/c'
gcc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -I/usr/include/linux -I../../../owlib/src/include -L../../../owlib/src/c -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -pthread -g -O2 -MT owfs.o -MD -MP -MF .deps/owfs.Tpo -c -o owfs.o owfs.c
In file included from /usr/include/sys/stat.h:105,
from ../../../owlib/src/include/ow.h:101,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/bits/stat.h:70: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:71: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:72: error: field 'st_ctim' has incomplete type
In file included from /usr/include/sys/types.h:266,
from ../../../owlib/src/include/ow.h:105,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/bits/pthreadtypes.h:50: error: expected specifier-qualifier-list before 'size_t'
In file included from ../../../owlib/src/include/ow.h:108,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/sys/times.h:37: error: expected specifier-qualifier-list before 'clock_t'
/usr/include/sys/times.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'times'
In file included from ../../../owlib/src/include/ow.h:110,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max'
/usr/include/stdlib.h:450: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:480: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:482: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:584: error: expected ')' before '__size'
/usr/include/stdlib.h:586: error: expected ')' before '__nmemb'
/usr/include/stdlib.h:595: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/stdlib.h:606,
from ../../../owlib/src/include/ow.h:110,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/alloca.h:33: error: expected ')' before '__size'
In file included from ../../../owlib/src/include/ow.h:110,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/stdlib.h:611: error: expected ')' before '__size'
/usr/include/stdlib.h:768: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:768: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:769: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:773: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:773: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:774: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:846: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:849: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:853: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:857: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:866: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:869: error: expected ')' before '*' token
/usr/include/stdlib.h:873: error: expected declaration specifiers or '...' before 'wchar_t'
/usr/include/stdlib.h:877: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs'
/usr/include/stdlib.h:880: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs'
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from ../../../owlib/src/include/ow.h:111,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/gconv.h:72: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:97: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/stdio.h:72,
from ../../../owlib/src/include/ow.h:111,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/libio.h:354: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:363: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:479: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from ../../../owlib/src/include/ow.h:111,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/stdio.h:302: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:309: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:351: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:353: error: format string argument not a string type
/usr/include/stdio.h:355: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:603: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:609: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/usr/include/stdio.h:631: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:633: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
In file included from ../../../owlib/src/include/ow.h:113,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/linux/dirent.h:6: error: expected specifier-qualifier-list before '__kernel_off_t'
/usr/include/linux/dirent.h:12: error: expected specifier-qualifier-list before '__u64'
In file included from /usr/include/asm/signal.h:8,
from /usr/include/linux/signal.h:4,
from ../../../owlib/src/include/ow.h:114,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/asm-i486/signal.h:32: error: conflicting types for 'sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here
In file included from /usr/include/asm/signal.h:8,
from /usr/include/linux/signal.h:4,
from ../../../owlib/src/include/ow.h:114,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/asm-i486/signal.h:154: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/asm-i486/siginfo.h:4,
from /usr/include/asm/siginfo.h:8,
from /usr/include/linux/signal.h:5,
from ../../../owlib/src/include/ow.h:114,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/asm-generic/siginfo.h:56: error: expected specifier-qualifier-list before 'timer_t'
/usr/include/asm-generic/siginfo.h:75: error: expected specifier-qualifier-list before 'clock_t'
In file included from /usr/include/sys/uio.h:29,
from ../../../owlib/src/include/ow.h:142,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/bits/uio.h:45: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/sys/socket.h:35,
from ../../../owlib/src/include/ow.h:146,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/bits/socket.h:221: error: expected specifier-qualifier-list before 'size_t'
/usr/include/bits/socket.h:232: error: expected specifier-qualifier-list before 'size_t'
/usr/include/bits/socket.h: In function '__cmsg_nxthdr':
/usr/include/bits/socket.h:266: error: 'size_t' undeclared (first use in this function)
/usr/include/bits/socket.h:266: error: (Each undeclared identifier is reported only once
/usr/include/bits/socket.h:266: error: for each function it appears in.)
/usr/include/bits/socket.h:266: error: expected ')' before '__cmsg'
/usr/include/bits/socket.h:271: error: 'struct cmsghdr' has no member named 'cmsg_len'
/usr/include/bits/socket.h:271: error: expected ')' before '~' token
/usr/include/bits/socket.h:272: error: 'struct msghdr' has no member named 'msg_control'
/usr/include/bits/socket.h:273: error: 'struct msghdr' has no member named 'msg_controllen'
/usr/include/bits/socket.h:274: error: 'struct cmsghdr' has no member named 'cmsg_len'
/usr/include/bits/socket.h:274: error: expected ')' before '~' token
/usr/include/bits/socket.h:275: error: 'struct msghdr' has no member named 'msg_control'
/usr/include/bits/socket.h:275: error: 'struct msghdr' has no member named 'msg_controllen'
In file included from ../../../owlib/src/include/ow.h:146,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:136: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:143: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:150: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/sys/socket.h:161: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/netdb.h:33,
from ../../../owlib/src/include/ow.h:153,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/rpc/netdb.h:61: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/rpc/netdb.h:65: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/rpc/netdb.h:69: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:153,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/netdb.h:162: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:169: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:175: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:181: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:232: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:238: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:244: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:304: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:310: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:315: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:370: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:375: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:380: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/netdb.h:430: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:163,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/search.h:91: error: expected ')' before '__nel'
/usr/include/search.h:109: error: expected ')' before '__nel'
/usr/include/search.h:166: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/search.h:166: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/search.h:171: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/search.h:171: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:202,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_localtypes.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_DATE'
In file included from ../../../owlib/src/include/ow.h:211,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_charblob.h:59: error: expected specifier-qualifier-list before 'size_t'
../../../owlib/src/include/ow_charblob.h:67: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:214,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_memblob.h:58: error: expected specifier-qualifier-list before 'size_t'
../../../owlib/src/include/ow_memblob.h:65: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_memblob.h:66: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_memblob.h:67: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow_mutexes.h:56,
from ../../../owlib/src/include/ow.h:217,
from ../include/owfs.h:19,
from owfs.c:18:
/usr/include/pthread.h:284: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/pthread.h:288: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:249,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_filetype.h:175: error: expected specifier-qualifier-list before 'size_t'
In file included from ../../../owlib/src/include/ow.h:266,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_onewirequery.h:17: error: expected specifier-qualifier-list before '_DATE'
../../../owlib/src/include/ow_onewirequery.h:25: error: expected specifier-qualifier-list before 'size_t'
../../../owlib/src/include/ow_onewirequery.h:57: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_onewirequery.h:58: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_onewirequery.h:64: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:288,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_message.h:30: error: expected specifier-qualifier-list before 'clock_t'
../../../owlib/src/include/ow_message.h:70: error: expected specifier-qualifier-list before 'size_t'
In file included from ../../../owlib/src/include/ow.h:292,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_global.h:71: error: expected specifier-qualifier-list before 'size_t'
In file included from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow.h:296: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'start_time'
../../../owlib/src/include/ow.h:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dir_time'
In file included from ../../../owlib/src/include/ow.h:301,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_functions.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FileLength'
../../../owlib/src/include/ow_functions.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FullFileLength'
../../../owlib/src/include/ow_functions.h:104: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:104: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:108: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:108: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:109: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:109: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:110: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:110: error: expected ';', ',' or ')' before 'size'
../../../owlib/src/include/ow_functions.h:111: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:111: error: expected ';', ',' or ')' before 'size'
../../../owlib/src/include/ow_functions.h:114: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:114: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:115: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:115: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:116: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:116: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:117: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:117: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:118: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:118: error: expected ';', ',' or ')' before 'length'
../../../owlib/src/include/ow_functions.h:129: warning: type defaults to 'int' in declaration of '_DATE'
../../../owlib/src/include/ow_functions.h:129: error: expected ';', ',' or ')' before 'D'
../../../owlib/src/include/ow_functions.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UT_toDate'
In file included from ../../../owlib/src/include/ow_functions.h:134,
from ../../../owlib/src/include/ow.h:301,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_cache.h:89: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_cache.h:89: error: expected ';', ',' or ')' before 'datasize'
../../../owlib/src/include/ow_cache.h:92: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_cache.h:92: error: expected ';', ',' or ')' before 'datasize'
../../../owlib/src/include/ow_cache.h:95: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_cache.h:96: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_cache.h:99: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_cache.h:100: error: expected declaration specifiers or '...' before 'size_t'
In file included from ../../../owlib/src/include/ow.h:301,
from ../include/owfs.h:19,
from owfs.c:18:
../../../owlib/src/include/ow_functions.h:157: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:185: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:185: error: expected ';', ',' or ')' before 'size'
../../../owlib/src/include/ow_functions.h:189: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_functions.h:189: error: expected ';', ',' or ')' before 'size'
../../../owlib/src/include/ow_functions.h:199: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:209: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:209: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:210: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:210: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:211: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:211: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:212: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:212: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:213: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:213: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:214: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:214: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:216: error: expected declaration specifiers or '...' before 'size_t'
../../../owlib/src/include/ow_functions.h:217: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/sys/ioctl.h:30,
from ../../../owlib/src/include/ow_connection.h:69,
from owfs.c:19:
/usr/include/bits/ioctl-types.h:29: error: redefinition of 'struct winsize'
/usr/include/bits/ioctl-types.h:38: error: redefinition of 'struct termio'
In file included from ../../../owlib/src/include/ow_connection.h:70,
from owfs.c:19:
../../../owlib/src/include/ow_transaction.h:81: error: expected specifier-qualifier-list before 'size_t'
In file included from owfs.c:19:
../../../owlib/src/include/ow_connection.h:129: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:129: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:131: error: expected ';' before 'int'
../../../owlib/src/include/ow_connection.h:372: error: expected specifier-qualifier-list before 'size_t'
../../../owlib/src/include/ow_connection.h:504: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:504: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:505: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:505: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:506: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:506: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:507: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:507: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:508: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:508: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:514: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:514: error: expected ';', ',' or ')' before 'len'
../../../owlib/src/include/ow_connection.h:515: warning: type defaults to 'int' in declaration of 'size_t'
../../../owlib/src/include/ow_connection.h:515: error: expected ';', ',' or ')' before 'len'
owfs.c: In function 'main':
owfs.c:68: warning: implicit declaration of function 'strdup'
owfs.c:68: warning: incompatible implicit declaration of built-in function 'strdup'
owfs.c:164: warning: implicit declaration of function 'fuse_main'
make[4]: *** [owfs.o] Error 1
make[4]: Leaving directory/usr/local/owfs-2.7p4/module/owfs/src/c'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory /usr/local/owfs-2.7p4/module/owfs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/usr/local/owfs-2.7p4/module/owfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/owfs-2.7p4/module'
make: *** [all-recursive] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Early on the configure process complained about missing headers - so I added command line switches to tell it where to find stuff. BUT this caused problems finding other headers, or more correctly make the pre-compiler use the wrong ones. Taking out these command line switches, and editing the source to #incude the missing headers sorted the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to build OWFS on a Debian Etch box.
At first I was unable to configure - getting the same message. Googling for the error message came up with hints that this is related to including header files in the wrong order. I edited /usr/local/owfs-2.7p4/module/owlib/src/include/ow.h and moved the includes for time.h and sys/time.h to before sys/stat.h and this allowed configure to run. However, compile still fails.
Can anyone suggest where to look next ?
Config options are :
Current configuration:
Compile-time options:
Caching is enabled
USB is enabled
I2C is DISABLED
HA7Net is DISABLED
Multithreading is enabled
Parallel port DS1410E is DISABLED
TAI8570 barometer is enabled
Thermocouple is enabled
Zeroconf/Bonjour is DISABLED
Debug-output is enabled
Profiling is DISABLED
Module configuration:
owlib is enabled
owshell is enabled
owfs is enabled
owhttpd is DISABLED
owftpd is DISABLED
owserver is DISABLED
ownet is DISABLED
ownetlib is DISABLED
owtap is DISABLED
owmon is DISABLED
owcapi is DISABLED
swig is DISABLED
owperl is DISABLED
owphp is DISABLED
owpython is DISABLED
owtcl is DISABLED
LibUSB and LibFUSE are as follows :
dpkg -l libusb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-================================================================
ii libusb-0.1-4 0.1.12-5 userspace USB programming library
ii libusb-dev 0.1.12-5 userspace USB programming library development files
un libusb0 <none> (no description available)
dpkg -l libfuse*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-========================-========================-================================================================
ii libfuse-dev 2.7.1-2~bpo40+1 Filesystem in USErspace (development files)
ii libfuse2 2.7.1-2~bpo40+1 Filesystem in USErspace library
The point where the build fails is :
make[4]: Entering directory
/usr/local/owfs-2.7p4/module/owfs/src/c' gcc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -I/usr/include/linux -I../../../owlib/src/include -L../../../owlib/src/c -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -pthread -g -O2 -MT owfs.o -MD -MP -MF .deps/owfs.Tpo -c -o owfs.o owfs.c In file included from /usr/include/sys/stat.h:105, from ../../../owlib/src/include/ow.h:101, from ../include/owfs.h:19, from owfs.c:18: /usr/include/bits/stat.h:70: error: field 'st_atim' has incomplete type /usr/include/bits/stat.h:71: error: field 'st_mtim' has incomplete type /usr/include/bits/stat.h:72: error: field 'st_ctim' has incomplete type In file included from /usr/include/sys/types.h:266, from ../../../owlib/src/include/ow.h:105, from ../include/owfs.h:19, from owfs.c:18: /usr/include/bits/pthreadtypes.h:50: error: expected specifier-qualifier-list before 'size_t' In file included from ../../../owlib/src/include/ow.h:108, from ../include/owfs.h:19, from owfs.c:18: /usr/include/sys/times.h:37: error: expected specifier-qualifier-list before 'clock_t' /usr/include/sys/times.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'times' In file included from ../../../owlib/src/include/ow.h:110, from ../include/owfs.h:19, from owfs.c:18: /usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max' /usr/include/stdlib.h:450: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:480: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:482: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:584: error: expected ')' before '__size' /usr/include/stdlib.h:586: error: expected ')' before '__nmemb' /usr/include/stdlib.h:595: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/include/stdlib.h:606, from ../../../owlib/src/include/ow.h:110, from ../include/owfs.h:19, from owfs.c:18: /usr/include/alloca.h:33: error: expected ')' before '__size' In file included from ../../../owlib/src/include/ow.h:110, from ../include/owfs.h:19, from owfs.c:18: /usr/include/stdlib.h:611: error: expected ')' before '__size' /usr/include/stdlib.h:768: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:768: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:769: error: nonnull argument with out-of-range operand number (argument 1, operand 5) /usr/include/stdlib.h:773: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:773: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:774: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:846: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:849: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:853: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:857: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:866: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:869: error: expected ')' before '*' token /usr/include/stdlib.h:873: error: expected declaration specifiers or '...' before 'wchar_t' /usr/include/stdlib.h:877: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs' /usr/include/stdlib.h:880: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs' In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from ../../../owlib/src/include/ow.h:111, from ../include/owfs.h:19, from owfs.c:18: /usr/include/gconv.h:72: error: expected declaration specifiers or '...' before 'size_t' /usr/include/gconv.h:88: error: expected declaration specifiers or '...' before 'size_t' /usr/include/gconv.h:97: error: expected declaration specifiers or '...' before 'size_t' /usr/include/gconv.h:174: error: expected specifier-qualifier-list before 'size_t' In file included from /usr/include/stdio.h:72, from ../../../owlib/src/include/ow.h:111, from ../include/owfs.h:19, from owfs.c:18: /usr/include/libio.h:354: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:363: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:479: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn' In file included from ../../../owlib/src/include/ow.h:111, from ../include/owfs.h:19, from owfs.c:18: /usr/include/stdio.h:302: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:309: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:351: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:353: error: format string argument not a string type /usr/include/stdio.h:355: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:603: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread' /usr/include/stdio.h:609: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite' /usr/include/stdio.h:631: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked' /usr/include/stdio.h:633: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked' In file included from ../../../owlib/src/include/ow.h:113, from ../include/owfs.h:19, from owfs.c:18: /usr/include/linux/dirent.h:6: error: expected specifier-qualifier-list before '__kernel_off_t' /usr/include/linux/dirent.h:12: error: expected specifier-qualifier-list before '__u64' In file included from /usr/include/asm/signal.h:8, from /usr/include/linux/signal.h:4, from ../../../owlib/src/include/ow.h:114, from ../include/owfs.h:19, from owfs.c:18: /usr/include/asm-i486/signal.h:32: error: conflicting types for 'sigset_t' /usr/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here In file included from /usr/include/asm/signal.h:8, from /usr/include/linux/signal.h:4, from ../../../owlib/src/include/ow.h:114, from ../include/owfs.h:19, from owfs.c:18: /usr/include/asm-i486/signal.h:154: error: expected specifier-qualifier-list before 'size_t' In file included from /usr/include/asm-i486/siginfo.h:4, from /usr/include/asm/siginfo.h:8, from /usr/include/linux/signal.h:5, from ../../../owlib/src/include/ow.h:114, from ../include/owfs.h:19, from owfs.c:18: /usr/include/asm-generic/siginfo.h:56: error: expected specifier-qualifier-list before 'timer_t' /usr/include/asm-generic/siginfo.h:75: error: expected specifier-qualifier-list before 'clock_t' In file included from /usr/include/sys/uio.h:29, from ../../../owlib/src/include/ow.h:142, from ../include/owfs.h:19, from owfs.c:18: /usr/include/bits/uio.h:45: error: expected specifier-qualifier-list before 'size_t' In file included from /usr/include/sys/socket.h:35, from ../../../owlib/src/include/ow.h:146, from ../include/owfs.h:19, from owfs.c:18: /usr/include/bits/socket.h:221: error: expected specifier-qualifier-list before 'size_t' /usr/include/bits/socket.h:232: error: expected specifier-qualifier-list before 'size_t' /usr/include/bits/socket.h: In function '__cmsg_nxthdr': /usr/include/bits/socket.h:266: error: 'size_t' undeclared (first use in this function) /usr/include/bits/socket.h:266: error: (Each undeclared identifier is reported only once /usr/include/bits/socket.h:266: error: for each function it appears in.) /usr/include/bits/socket.h:266: error: expected ')' before '__cmsg' /usr/include/bits/socket.h:271: error: 'struct cmsghdr' has no member named 'cmsg_len' /usr/include/bits/socket.h:271: error: expected ')' before '~' token /usr/include/bits/socket.h:272: error: 'struct msghdr' has no member named 'msg_control' /usr/include/bits/socket.h:273: error: 'struct msghdr' has no member named 'msg_controllen' /usr/include/bits/socket.h:274: error: 'struct cmsghdr' has no member named 'cmsg_len' /usr/include/bits/socket.h:274: error: expected ')' before '~' token /usr/include/bits/socket.h:275: error: 'struct msghdr' has no member named 'msg_control' /usr/include/bits/socket.h:275: error: 'struct msghdr' has no member named 'msg_controllen' In file included from ../../../owlib/src/include/ow.h:146, from ../include/owfs.h:19, from owfs.c:18: /usr/include/sys/socket.h: At top level: /usr/include/sys/socket.h:136: error: expected declaration specifiers or '...' before 'size_t' /usr/include/sys/socket.h:143: error: expected declaration specifiers or '...' before 'size_t' /usr/include/sys/socket.h:150: error: expected declaration specifiers or '...' before 'size_t' /usr/include/sys/socket.h:161: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/include/netdb.h:33, from ../../../owlib/src/include/ow.h:153, from ../include/owfs.h:19, from owfs.c:18: /usr/include/rpc/netdb.h:61: error: expected declaration specifiers or '...' before 'size_t' /usr/include/rpc/netdb.h:65: error: expected declaration specifiers or '...' before 'size_t' /usr/include/rpc/netdb.h:69: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:153, from ../include/owfs.h:19, from owfs.c:18: /usr/include/netdb.h:162: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:169: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:175: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:181: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:232: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:238: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:244: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:304: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:310: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:315: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:370: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:375: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:380: error: expected declaration specifiers or '...' before 'size_t' /usr/include/netdb.h:430: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:163, from ../include/owfs.h:19, from owfs.c:18: /usr/include/search.h:91: error: expected ')' before '__nel' /usr/include/search.h:109: error: expected ')' before '__nel' /usr/include/search.h:166: error: expected declaration specifiers or '...' before 'size_t' /usr/include/search.h:166: error: expected declaration specifiers or '...' before 'size_t' /usr/include/search.h:171: error: expected declaration specifiers or '...' before 'size_t' /usr/include/search.h:171: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:202, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_localtypes.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_DATE' In file included from ../../../owlib/src/include/ow.h:211, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_charblob.h:59: error: expected specifier-qualifier-list before 'size_t' ../../../owlib/src/include/ow_charblob.h:67: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:214, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_memblob.h:58: error: expected specifier-qualifier-list before 'size_t' ../../../owlib/src/include/ow_memblob.h:65: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_memblob.h:66: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_memblob.h:67: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow_mutexes.h:56, from ../../../owlib/src/include/ow.h:217, from ../include/owfs.h:19, from owfs.c:18: /usr/include/pthread.h:284: error: expected declaration specifiers or '...' before 'size_t' /usr/include/pthread.h:288: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:249, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_filetype.h:175: error: expected specifier-qualifier-list before 'size_t' In file included from ../../../owlib/src/include/ow.h:266, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_onewirequery.h:17: error: expected specifier-qualifier-list before '_DATE' ../../../owlib/src/include/ow_onewirequery.h:25: error: expected specifier-qualifier-list before 'size_t' ../../../owlib/src/include/ow_onewirequery.h:57: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_onewirequery.h:58: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_onewirequery.h:64: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:288, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_message.h:30: error: expected specifier-qualifier-list before 'clock_t' ../../../owlib/src/include/ow_message.h:70: error: expected specifier-qualifier-list before 'size_t' In file included from ../../../owlib/src/include/ow.h:292, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_global.h:71: error: expected specifier-qualifier-list before 'size_t' In file included from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow.h:296: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'start_time' ../../../owlib/src/include/ow.h:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dir_time' In file included from ../../../owlib/src/include/ow.h:301, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_functions.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FileLength' ../../../owlib/src/include/ow_functions.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FullFileLength' ../../../owlib/src/include/ow_functions.h:104: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:104: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:108: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:108: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:109: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:109: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:110: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:110: error: expected ';', ',' or ')' before 'size' ../../../owlib/src/include/ow_functions.h:111: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:111: error: expected ';', ',' or ')' before 'size' ../../../owlib/src/include/ow_functions.h:114: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:114: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:115: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:115: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:116: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:116: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:117: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:117: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:118: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:118: error: expected ';', ',' or ')' before 'length' ../../../owlib/src/include/ow_functions.h:129: warning: type defaults to 'int' in declaration of '_DATE' ../../../owlib/src/include/ow_functions.h:129: error: expected ';', ',' or ')' before 'D' ../../../owlib/src/include/ow_functions.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UT_toDate' In file included from ../../../owlib/src/include/ow_functions.h:134, from ../../../owlib/src/include/ow.h:301, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_cache.h:89: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_cache.h:89: error: expected ';', ',' or ')' before 'datasize' ../../../owlib/src/include/ow_cache.h:92: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_cache.h:92: error: expected ';', ',' or ')' before 'datasize' ../../../owlib/src/include/ow_cache.h:95: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_cache.h:96: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_cache.h:99: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_cache.h:100: error: expected declaration specifiers or '...' before 'size_t' In file included from ../../../owlib/src/include/ow.h:301, from ../include/owfs.h:19, from owfs.c:18: ../../../owlib/src/include/ow_functions.h:157: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:185: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:185: error: expected ';', ',' or ')' before 'size' ../../../owlib/src/include/ow_functions.h:189: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_functions.h:189: error: expected ';', ',' or ')' before 'size' ../../../owlib/src/include/ow_functions.h:199: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:206: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:207: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:209: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:209: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:210: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:210: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:211: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:211: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:212: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:212: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:213: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:213: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:214: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:214: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:216: error: expected declaration specifiers or '...' before 'size_t' ../../../owlib/src/include/ow_functions.h:217: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/include/sys/ioctl.h:30, from ../../../owlib/src/include/ow_connection.h:69, from owfs.c:19: /usr/include/bits/ioctl-types.h:29: error: redefinition of 'struct winsize' /usr/include/bits/ioctl-types.h:38: error: redefinition of 'struct termio' In file included from ../../../owlib/src/include/ow_connection.h:70, from owfs.c:19: ../../../owlib/src/include/ow_transaction.h:81: error: expected specifier-qualifier-list before 'size_t' In file included from owfs.c:19: ../../../owlib/src/include/ow_connection.h:129: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:129: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:131: error: expected ';' before 'int' ../../../owlib/src/include/ow_connection.h:372: error: expected specifier-qualifier-list before 'size_t' ../../../owlib/src/include/ow_connection.h:504: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:504: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:505: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:505: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:506: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:506: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:507: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:507: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:508: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:508: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:514: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:514: error: expected ';', ',' or ')' before 'len' ../../../owlib/src/include/ow_connection.h:515: warning: type defaults to 'int' in declaration of 'size_t' ../../../owlib/src/include/ow_connection.h:515: error: expected ';', ',' or ')' before 'len' owfs.c: In function 'main': owfs.c:68: warning: implicit declaration of function 'strdup' owfs.c:68: warning: incompatible implicit declaration of built-in function 'strdup' owfs.c:164: warning: implicit declaration of function 'fuse_main' make[4]: *** [owfs.o] Error 1 make[4]: Leaving directory/usr/local/owfs-2.7p4/module/owfs/src/c'make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
/usr/local/owfs-2.7p4/module/owfs/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/usr/local/owfs-2.7p4/module/owfs'make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/owfs-2.7p4/module'
make: *** [all-recursive] Error 1
OK, with the help of a friend I've sorted this.
Early on the configure process complained about missing headers - so I added command line switches to tell it where to find stuff. BUT this caused problems finding other headers, or more correctly make the pre-compiler use the wrong ones. Taking out these command line switches, and editing the source to #incude the missing headers sorted the problem.
Could you try the latest CVS version and tell me if you still have the problems with the latest version?
Download http://owfs.sourceforge.net/daily/owfs-latest.tar.gz
/Christian