Bug 3623 - Warnings during make on tru64 5.1b pk4
Warnings during make on tru64 5.1b pk4
Status: RESOLVED INVALID
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.21c
Alpha OSF/1
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-22 11:45 UTC by Samba
Modified: 2006-04-21 02:17 UTC (History)
1 user (show)

See Also:


Attachments
Open this with wordpad (18.01 KB, text/plain)
2006-04-21 01:55 UTC, Pavan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samba 2006-03-22 11:45:39 UTC
I get these warnings during the make.
I don't know what they mean or if they can be ignored.
Please help

cc: Warning: smbd/password.c, line 437: In this statement, the referenced type of the pointer value "&host" is "pointer to char", which is not compatible with "pointer to const char". (ptrmismatch)
                while (getnetgrent(&host, &user, &domain)) {	
-----------------------------------^
cc: Warning: smbd/password.c, line 437: In this statement, the referenced type of the pointer value "&user" is "pointer to char", which is not compatible with "pointer to const char". (ptrmismatch)
                while (getnetgrent(&host, &user, &domain)) {
------------------------------------------^
cc: Warning: smbd/password.c, line 437: In this statement, the referenced type of the pointer value "&domain" is "pointer to char", which is not compatible with "pointer to const char". (ptrmismatch)
                while (getnetgrent(&host, &user, &domain)) {
-------------------------------------------------^
cc: Warning: smbd/service.c, line 500: In this statement, the referenced type of the pointer value "&conn->ngroups" is "unsigned long", which is not compatible with "int". (ptrmismatch)
                get_current_groups(conn->gid, &conn->ngroups,&conn->groups);
----------------------------------------------^
cc: Warning: lib/system_smbd.c, line 112: In this statement, the referenced type of the pointer value "user" is const, but the referenced type of the target of this assignment is not. (notconstqual)
        if (initgroups(user, gid) != 0) {
-----------------------^
cc: Warning: smbd/server.c, line 723: In this statement, the referenced type of the pointer value "argv" is "pointer to const char", which is not compatible with "pointer to char". (ptrmismatch)
        set_auth_parameters(argc,argv);
---------------------------------^
cc: Warning: lib/system_smbd.c, line 112: In this statement, the referenced type of the pointer value "user" is const, but the referenced type of the target of this assignment is not. (notconstqual)
        if (initgroups(user, gid) != 0) {
-----------------------^
Compiling modules/vfs_audit.c with -fPIC
Building plugin bin/audit.so
ld:
Warning: Unresolved:
lp_parm_enum
smb_register_vfs
Compiling modules/vfs_extd_audit.c with -fPIC
Building plugin bin/extd_audit.so
ld:
Warning: Unresolved:
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
debug_add_class
lp_parm_enum
smb_register_vfs
Compiling modules/vfs_full_audit.c with -fPIC
Building plugin bin/full_audit.so
ld:
Warning: Unresolved:
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
bitmap_allocate
bitmap_free
bitmap_set
bitmap_query
debug_add_class
standard_sub_snum
smb_panic
strequal
safe_strcpy_fn
fstr_sprintf
lp_servicename
lp_parm_const_string
lp_parm_string_list
lp_parm_enum
smb_register_vfs
smb_vsnprintf
Compiling modules/vfs_netatalk.c with -fPIC
Building plugin bin/netatalk.so
ld:
Warning: Unresolved:
talloc_init
talloc_free
talloc_strdup
talloc_asprintf
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
sys_lstat
sys_opendir
sys_readdir
sys_closedir
calloc_array
free_namearray
become_root
unbecome_root
smb_register_vfs
Compiling modules/vfs_fake_perms.c with -fPIC
Building plugin bin/fake_perms.so
ld:
Warning: Unresolved:
smb_register_vfs
current_user
Compiling modules/vfs_default_quota.c with -fPIC
Building plugin bin/default_quota.so
ld:
Warning: Unresolved:
lp_parm_int
lp_parm_bool
smb_register_vfs
Compiling modules/vfs_readonly.c with -fPIC
Compiling modules/getdate.c with -fPIC
Building plugin bin/readonly.so
ld:
Warning: Unresolved:
lp_parm_string_list
smb_register_vfs
Compiling modules/vfs_cap.c with -fPIC
Building plugin bin/cap.so
ld:
Warning: Unresolved:
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
safe_strcpy_fn
smb_register_vfs
Compiling modules/vfs_expand_msdfs.c with -fPIC
Building plugin bin/expand_msdfs.so
ld:
Warning: Unresolved:
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
standard_sub_conn
client_addr
safe_strcpy_fn
safe_strcat_fn
strchr_m
x_fopen
x_fclose
x_fgets
smb_register_vfs
Compiling modules/vfs_shadow_copy.c with -fPIC
Building plugin bin/shadow_copy.so
ld:
Warning: Unresolved:
_talloc_realloc
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
debug_add_class
smb_snprintf
realloc_array
smb_register_vfs
Compiling modules/CP850.c with -fPIC
Building plugin bin/CP850.so
ld:
Warning: Unresolved:
smb_register_charset
Compiling modules/CP437.c with -fPIC
Building plugin bin/CP437.so
ld:
Warning: Unresolved:
smb_register_charset
Compiling auth/auth_script.c with -fPIC
Building plugin bin/script.so
ld:
Warning: Unresolved:
dbgtext
dbghdr
DEBUGLEVEL_CLASS
DEBUGLEVEL_CLASS_ISSET
smb_register_auth
load_auth_module
make_auth_methods
smbrunsecret
smb_snprintf
safe_strcpy_fn
safe_strcat_fn
lp_parm_const_string
Comment 1 Pavan 2006-04-11 07:16:06 UTC
Hi,
   These warnings can be ignored as long as make does not exit with error message. 

Regarding "cc:Warning" these are because of type mismatch. I am not sure of these  "Unresolved" messages, I think we get them because #define symbols are unresolved during link/load time.

 Did your make throw any error on screen while building or while installing?
 Let me know about the output. 
Comment 2 Gerald (Jerry) Carter 2006-04-11 07:23:26 UTC
Pavan is correct.  Unless the build actually failed, I think we 
can close this report.
Comment 3 Pavan 2006-04-21 00:10:32 UTC
Hi all,
       I did sanity testing of basic samba functionality which works fine even with these warning messages. But to understand why in Tru64 (not in Linux) we are getting these warnings, I debugged little more in to problem.

       The warnings( I am talking only about Unresolved symbols at link stage) that we are getting in Tru64 has to do with the way linker is implemented in Tru64. I ran Makefile(on linux) with the same LDFLAGS that Tru64 is using, but on Linux I dont get these warning messages.

    We are getting these warning messages only while linking  VFS_MODULES,CHARSET_MODULES and AUTH_MODULES declared in Makefile.

 I took an example of,
 
    Unresolved symol: lp_parm_enum while linking  plugin audit.so.
audit.so is generated by  modules/vfs_audit.c . The vfs_audit.c is calling lp_parm_enum() in one of its functions. The defination for lp_parm_enum() is there in param/loadparm.c. I think param/loadparm.o (to my understanding of Makefile)is not linked while generating audit.so. So we are getting Unresolved symbol warning. 

  Now my question is, why is this linked properly in Linux and not in Tru64. As I dont know thorough internal workings of link editor in Linux and in Tru64 I am unable to debug more in to this.

Any kind of help is appreciated.

Thanks,
Pavan
Comment 4 Volker Lendecke 2006-04-21 00:21:16 UTC
The only question is if you can use the modules that give the warnings. smbd does define a symbol called lp_parm_string which should be dynamically linked at dlopen() time. So, is it possible to use for example 'vfs objects = audit'?

If yes, then these warnings are just warnings and not errors.

Volker
Comment 5 Pavan 2006-04-21 01:55:34 UTC
Created attachment 1869 [details]
Open this with wordpad
Comment 6 Pavan 2006-04-21 01:59:38 UTC
Thanks for the update.

In previous reply I have attached the output of 
#nm -u smbd which lists Undefined symbols. One amoung these symbols is dlopen.

I dont how to test the working of vfs_objects. Can you please elaborate this?

Thanks,
Pavan
Comment 7 Volker Lendecke 2006-04-21 02:17:49 UTC
Please read the Samba3-HOWTO for information how to use VFS modules. So far I'm assuming that there is no bug. If you can not use for example the audit VFS module, please re-open the bug.

Thanks,

Volker