make install/codepage segmentation

Lisa Becktold {CADIG STAFF} lisa at hermes.ewlab.usna.edu
Tue Apr 11 18:34:37 GMT 2000


Thanks to Michael Glauche, Tom Crummey, and Luke Kenneth Casson Leighton
for their responses.

I did download both samba-tng-alpha-2.2 and samba-tng-alpha-2.3.  Configure
and make ran fine (although I saw a few warnings when I ran make).
But again, when I ran "make install", the library and binary installation
ran o.k., but the codepage installation bombed out!

I tacked the "make install" output onto the end of this message....

Tom, you asked what version of gcc I was using, and whether I'm running
a 32-bit or a 64-bit kernel.  I'm using gcc 2.8.1, and I'm running
a 64-bit kernel (On a Sun Enterprise 2, Solaris 2.7).

These are the steps I'm using:

     Download latest samba-tng-alpha code
	ftp://samba.org/pub/samba/alpha/samba-tng-alpha.2.2.tar.gz

     Gunzip, untar samba-tng-alpha.2.2.tar.gz - it creates the directory
     	samba-tng-alpha.2.2
     	
     Make a directory for the compiled code, libraries, etc.
     	mkdir /usr/samba-tng-2.2
     
     Run "configure"	
     	cd samba-tng-alpha.2.2/source
        ./configure --prefix=/usr/samba-tng-2.2
        
     Run "make"
        
     Run "make install"
        

Do you see any problems with the above?

I'm trying to compile samba-tng-alpha-2.2 on a Sparc 20 (32-bit kernel)
using the SUNWspro C compiler, but I don't think the compiled code will
be too reliable (if it actually finishes compiling).  I see lots of
these messages:

 	"warning: argument #x is incompatible with prototype"
 	"rpc_parse/parse_lsa.c", line 470: warning: statement not reached" 

If you have any ideas, please let me know - I'd really like to get this
version of Samba up and running.

Here's "make install" output for samba-tng-alpha-2.2:

=========================================================================
# make install

Using FLAGS = -O         -Iinclude -I./include                     -I./ubiqx     
                            -I./smbwrapper                            
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                       
-DLOGFILEBASE="/usr/usna/samba-tng-2.2/var"                  
-DSMBLOGFILE="/usr/usna/samba-tng-2.2/var/log.smb"                    
-DNMBLOGFILE="/usr/usna/samba-tng-2.2/var/log.nmb" 
-DCONFIGFILE="/usr/usna/samba-tng-2.2/lib/smb.conf" 
-DLMHOSTSFILE="/usr/usna/samba-tng-2.2/lib/lmhosts" 
-DSWATDIR="/usr/usna/samba-tng-2.2/swat" 
-DSBINDIR="/usr/usna/samba-tng-2.2/sbin" 
-DLOCKDIR="/usr/usna/samba-tng-2.2/var/locks" 
-DSMBRUN="/usr/usna/samba-tng-2.2/bin/smbrun" 
-DCODEPAGEDIR="/usr/usna/samba-tng-2.2/lib/codepages" 
-DDRIVERFILE="/usr/usna/samba-tng-2.2/lib/printers.def" 
-DBINDIR="/usr/usna/samba-tng-2.2/bin" 
-DFORMSFILE="/usr/usna/samba-tng-2.2/lib/ntforms.def" 
-DNTDRIVERSDIR="/usr/usna/samba-tng-2.2/lib" -DHAVE_INCLUDES_H 
-DPASSWD_PROGRAM="/bin/passwd"            
-DSMB_PASSWD_PROGRAM="/usr/usna/samba-tng-2.2/bin/smbpasswd"    
-DSMB_PASSWD_FILE="/usr/usna/samba-tng-2.2/private/smbpasswd"          
-DSAM_DIR="/usr/usna/samba-tng-2.2/sam"                          
-DSMB_PASSGRP_FILE="/usr/usna/samba-tng-2.2/private/smbpassgrp"        
-DSMB_GROUP_FILE="/usr/usna/samba-tng-2.2/private/smbgroup"            
-DSMB_ALIAS_FILE="/usr/usna/samba-tng-2.2/private/smbalias"
Using LIBS = -lsec -lgen -lsocket -lnsl  -ldl
Installing bin/libmsrpc.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsmb.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libnmb.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsamba.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsmbpw.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libubiqx.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsamrpass.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsmbpw.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/libsurs.la in /usr/usna/samba-tng-2.2/lib using libtool
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/usna/samba-tng-2.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing bin/smbclient in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/testparm in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/testprns in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/smbrun in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/smbstatus in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/rpcclient in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/smbpasswd in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/make_smbcodepage in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/make_unicodemap in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/regedit in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/samedit in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/net in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/svccontrol in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/cmdat in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/ntspool in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/nmblookup in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/make_printerdef in /usr/usna/samba-tng-2.2/bin using libtool
Installing bin/smbd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/lsarpcd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/svcctld in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/spoolssd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/samrd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/srvsvcd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/wkssvcd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/browserd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/netlogond in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/winregd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/nmbd in /usr/usna/samba-tng-2.2/sbin using libtool
Installing bin/swat in /usr/usna/samba-tng-2.2/sbin using libtool
Installing man pages in /usr/usna/samba-tng-2.2/man
======================================================================
The man pages have been installed. You may uninstall them using the command
the command "make uninstallman" or make "uninstall" to uninstall binaries,
man pages and shell scripts.
======================================================================
Installing scripts in /usr/usna/samba-tng-2.2/bin
======================================================================
The scripts have been installed. You may uninstall them using
the command "make uninstallscripts" or "make install" to install binaries,
man pages and shell scripts. You may recover the previous version (if any
by "make revert".
======================================================================
Installing codepage files in /usr/usna/samba-tng-2.2/lib/codepages
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.437
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.437
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.737
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.737
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.775
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.775
/usr/usna/samba-tng-2.2/bin/make_unicodemap: failed to get the file size for 
file ./codepages/CP775.TXT. Error was No such file or directory
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.850
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.850
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.852
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.852
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.861
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.861
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.932
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.932
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.866
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.866
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.949
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.949
Illegal Instruction - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.950
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.950
Illegal Instruction - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.936
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.936
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.1251
Segmentation Fault - core dumped
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.1251
/usr/usna/samba-tng-2.2/bin/make_unicodemap: failed to get the file size for 
file ./codepages/CP1251.TXT. Error was No such file or directory
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.ISO8859-1
/usr/usna/samba-tng-2.2/bin/make_smbcodepage: ISO8859-1 is not a valid codepage.
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.ISO8859-1
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.ISO8859-2
/usr/usna/samba-tng-2.2/bin/make_smbcodepage: ISO8859-2 is not a valid codepage.
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.ISO8859-2
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.ISO8859-5
/usr/usna/samba-tng-2.2/bin/make_smbcodepage: ISO8859-5 is not a valid codepage.
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.ISO8859-5
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.ISO8859-7
/usr/usna/samba-tng-2.2/bin/make_smbcodepage: ISO8859-7 is not a valid codepage.
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.ISO8859-7
Segmentation Fault - core dumped
Creating codepage file /usr/usna/samba-tng-2.2/lib/codepages/codepage.KOI-R
/usr/usna/samba-tng-2.2/bin/make_smbcodepage: KOI-R is not a valid codepage.
Creating unicode codepage file 
/usr/usna/samba-tng-2.2/lib/codepages/unicode_map.KOI-R
/usr/usna/samba-tng-2.2/bin/make_unicodemap: failed to get the file size for 
file ./codepages/CPKOI-R.TXT. Error was No such file or directory
======================================================================
The code pages have been installed. You may uninstall them using the
command "make uninstallcp" or make "uninstall" to uninstall binaries,
man pages, shell scripts and code pages.
======================================================================
Installing SWAT in /usr/usna/samba-tng-2.2/swat
Installing the Samba Web Admisistration Tool
/usr/usna/samba-tng-2.2/swat/images/globals.gif
/usr/usna/samba-tng-2.2/swat/images/home.gif
/usr/usna/samba-tng-2.2/swat/images/passwd.gif
/usr/usna/samba-tng-2.2/swat/images/printers.gif
/usr/usna/samba-tng-2.2/swat/images/samba.gif
/usr/usna/samba-tng-2.2/swat/images/shares.gif
/usr/usna/samba-tng-2.2/swat/images/status.gif
/usr/usna/samba-tng-2.2/swat/images/viewconfig.gif
/usr/usna/samba-tng-2.2/swat/help/welcome.html
/usr/usna/samba-tng-2.2/swat/help/DOMAIN_MEMBER.html
/usr/usna/samba-tng-2.2/swat/help/LDAP.html
/usr/usna/samba-tng-2.2/swat/help/debug2html.1.html
/usr/usna/samba-tng-2.2/swat/help/lmhosts.5.html
/usr/usna/samba-tng-2.2/swat/help/make_smbcodepage.1.html
/usr/usna/samba-tng-2.2/swat/help/nmbd.8.html
/usr/usna/samba-tng-2.2/swat/help/nmblookup.1.html
/usr/usna/samba-tng-2.2/swat/help/rpcclient.1.html
/usr/usna/samba-tng-2.2/swat/help/samba.7.html
/usr/usna/samba-tng-2.2/swat/help/smb.conf.5.html
/usr/usna/samba-tng-2.2/swat/help/smbclient.1.html
/usr/usna/samba-tng-2.2/swat/help/smbd.8.html
/usr/usna/samba-tng-2.2/swat/help/smbpasswd.5.html
/usr/usna/samba-tng-2.2/swat/help/smbpasswd.8.html
/usr/usna/samba-tng-2.2/swat/help/smbrun.1.html
/usr/usna/samba-tng-2.2/swat/help/smbstatus.1.html
/usr/usna/samba-tng-2.2/swat/help/smbtar.1.html
/usr/usna/samba-tng-2.2/swat/help/swat.8.html
/usr/usna/samba-tng-2.2/swat/help/testparm.1.html
/usr/usna/samba-tng-2.2/swat/help/testprns.1.html
/usr/usna/samba-tng-2.2/swat/include/footer.html
/usr/usna/samba-tng-2.2/swat/include/header.html
======================================================================
The SWAT files have been installed. Remember to read the swat/README
for information on enabling and using SWAT
======================================================================





    ----------------------------------------------------------
      Lisa M. Becktold - lisa at usna.navy.mil, (410) 293-6480
               United States Naval Academy - CADIG          
    590 Holloway Road, Rickover Hall, Annapolis, MD 21402-5000



More information about the samba-ntdom mailing list