Bug 6729 - Enabling socket wrapper prevents NTVFS from building
Enabling socket wrapper prevents NTVFS from building
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Build
unspecified
Other Other
: P3 normal
: ---
Assigned To: Jelmer Vernooij
Matthias Dieter Wallnöfer
http://build.samba.org/?function=View...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-15 15:03 UTC by Matt Kraai
Modified: 2009-09-15 22:47 UTC (History)
0 users

See Also:


Attachments
Prevent structure function pointer members from being expanded (6.43 KB, patch)
2009-09-15 17:03 UTC, Matt Kraai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kraai 2009-09-15 15:03:41 UTC
If the socket wrapper library is enabled, NTVFS fails to build on QNX with the following error messages:

Compiling ntvfs/ntvfs_generic.c
ntvfs/ntvfs_generic.c:1227:45: error: macro "close" passed 3 arguments, but takes just 1
ntvfs/ntvfs_generic.c: In function 'ntvfs_map_write_finish':
ntvfs/ntvfs_generic.c:1227: error: incompatible types in assignment
ntvfs/ntvfs_generic.c: In function 'ntvfs_map_read':
ntvfs/ntvfs_generic.c:1400: error: 'const struct ntvfs_ops' has no member named 'swrap_read'
ntvfs/ntvfs_generic.c:1410: error: 'const struct ntvfs_ops' has no member named 'swrap_read'
ntvfs/ntvfs_generic.c:1438: error: 'const struct ntvfs_ops' has no member named 'swrap_read'
ntvfs/ntvfs_generic.c:1449: error: 'const struct ntvfs_ops' has no member named 'swrap_read'
ntvfs/ntvfs_generic.c:1533:44: error: macro "close" passed 3 arguments, but takes just 1
ntvfs/ntvfs_generic.c: In function 'ntvfs_map_close':
ntvfs/ntvfs_generic.c:1533: error: incompatible types in assignment
The following command failed:
ccache gcc       -I./lib/tdr -I/home/build/build_farm/samba_4_0_test/source/lib/tdr       -Iheimdal/../heimdal_build -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi/gssapi -Iheimdal/lib/gssapi/spnego -Iheimdal/lib/gssapi/krb5 -Iheimdal/lib/gssapi/mech -I./heimdal_build -I/home/build/build_farm/samba_4_0_test/source/heimdal_build -I./heimdal/lib/roken -I/home/build/build_farm/samba_4_0_test/source/heimdal/lib/roken -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi -Ilib/ldb/include -Ilib/ldb/include -I./lib/ldb/include -I/home/build/build_farm/samba_4_0_test/source/lib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include   -Iheimdal/../heimdal_build -Iheimdal/lib/hdb -Iheimdal/lib/hdb -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/ldb_tdb -I../lib/tdb/include -Ilib/ldb/include -Ilib/ldb/include     -I../lib/zlib -Iheimdal/../heimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/asn1 -Iheimdal/lib/com_err   -Iheimdal/../heimdal_build -Iheimdal/lib/hx509 -Iheimdal/lib/hx509 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/hx509 -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto -Iheimdal/lib -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto/imath -Iheimdal/../heimdal_build -Iheimdal/lib/wind -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/com_err -Iheimdal/../heimdal_build -Iheimdal/lib/roken -Iheimdal/include -I../lib/socket_wrapper        -I/home/build/build_farm/samba_4_0_test/source/../lib/talloc   -I/usr/local/include  -I./lib/events -I/home/build/build_farm/samba_4_0_test/source/lib/events -I../lib/tevent   -I../lib/talloc -Ilib/replace     -DSTATIC_ntvfs_MODULES="ntvfs_simple_init, ntvfs_cifs_init, ntvfs_nbench_init, ntvfs_unixuid_init, ntvfs_cifs_posix_init, ntvfs_smb2_init, ntvfs_ipc_init, ntvfs_print_init, ntvfs_posix_init,NULL"  -I/home/build/build_farm/samba_4_0_test/source/include -I/home/build/build_farm/samba_4_0_test/source -I/home/build/build_farm/samba_4_0_test/source/lib -I/home/build/build_farm/samba_4_0_test/source/../lib/replace -I/home/build/build_farm/samba_4_0_test/source/../lib/talloc -I/home/build/build_farm/samba_4_0_test/source/.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H  -c ntvfs/ntvfs_generic.c -o ntvfs/ntvfs_generic.o
make: *** [ntvfs/ntvfs_generic.o] Error 1
Comment 1 Matt Kraai 2009-09-15 17:03:01 UTC
Created attachment 4700 [details]
Prevent structure function pointer members from being expanded

Similar errors occur in a couple other files too, so this patch fixes all of them.
Comment 2 Matt Kraai 2009-09-15 22:47:01 UTC
This problem appears to be fixed now.