Compile time bugs/warnings 3.0.0

John H Terpstra jht at samba.org
Sat Apr 19 14:42:53 GMT 2003


Guys,

The following complilation messages may need attention. Some are just
warnings.

- John T.

Compiling lib/sysacls.c
lib/sysacls.c: In function `sys_acl_get_perm':
lib/sysacls.c:122: warning: implicit declaration of function
`acl_get_perm'

Compiling passdb/secrets.c
passdb/secrets.c: In function `secrets_fetch':
passdb/secrets.c:61: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_store':
passdb/secrets.c:77: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c:79: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_delete':
passdb/secrets.c:93: warning: assignment discards qualifiers from pointer
target type

Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c: In function `ldapsam_search':
passdb/pdb_ldap.c:532: warning: passing arg 5 of `ldap_search_s' from
incompatible pointer type
/usr/include/inttypes.h: At top level:
passdb/pdb_ldap.c:616: warning: `ldapsam_extended_operation' defined but
not used
passdb/pdb_ldap.c:1290: warning: `need_ldap_mod' defined but not used

Compiling lib/util_str.c
lib/util_str.c: In function `toktocliplist':
lib/util_str.c:110: warning: initialization discards qualifiers from
pointer target type
lib/util_str.c:133: warning: assignment discards qualifiers from pointer
target type

Compiling tdb/tdbutil.c
tdb/tdbutil.c: In function `make_tdb_data':
tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_chainlock_with_timeout_internal':
tdb/tdbutil.c:59: warning: passing arg 1 of `tdb_set_lock_alarm' discards
qualifiers from pointer target type

Compiling smbd/oplock_linux.c
smbd/oplock_linux.c: In function `set_capability':
smbd/oplock_linux.c:85: warning: implicit declaration of function `capget'
smbd/oplock_linux.c:92: warning: implicit declaration of function `capset'

Compiling smbd/notify_hash.c
smbd/notify_hash.c: In function `notify_hash':
smbd/notify_hash.c:91: warning: assignment discards qualifiers from
pointer target type

Compiling auth/pampass.c
auth/pampass.c: In function `make_pw_chat':
auth/pampass.c:224: warning: passing arg 1 of `next_token' from
incompatible pointer type
auth/pampass.c:235: warning: passing arg 1 of `next_token' from
incompatible pointer type

Compiling libads/kerberos.c
libads/kerberos.c: In function `kerberos_kinit_password':
libads/kerberos.c:84: warning: passing arg 6 of
`krb5_get_init_creds_password' discards qualifiers from pointer target
type

Compiling web/swat.c
web/swat.c: In function `wizard_page':
web/swat.c:740: warning: char format, pointer arg (arg 2)

Compiling client/client.c
client/client.c: In function `do_get':
client/client.c:699: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type
client/client.c: In function `do_put':
client/client.c:1073: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type
client/client.c: In function `main':
client/client.c:2661: warning: passing arg 1 of `interpret_protocol'
discards qualifiers from pointer target type
client/client.c:2664: warning: passing arg 3 of `tar_parseargs' discards
qualifiers from pointer target type
client/client.c:2707: warning: passing arg 1 of
`lp_set_name_resolve_order' discards qualifiers from pointer target type

Compiling utils/net_lookup.c
utils/net_lookup.c: In function `net_lookup_kdc':
utils/net_lookup.c:204: warning: passing arg 3 of `krb5_locate_kdc' from
incompatible pointer type

Compiling rpcclient/cmd_spoolss.c
rpcclient/cmd_spoolss.c: In function `get_driver_3_param':
rpcclient/cmd_spoolss.c:1150: warning: passing arg 1 of `strtok' discards
qualifiers from pointer target type

Compiling rpcclient/cmd_reg.c
rpcclient/cmd_reg.c: In function `cmd_reg_shutdown':
rpcclient/cmd_reg.c:910: warning: passing arg 2 of `getopt' from
incompatible pointer type

Compiling utils/profiles.c
utils/profiles.c: In function `main':
utils/profiles.c:554: warning: passing arg 2 of `get_sid' discards
qualifiers from pointer target type
utils/profiles.c:563: warning: passing arg 2 of `get_sid' discards
qualifiers from pointer target type
/usr/include/inttypes.h: At top level:
utils/profiles.c:465: warning: `change_sid' defined but not used

Compiling pam_smbpass/pam_smb_auth.c with -fPIC
pam_smbpass/pam_smb_auth.c: In function `pam_sm_authenticate':
pam_smbpass/pam_smb_auth.c:70: warning: `oldsig_handler' might be used
uninitialized in this function

Compiling pam_smbpass/support.c with -fPIC
pam_smbpass/support.c: In function `_smb_verify_password':
pam_smbpass/support.c:311: warning: unused variable `hash_pass'

Compiling lib/util_str.c with -fPIC
lib/util_str.c: In function `toktocliplist':
lib/util_str.c:110: warning: initialization discards qualifiers from
pointer target type
lib/util_str.c:133: warning: assignment discards qualifiers from pointer
target type

tdb/tdbutil.c: In function `make_tdb_data':
tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer
target type
tdb/tdbutil.c: In function `tdb_chainlock_with_timeout_internal':
tdb/tdbutil.c:59: warning: passing arg 1 of `tdb_set_lock_alarm' discards
qualifiers from pointer target type

Compiling passdb/pdb_ldap.c with -fPIC
passdb/pdb_ldap.c: In function `ldapsam_search':
passdb/pdb_ldap.c:532: warning: passing arg 5 of `ldap_search_s' from
incompatible pointer type
/usr/include/inttypes.h: At top level:
passdb/pdb_ldap.c:616: warning: `ldapsam_extended_operation' defined but
not used
passdb/pdb_ldap.c:1290: warning: `need_ldap_mod' defined but not used

Compiling passdb/secrets.c with -fPIC
passdb/secrets.c: In function `secrets_fetch':
passdb/secrets.c:61: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_store':
passdb/secrets.c:77: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c:79: warning: assignment discards qualifiers from pointer
target type
passdb/secrets.c: In function `secrets_delete':
passdb/secrets.c:93: warning: assignment discards qualifiers from pointer
target type

Compiling libsmb/libsmb_cache.c with -fPIC
libsmb/libsmb_cache.c: In function `smbc_purge_cached':
libsmb/libsmb_cache.c:166: warning: implicit declaration of function
`smbc_remove_unused_server'

Compiling libads/kerberos.c with -fPIC
libads/kerberos.c: In function `kerberos_kinit_password':
libads/kerberos.c:84: warning: passing arg 6 of
`krb5_get_init_creds_password' discards qualifiers from pointer target
type

Compiling passdb/pdb_mysql.c
passdb/pdb_mysql.c: In function `mysqlsam_setsampwent':
passdb/pdb_mysql.c:373: warning: long unsigned int format, different type
arg (arg 2)
passdb/pdb_mysql.c: In function `mysqlsam_getgrsid':
passdb/pdb_mysql.c:899: warning: implicit declaration of function
`get_group_map_from_sid'
passdb/pdb_mysql.c: In function `mysqlsam_getgrgid':
passdb/pdb_mysql.c:906: warning: implicit declaration of function
`get_group_map_from_gid'
passdb/pdb_mysql.c: In function `mysqlsam_getgrnam':
passdb/pdb_mysql.c:913: warning: implicit declaration of function
`get_group_map_from_ntname'
passdb/pdb_mysql.c: In function `mysqlsam_add_group_mapping_entry':
passdb/pdb_mysql.c:920: warning: implicit declaration of function
`add_mapping_entry'
passdb/pdb_mysql.c: In function `mysqlsam_delete_group_mapping_entry':
passdb/pdb_mysql.c:934: warning: implicit declaration of function
`group_map_remove'
passdb/pdb_mysql.c: In function `mysqlsam_enum_group_mapping':
passdb/pdb_mysql.c:943: warning: implicit declaration of function
`enum_group_mapping'

Compiling smbwrapper/smbw.c with -fPIC
smbwrapper/smbw.c: In function `smbw_init':
smbwrapper/smbw.c:63: warning: assignment from incompatible pointer type
smbwrapper/smbw.c: In function `smbw_find_workgroup':
smbwrapper/smbw.c:262: warning: assignment discards qualifiers from
pointer target type
smbwrapper/smbw.c: In function `smbw_parse_path':
smbwrapper/smbw.c:323: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:331: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c:338: warning: passing arg 1 of `next_token' from
incompatible pointer type
smbwrapper/smbw.c: In function `get_envvar_auth_data':
smbwrapper/smbw.c:413: warning: assignment discards qualifiers from
pointer target type
smbwrapper/smbw.c: In function `smbw_lseek':
smbwrapper/smbw.c:1250: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type
smbwrapper/smbw.c: In function `smbw_fork':
smbwrapper/smbw.c:1405: warning: implicit declaration of function `__fork'

Compiling smbwrapper/smbw_stat.c with -fPIC
smbwrapper/smbw_stat.c: In function `smbw_fstat':
smbwrapper/smbw_stat.c:147: warning: passing arg 4 of `cli_getattrE' from
incompatible pointer type

Compiling smbwrapper/wrapped.c with -fPIC
smbwrapper/wrapped.c: In function `open':
smbwrapper/wrapped.c:38: warning: implicit declaration of function
`smbw_path'
smbwrapper/wrapped.c:39: warning: implicit declaration of function
`smbw_open'
smbwrapper/wrapped.c:42: warning: implicit declaration of function
`syscall'
smbwrapper/wrapped.c: In function `open64':
smbwrapper/wrapped.c:65: warning: implicit declaration of function
`__open64'
smbwrapper/wrapped.c: In function `pread':
smbwrapper/wrapped.c:86: warning: implicit declaration of function
`smbw_fd'
smbwrapper/wrapped.c:87: warning: implicit declaration of function
`smbw_pread'
smbwrapper/wrapped.c:90: warning: implicit declaration of function
`real_pread'
smbwrapper/wrapped.c: In function `pread64':
smbwrapper/wrapped.c:101: warning: implicit declaration of function
`__pread64'
smbwrapper/wrapped.c: In function `pwrite':
smbwrapper/wrapped.c:109: warning: implicit declaration of function
`smbw_pwrite'
smbwrapper/wrapped.c:112: warning: implicit declaration of function
`real_pwrite'
smbwrapper/wrapped.c: In function `pwrite64':
smbwrapper/wrapped.c:123: warning: implicit declaration of function
`__pwrite64'
smbwrapper/wrapped.c: In function `chdir':
smbwrapper/wrapped.c:130: warning: implicit declaration of function
`smbw_chdir'
smbwrapper/wrapped.c: In function `close':
smbwrapper/wrapped.c:149: warning: implicit declaration of function
`smbw_close'
smbwrapper/wrapped.c:151: warning: implicit declaration of function
`smbw_local_fd'
smbwrapper/wrapped.c: In function `fchdir':
smbwrapper/wrapped.c:174: warning: implicit declaration of function
`smbw_fchdir'
smbwrapper/wrapped.c: In function `fcntl':
smbwrapper/wrapped.c:193: warning: implicit declaration of function
`smbw_fcntl'
smbwrapper/wrapped.c: In function `getdents':
smbwrapper/wrapped.c:218: warning: implicit declaration of function
`smbw_getdents'
smbwrapper/wrapped.c: In function `lseek':
smbwrapper/wrapped.c:241: warning: implicit declaration of function
`smbw_lseek'
smbwrapper/wrapped.c: In function `read':
smbwrapper/wrapped.c:263: warning: implicit declaration of function
`smbw_read'
smbwrapper/wrapped.c: In function `write':
smbwrapper/wrapped.c:285: warning: implicit declaration of function
`smbw_write'
smbwrapper/wrapped.c: In function `access':
smbwrapper/wrapped.c:308: warning: implicit declaration of function
`smbw_access'
smbwrapper/wrapped.c: In function `chmod':
smbwrapper/wrapped.c:319: warning: implicit declaration of function
`smbw_chmod'
smbwrapper/wrapped.c: In function `chown':
smbwrapper/wrapped.c:330: warning: implicit declaration of function
`smbw_chown'
smbwrapper/wrapped.c: In function `getcwd':
smbwrapper/wrapped.c:339: warning: implicit declaration of function
`smbw_getcwd'
smbwrapper/wrapped.c: In function `mkdir':
smbwrapper/wrapped.c:348: warning: implicit declaration of function
`smbw_mkdir'
smbwrapper/wrapped.c: In function `__fxstat':
smbwrapper/wrapped.c:362: warning: implicit declaration of function
`smbw_fstat'
smbwrapper/wrapped.c:366: warning: implicit declaration of function
`xstat_convert'
smbwrapper/wrapped.c: In function `__xstat':
smbwrapper/wrapped.c:378: warning: implicit declaration of function
`smbw_stat'
smbwrapper/wrapped.c: In function `unlink':
smbwrapper/wrapped.c:445: warning: implicit declaration of function
`smbw_unlink'
smbwrapper/wrapped.c: In function `utime':
smbwrapper/wrapped.c:456: warning: implicit declaration of function
`smbw_utime'
smbwrapper/wrapped.c: In function `utimes':
smbwrapper/wrapped.c:467: warning: implicit declaration of function
`smbw_utimes'
smbwrapper/wrapped.c:470: warning: implicit declaration of function
`real_utimes'
smbwrapper/wrapped.c: In function `readlink':
smbwrapper/wrapped.c:477: warning: implicit declaration of function
`smbw_readlink'
smbwrapper/wrapped.c: In function `rename':
smbwrapper/wrapped.c:495: warning: implicit declaration of function
`smbw_rename'
smbwrapper/wrapped.c: In function `rmdir':
smbwrapper/wrapped.c:504: warning: implicit declaration of function
`smbw_rmdir'
smbwrapper/wrapped.c: In function `dup':
smbwrapper/wrapped.c:528: warning: implicit declaration of function
`smbw_dup'
smbwrapper/wrapped.c: In function `dup2':
smbwrapper/wrapped.c:541: warning: implicit declaration of function
`smbw_dup2'
smbwrapper/wrapped.c: In function `readdir':
smbwrapper/wrapped.c:561: warning: implicit declaration of function
`smbw_dirp'
smbwrapper/wrapped.c:562: warning: implicit declaration of function
`smbw_readdir'
smbwrapper/wrapped.c: In function `stat64':
smbwrapper/wrapped.c:647: warning: implicit declaration of function
`stat64_convert'
smbwrapper/wrapped.c:650: warning: implicit declaration of function
`real_stat64'
smbwrapper/wrapped.c: In function `fstat64':
smbwrapper/wrapped.c:661: warning: implicit declaration of function
`real_fstat64'
smbwrapper/wrapped.c: In function `lstat64':
smbwrapper/wrapped.c:672: warning: implicit declaration of function
`real_lstat64'
smbwrapper/wrapped.c: In function `llseek':
smbwrapper/wrapped.c:682: warning: implicit declaration of function
`real_llseek'
smbwrapper/wrapped.c: In function `readdir64':
smbwrapper/wrapped.c:694: warning: implicit declaration of function
`dirent64_convert'
smbwrapper/wrapped.c:697: warning: implicit declaration of function
`real_readdir64'
smbwrapper/wrapped.c: In function `fork':
smbwrapper/wrapped.c:703: warning: implicit declaration of function
`smbw_fork'

Compiling torture/torture.c
torture/torture.c: In function `run_readwritemulti':
torture/torture.c:571: warning: passing arg 1 of `cli_sockopt' from
incompatible pointer type
torture/torture.c:574: warning: passing arg 1 of `rw_torture3' from
incompatible pointer type
torture/torture.c:576: warning: passing arg 1 of
`torture_close_connection' from incompatible pointer type
torture/torture.c: In function `run_nbench':
torture/torture.c:794: warning: passing arg 2 of `signal' from
incompatible pointer type
torture/torture.c: In function `run_tcon_devtype_test':
torture/torture.c:1110: warning: `ret' might be used uninitialized in this
function
Compiling torture/nbio.c
torture/nbio.c: In function `nb_alarm':
torture/nbio.c:68: warning: passing arg 2 of `signal' from incompatible
pointer type
/usr/include/inttypes.h: At top level:
torture/nbio.c:83: warning: `ne_find_handle' defined but not used
Compiling torture/scanner.c
torture/scanner.c: In function `torture_trans2_scan':
torture/scanner.c:201: warning: passing arg 1 of `torture_open_connection'
from incompatible pointer type
torture/scanner.c: In function `torture_nttrans_scan':
torture/scanner.c:403: warning: passing arg 1 of `torture_open_connection'
from incompatible pointer type
Compiling torture/utable.c
torture/utable.c: In function `torture_utable':
torture/utable.c:37: warning: passing arg 1 of `torture_open_connection'
from incompatible pointer type
torture/utable.c: In function `torture_casetable':
torture/utable.c:126: warning: passing arg 1 of `torture_open_connection'
from incompatible pointer type
Compiling torture/denytest.c
torture/denytest.c: In function `torture_denytest1':
torture/denytest.c:1417: warning: passing arg 1 of
`torture_open_connection' from incompatible pointer type
torture/denytest.c: In function `torture_denytest2':
torture/denytest.c:1503: warning: passing arg 1 of
`torture_open_connection' from incompatible pointer type
torture/denytest.c:1503: warning: passing arg 1 of
`torture_open_connection' from incompatible pointer type
Compiling torture/mangle_test.c
torture/mangle_test.c: In function `test_one':
torture/mangle_test.c:99: warning: assignment discards qualifiers from
pointer target type
torture/mangle_test.c: In function `torture_mangle':
torture/mangle_test.c:159: warning: passing arg 1 of
`torture_open_connection' from incompatible pointer type

Compiling torture/vfstest.c
torture/vfstest.c:224: warning: initialization from incompatible pointer
type
torture/vfstest.c:225: warning: initialization from incompatible pointer
type
torture/vfstest.c: In function `do_cmd':
torture/vfstest.c:274: warning: passing arg 1 of `next_token' from
incompatible pointer type
torture/vfstest.c: In function `process_cmd':
torture/vfstest.c:348: warning: passing arg 1 of `next_token' from
incompatible pointer type
torture/vfstest.c: In function `main':
torture/vfstest.c:534: warning: passing arg 2 of `process_file' discards
qualifiers from pointer target type

Compiling utils/debug2html.c
utils/debug2html.c: In function `newblock':
utils/debug2html.c:148: warning: enumeration value `dbg_null' not handled
in switch
utils/debug2html.c:148: warning: enumeration value `dbg_ignore' not
handled in switch
utils/debug2html.c:148: warning: enumeration value `dbg_header' not
handled in switch
utils/debug2html.c:148: warning: enumeration value `dbg_function' not
handled in switch
utils/debug2html.c:148: warning: enumeration value `dbg_message' not
handled in switch
utils/debug2html.c:148: warning: enumeration value `dbg_eof' not handled
in switch
utils/debug2html.c:161: warning: enumeration value `dbg_null' not handled
in switch
utils/debug2html.c:161: warning: enumeration value `dbg_ignore' not
handled in switch
utils/debug2html.c:161: warning: enumeration value `dbg_header' not
handled in switch
utils/debug2html.c:161: warning: enumeration value `dbg_sourcefile' not
handled in switch
utils/debug2html.c:161: warning: enumeration value `dbg_function' not
handled in switch
utils/debug2html.c:161: warning: enumeration value `dbg_message' not
handled in switch
utils/debug2html.c:161: warning: enumeration value `dbg_eof' not handled
in switch

+ make -C ../examples/pdb
make: Entering directory
`/usr/src/packages/BUILD/samba-3.0.0/examples/pdb'
libtool gcc  -I../../source -I../../source/include -I../../source/ubiqx
-I../../source/smbwrapper -Wall -g -I/usr/include/heimdal -c pdb_test.c
mkdir .libs
gcc -I../../source -I../../source/include -I../../source/ubiqx
-I../../source/smbwrapper -Wall -g -I/usr/include/heimdal -c pdb_test.c
-fPIC -DPIC -o .libs/pdb_test.lo
pdb_test.c:35: syntax error before "static"
make: *** [pdb_test.lo] Error 1
make: Leaving directory `/usr/src/packages/BUILD/samba-3.0.0/examples/pdb'


- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba-technical mailing list