RE: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation fault and core dump

2004-03-04 Thread Crosland, Jerel
But is there some way to compile en_US support into Samba? In my google research it 
seems that RH uses en_US.UTF-8 and the instructions were to simply remove the .UTF-8 
to get it to work. I don't want to have to train my admins to always change their LANG 
environment variable before they try and run ANY Samba command. That's kludgy, to say 
the least. Does this mean that Samba can ONLY work in a C language environment? It 
doesn't run with foreign character sets, etc??

Jerel Crosland
Technical Specialist
 818/704-3187


-Original Message-
From: William Jojo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 6:10 PM
To: Crosland, Jerel
Cc: [EMAIL PROTECTED]
Subject: RE: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation
fault and core dump




well, you can

export LANG=C

before starting the daemons


Bill


On Wed, 3 Mar 2004, Crosland, Jerel wrote:

 Yes, the LANG environment variable is LANG=en_US. I'm a LITTLE concerned about 
 changing this for the entire server though. Is there any way to get Samba to 
 understand LANG=en_US? Compilation or configuration options?

 Jerel Crosland
 Technical Specialist
  818/704-3187

 Inside every small problem is a large problem struggling to get out.


 -Original Message-
 From: William Jojo [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 03, 2004 4:15 PM
 To: Crosland, Jerel
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation
 fault and core dump





 Check your /etc/environment file and see if LANG=C if it reads anything
 other than LANG=C (like LANG=en_US) you will get this segfault. You will
 need root priv to change this.


 Regards,

 Bill


 On Wed, 3 Mar 2004, Crosland, Jerel wrote:

  First off, let me state that I am not a C programmer at all. I am a programmer in 
  other languages, so I understand the basic configure/make/make install procedure 
  for most GNU packages, and have done it lots of times.
 
  I downloaded the GNU iconv libraries, compiled them and used 
  --prefix=/usr/local/special to keep from replacing the standard AIX libraries. 
  Then I downloaded the 3.0.2a source and compiled it with --prefix=/usr/local and 
  --with-libiconv=/usr/local/special. It compiled with some warnings (see below) but 
  no errors. I installed it, but when I run the net command, I get a segmentation 
  fault and a core dump. I am using gcc 3.3.2 on AIX 5.2 ML2. I don't know if any of 
  these matter, but here are the warnings I got:
 
  libsmb/clireadwrite.c:54: warning: right shift count = width of type
  libsmb/clireadwrite.c:54: warning: right shift count = width of type
  libsmb/clireadwrite.c: In function `cli_issue_write':
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  printing/pcap.c: In function `pcap_printername_ok':
  printing/pcap.c:276: warning: passing arg 1 of `strlocate' discards qualifiers 
  from pointer target type
  printing/pcap.c:277: warning: passing arg 1 of `ScanQconfig' discards qualifiers 
  from pointer target type
  printing/pcap.c:277: warning: passing arg 2 of `ScanQconfig' discards qualifiers 
  from pointer target type
  lib/util_sock.c: In function `is_a_socket':
  lib/util_sock.c:40: warning: passing arg 5 of `getsockopt' from incompatible 
  pointer type
  lib/util_sock.c: In function `print_socket_options':
  lib/util_sock.c:102: warning: passing arg 5 of `getsockopt' from incompatible 
  pointer type
  lib/util_sock.c: In function `client_inaddr':
  lib/util_sock.c:819: warning: passing arg 3 of `ngetpeername' from incompatible 
  pointer type
  lib/util_sock.c: In function `get_peer_addr':
  lib/util_sock.c:951: warning: passing arg 3 of `ngetpeername' from incompatible 
  pointer type
  lib/util_sock.c: In function `get_socket_addr':
  lib/util_sock.c:974: warning: passing arg 3 of `ngetsockname' from incompatible 
  pointer type
  tdb/tdbutil.c: In function `make_tdb_data':
  tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer target type
  nsswitch/winbindd_acct.c: In function `string2group':
  nsswitch/winbindd_acct.c:225: warning: passing arg 1 of `next_token' from 
  incompatible pointer type
  client/client.c: In function `do_get':
  client/client.c:695: warning: passing arg 4 of `cli_getattrE' from incompatible 
  pointer type
  client/client.c: In function `do_put':
  client/client.c:1071: warning: passing arg 4 of `cli_getattrE' from incompatible 
  pointer type
  utils/smbcontrol.c: In function `do_printnotify':
  utils/smbcontrol.c:423: warning: passing arg 3 of `notify_printer_byname' discards 
  qualifiers from pointer target type
  rpcclient/cmd_lsarpc.c: In function `cmd_lsa_query_info_policy':
  rpcclient/cmd_lsarpc.c:131: warning: passing arg 1 of `print_guid

Re: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation fault and core dump

2004-03-04 Thread Jeremy Allison
On Thu, Mar 04, 2004 at 10:40:34AM -0800, Crosland, Jerel wrote:
 But is there some way to compile en_US support into Samba? In my google research it 
 seems that RH uses en_US.UTF-8 and the instructions were to simply remove the .UTF-8 
 to get it to work. I don't want to have to train my admins to always change their 
 LANG environment variable before they try and run ANY Samba command. That's kludgy, 
 to say the least. Does this mean that Samba can ONLY work in a C language 
 environment? It doesn't run with foreign character sets, etc??

Yes, Samba will work in any language environment (libc bugs
notwithstanding). It will run with foreign character sets etc.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation fault and core dump

2004-03-03 Thread William Jojo



Check your /etc/environment file and see if LANG=C if it reads anything
other than LANG=C (like LANG=en_US) you will get this segfault. You will
need root priv to change this.


Regards,

Bill


On Wed, 3 Mar 2004, Crosland, Jerel wrote:

 First off, let me state that I am not a C programmer at all. I am a programmer in 
 other languages, so I understand the basic configure/make/make install procedure for 
 most GNU packages, and have done it lots of times.

 I downloaded the GNU iconv libraries, compiled them and used 
 --prefix=/usr/local/special to keep from replacing the standard AIX libraries. Then 
 I downloaded the 3.0.2a source and compiled it with --prefix=/usr/local and 
 --with-libiconv=/usr/local/special. It compiled with some warnings (see below) but 
 no errors. I installed it, but when I run the net command, I get a segmentation 
 fault and a core dump. I am using gcc 3.3.2 on AIX 5.2 ML2. I don't know if any of 
 these matter, but here are the warnings I got:

 libsmb/clireadwrite.c:54: warning: right shift count = width of type
 libsmb/clireadwrite.c:54: warning: right shift count = width of type
 libsmb/clireadwrite.c: In function `cli_issue_write':
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 printing/pcap.c: In function `pcap_printername_ok':
 printing/pcap.c:276: warning: passing arg 1 of `strlocate' discards qualifiers from 
 pointer target type
 printing/pcap.c:277: warning: passing arg 1 of `ScanQconfig' discards qualifiers 
 from pointer target type
 printing/pcap.c:277: warning: passing arg 2 of `ScanQconfig' discards qualifiers 
 from pointer target type
 lib/util_sock.c: In function `is_a_socket':
 lib/util_sock.c:40: warning: passing arg 5 of `getsockopt' from incompatible pointer 
 type
 lib/util_sock.c: In function `print_socket_options':
 lib/util_sock.c:102: warning: passing arg 5 of `getsockopt' from incompatible 
 pointer type
 lib/util_sock.c: In function `client_inaddr':
 lib/util_sock.c:819: warning: passing arg 3 of `ngetpeername' from incompatible 
 pointer type
 lib/util_sock.c: In function `get_peer_addr':
 lib/util_sock.c:951: warning: passing arg 3 of `ngetpeername' from incompatible 
 pointer type
 lib/util_sock.c: In function `get_socket_addr':
 lib/util_sock.c:974: warning: passing arg 3 of `ngetsockname' from incompatible 
 pointer type
 tdb/tdbutil.c: In function `make_tdb_data':
 tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer target type
 nsswitch/winbindd_acct.c: In function `string2group':
 nsswitch/winbindd_acct.c:225: warning: passing arg 1 of `next_token' from 
 incompatible pointer type
 client/client.c: In function `do_get':
 client/client.c:695: warning: passing arg 4 of `cli_getattrE' from incompatible 
 pointer type
 client/client.c: In function `do_put':
 client/client.c:1071: warning: passing arg 4 of `cli_getattrE' from incompatible 
 pointer type
 utils/smbcontrol.c: In function `do_printnotify':
 utils/smbcontrol.c:423: warning: passing arg 3 of `notify_printer_byname' discards 
 qualifiers from pointer target type
 rpcclient/cmd_lsarpc.c: In function `cmd_lsa_query_info_policy':
 rpcclient/cmd_lsarpc.c:131: warning: passing arg 1 of `print_guid' from incompatible 
 pointer type
 rpcclient/cmd_spoolss.c: In function `get_driver_3_param':
 rpcclient/cmd_spoolss.c:1185: warning: passing arg 1 of `strtok' discards qualifiers 
 from pointer target type
 rpcclient/cmd_reg.c: In function `cmd_reg_shutdown':
 rpcclient/cmd_reg.c:910: warning: passing arg 2 of `getopt' from incompatible 
 pointer type
 rpcclient/cmd_shutdown.c: In function `cmd_shutdown_init':
 rpcclient/cmd_shutdown.c:43: warning: passing arg 2 of `getopt' from incompatible 
 pointer type
 libsmb/spnego.c: In function `read_negTokenInit':
 libsmb/spnego.c:51: warning: passing arg 2 of `asn1_read_OID' from incompatible 
 pointer type
 libsmb/spnego.c: In function `read_negTokenTarg':
 libsmb/spnego.c:186: warning: passing arg 2 of `asn1_read_OID' from incompatible 
 pointer type
 libsmb/spnego.c: In function `free_spnego_data':
 libsmb/spnego.c:321: warning: passing arg 1 of `free' discards qualifiers from 
 pointer target type
 libsmb/spnego.c:330: warning: passing arg 1 of `free' discards qualifiers from 
 pointer target type

 The segfault is core dump is of course fatal. I have no idea how to proceed from 
 here.

 Jerel Crosland
 Technical Specialist
   818/704-3187

 The journey of a thousand miles begins with a broken fan belt and a leaky tire.



 ***
 This e-mail and any files transmitted with it are intended
 solely for the use of the addressee.  This e-mail may
 contain confidential and/or legally privileged information.
 Any review, 

RE: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation fault and core dump

2004-03-03 Thread Crosland, Jerel
Yes, the LANG environment variable is LANG=en_US. I'm a LITTLE concerned about 
changing this for the entire server though. Is there any way to get Samba to 
understand LANG=en_US? Compilation or configuration options?

Jerel Crosland
Technical Specialist
 818/704-3187

Inside every small problem is a large problem struggling to get out.


-Original Message-
From: William Jojo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 4:15 PM
To: Crosland, Jerel
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation
fault and core dump





Check your /etc/environment file and see if LANG=C if it reads anything
other than LANG=C (like LANG=en_US) you will get this segfault. You will
need root priv to change this.


Regards,

Bill


On Wed, 3 Mar 2004, Crosland, Jerel wrote:

 First off, let me state that I am not a C programmer at all. I am a programmer in 
 other languages, so I understand the basic configure/make/make install procedure for 
 most GNU packages, and have done it lots of times.

 I downloaded the GNU iconv libraries, compiled them and used 
 --prefix=/usr/local/special to keep from replacing the standard AIX libraries. Then 
 I downloaded the 3.0.2a source and compiled it with --prefix=/usr/local and 
 --with-libiconv=/usr/local/special. It compiled with some warnings (see below) but 
 no errors. I installed it, but when I run the net command, I get a segmentation 
 fault and a core dump. I am using gcc 3.3.2 on AIX 5.2 ML2. I don't know if any of 
 these matter, but here are the warnings I got:

 libsmb/clireadwrite.c:54: warning: right shift count = width of type
 libsmb/clireadwrite.c:54: warning: right shift count = width of type
 libsmb/clireadwrite.c: In function `cli_issue_write':
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 libsmb/clireadwrite.c:301: warning: right shift count = width of type
 printing/pcap.c: In function `pcap_printername_ok':
 printing/pcap.c:276: warning: passing arg 1 of `strlocate' discards qualifiers from 
 pointer target type
 printing/pcap.c:277: warning: passing arg 1 of `ScanQconfig' discards qualifiers 
 from pointer target type
 printing/pcap.c:277: warning: passing arg 2 of `ScanQconfig' discards qualifiers 
 from pointer target type
 lib/util_sock.c: In function `is_a_socket':
 lib/util_sock.c:40: warning: passing arg 5 of `getsockopt' from incompatible pointer 
 type
 lib/util_sock.c: In function `print_socket_options':
 lib/util_sock.c:102: warning: passing arg 5 of `getsockopt' from incompatible 
 pointer type
 lib/util_sock.c: In function `client_inaddr':
 lib/util_sock.c:819: warning: passing arg 3 of `ngetpeername' from incompatible 
 pointer type
 lib/util_sock.c: In function `get_peer_addr':
 lib/util_sock.c:951: warning: passing arg 3 of `ngetpeername' from incompatible 
 pointer type
 lib/util_sock.c: In function `get_socket_addr':
 lib/util_sock.c:974: warning: passing arg 3 of `ngetsockname' from incompatible 
 pointer type
 tdb/tdbutil.c: In function `make_tdb_data':
 tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer target type
 nsswitch/winbindd_acct.c: In function `string2group':
 nsswitch/winbindd_acct.c:225: warning: passing arg 1 of `next_token' from 
 incompatible pointer type
 client/client.c: In function `do_get':
 client/client.c:695: warning: passing arg 4 of `cli_getattrE' from incompatible 
 pointer type
 client/client.c: In function `do_put':
 client/client.c:1071: warning: passing arg 4 of `cli_getattrE' from incompatible 
 pointer type
 utils/smbcontrol.c: In function `do_printnotify':
 utils/smbcontrol.c:423: warning: passing arg 3 of `notify_printer_byname' discards 
 qualifiers from pointer target type
 rpcclient/cmd_lsarpc.c: In function `cmd_lsa_query_info_policy':
 rpcclient/cmd_lsarpc.c:131: warning: passing arg 1 of `print_guid' from incompatible 
 pointer type
 rpcclient/cmd_spoolss.c: In function `get_driver_3_param':
 rpcclient/cmd_spoolss.c:1185: warning: passing arg 1 of `strtok' discards qualifiers 
 from pointer target type
 rpcclient/cmd_reg.c: In function `cmd_reg_shutdown':
 rpcclient/cmd_reg.c:910: warning: passing arg 2 of `getopt' from incompatible 
 pointer type
 rpcclient/cmd_shutdown.c: In function `cmd_shutdown_init':
 rpcclient/cmd_shutdown.c:43: warning: passing arg 2 of `getopt' from incompatible 
 pointer type
 libsmb/spnego.c: In function `read_negTokenInit':
 libsmb/spnego.c:51: warning: passing arg 2 of `asn1_read_OID' from incompatible 
 pointer type
 libsmb/spnego.c: In function `read_negTokenTarg':
 libsmb/spnego.c:186: warning: passing arg 2 of `asn1_read_OID' from incompatible 
 pointer type
 libsmb/spnego.c: In function `free_spnego_data':
 libsmb/spnego.c:321: warning: passing arg 1 of `free' discards qualifiers from 
 pointer target type
 libsmb

RE: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation fault and core dump

2004-03-03 Thread William Jojo


well, you can

export LANG=C

before starting the daemons


Bill


On Wed, 3 Mar 2004, Crosland, Jerel wrote:

 Yes, the LANG environment variable is LANG=en_US. I'm a LITTLE concerned about 
 changing this for the entire server though. Is there any way to get Samba to 
 understand LANG=en_US? Compilation or configuration options?

 Jerel Crosland
 Technical Specialist
  818/704-3187

 Inside every small problem is a large problem struggling to get out.


 -Original Message-
 From: William Jojo [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 03, 2004 4:15 PM
 To: Crosland, Jerel
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Samba] latest version (3.0.2a) on AIX 5.2 ML2 segmentation
 fault and core dump





 Check your /etc/environment file and see if LANG=C if it reads anything
 other than LANG=C (like LANG=en_US) you will get this segfault. You will
 need root priv to change this.


 Regards,

 Bill


 On Wed, 3 Mar 2004, Crosland, Jerel wrote:

  First off, let me state that I am not a C programmer at all. I am a programmer in 
  other languages, so I understand the basic configure/make/make install procedure 
  for most GNU packages, and have done it lots of times.
 
  I downloaded the GNU iconv libraries, compiled them and used 
  --prefix=/usr/local/special to keep from replacing the standard AIX libraries. 
  Then I downloaded the 3.0.2a source and compiled it with --prefix=/usr/local and 
  --with-libiconv=/usr/local/special. It compiled with some warnings (see below) but 
  no errors. I installed it, but when I run the net command, I get a segmentation 
  fault and a core dump. I am using gcc 3.3.2 on AIX 5.2 ML2. I don't know if any of 
  these matter, but here are the warnings I got:
 
  libsmb/clireadwrite.c:54: warning: right shift count = width of type
  libsmb/clireadwrite.c:54: warning: right shift count = width of type
  libsmb/clireadwrite.c: In function `cli_issue_write':
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  libsmb/clireadwrite.c:301: warning: right shift count = width of type
  printing/pcap.c: In function `pcap_printername_ok':
  printing/pcap.c:276: warning: passing arg 1 of `strlocate' discards qualifiers 
  from pointer target type
  printing/pcap.c:277: warning: passing arg 1 of `ScanQconfig' discards qualifiers 
  from pointer target type
  printing/pcap.c:277: warning: passing arg 2 of `ScanQconfig' discards qualifiers 
  from pointer target type
  lib/util_sock.c: In function `is_a_socket':
  lib/util_sock.c:40: warning: passing arg 5 of `getsockopt' from incompatible 
  pointer type
  lib/util_sock.c: In function `print_socket_options':
  lib/util_sock.c:102: warning: passing arg 5 of `getsockopt' from incompatible 
  pointer type
  lib/util_sock.c: In function `client_inaddr':
  lib/util_sock.c:819: warning: passing arg 3 of `ngetpeername' from incompatible 
  pointer type
  lib/util_sock.c: In function `get_peer_addr':
  lib/util_sock.c:951: warning: passing arg 3 of `ngetpeername' from incompatible 
  pointer type
  lib/util_sock.c: In function `get_socket_addr':
  lib/util_sock.c:974: warning: passing arg 3 of `ngetsockname' from incompatible 
  pointer type
  tdb/tdbutil.c: In function `make_tdb_data':
  tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer target type
  nsswitch/winbindd_acct.c: In function `string2group':
  nsswitch/winbindd_acct.c:225: warning: passing arg 1 of `next_token' from 
  incompatible pointer type
  client/client.c: In function `do_get':
  client/client.c:695: warning: passing arg 4 of `cli_getattrE' from incompatible 
  pointer type
  client/client.c: In function `do_put':
  client/client.c:1071: warning: passing arg 4 of `cli_getattrE' from incompatible 
  pointer type
  utils/smbcontrol.c: In function `do_printnotify':
  utils/smbcontrol.c:423: warning: passing arg 3 of `notify_printer_byname' discards 
  qualifiers from pointer target type
  rpcclient/cmd_lsarpc.c: In function `cmd_lsa_query_info_policy':
  rpcclient/cmd_lsarpc.c:131: warning: passing arg 1 of `print_guid' from 
  incompatible pointer type
  rpcclient/cmd_spoolss.c: In function `get_driver_3_param':
  rpcclient/cmd_spoolss.c:1185: warning: passing arg 1 of `strtok' discards 
  qualifiers from pointer target type
  rpcclient/cmd_reg.c: In function `cmd_reg_shutdown':
  rpcclient/cmd_reg.c:910: warning: passing arg 2 of `getopt' from incompatible 
  pointer type
  rpcclient/cmd_shutdown.c: In function `cmd_shutdown_init':
  rpcclient/cmd_shutdown.c:43: warning: passing arg 2 of `getopt' from incompatible 
  pointer type
  libsmb/spnego.c: In function `read_negTokenInit':
  libsmb/spnego.c:51: warning: passing arg 2 of `asn1_read_OID' from incompatible 
  pointer type
  libsmb/spnego.c: In function `read_negTokenTarg':
  libsmb/spnego.c:186: warning: passing arg 2