Bug 6786 - Cannot build binaries for 3.4.2 on Solaris 10
Summary: Cannot build binaries for 3.4.2 on Solaris 10
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.4.2
Hardware: Sparc Solaris
: P3 major
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 13:08 UTC by Naveen
Modified: 2009-10-09 14:37 UTC (History)
0 users

See Also:


Attachments
configure log (117.41 KB, application/x-gzip)
2009-10-08 07:05 UTC, Naveen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Naveen 2009-10-07 13:08:44 UTC
Hi, 

My issue is as follows:
The security team has requested us to install the latest version of Samba 3.4.2 due to some security issue.

Previously I was using the default version provided by Solaris 10, that was working fine. However when I searched for the correct version from Sunfreeware, I noticed that the only available eversion was 3.2.4 and not 3.4.2. Also, I noticed that they recommend having the following packages installed as well for running this version: 

•samba-3.2.4-sol10-sparc-local.gz  Dependencies: popt, libiconv, libintl, readline, ncurses and either the libgcc-3.4.6 or the gcc-3.4.6 packages. 
 
So, I presumed that if these packages are required for the 3.2.4 version, then they should also be required for the 3.4.2 one. Thus I downloaded the prerequisite packages from Sunfreeware and the latest version from Samba.org.

I proceeded to install the pre-required packages. Then I proceeded to install the samba package from the downloaded tarfile. Afterwards, I proceeded as follows to build the binaries as recommnended on samba website: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html

As, the configure file was already there and thus I did not have to run the autogen script. I proceeded with the configure as follows:

CC="gcc -m64" ./configure --without-ldap --without-ads

This step completes normally. The summary results are as follows:
checking configure summary... yes
configure: creating ./config.status
config.status: creating Makefile-noincludes
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/gen-8bit-gap.sh
config.status: creating script/installbin.sh
config.status: creating script/uninstallbin.sh
config.status: creating lib/netapi/examples/Makefile
config.status: creating lib/netapi/tests/Makefile
config.status: creating pkgconfig/smbclient.pc
config.status: creating pkgconfig/wbclient.pc
config.status: creating pkgconfig/netapi.pc
config.status: creating pkgconfig/smbsharemodes.pc
config.status: creating ../examples/libsmbclient/Makefile.internal
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing rm-stdint.h commands
config.status: executing rm-stdbool.h commands

However, I notice that no makefile is created under source3. Thus when I execute the make command, I get the following message:

CMD >make
make: Fatal error: No arguments to build

I have been googling for days and trying so many reinstall with no better results.

I would really appreciate your help, please.

Thanks and warm regards

Naveen
Comment 1 Björn Jacke 2009-10-07 13:47:09 UTC
is gnu make installed and does configure find gnu make on your system? You should make sure that's the case. If that alone does not yet fix your problem, please attach config.log to see what's wrong there.
Comment 2 Naveen 2009-10-08 07:05:24 UTC
Created attachment 4813 [details]
configure log

Please find attached requested configure log
Comment 3 Naveen 2009-10-08 07:08:17 UTC
(In reply to comment #1)
> is gnu make installed and does configure find gnu make on your system? You
> should make sure that's the case. If that alone does not yet fix your problem,
> please attach config.log to see what's wrong there.

Hi,

Yes gnu make is installed and configure is able to locate it. Here are a the outputs of a few related commands that I ran:

CMD >whereis make
make: /usr/ccs/bin/make /usr/man/man1s/make.1s

CMD >pkginfo | grep make   
system      SUNWgm4                          gmake - GNU m4
system      SUNWgmake                        gmake - GNU make
system      SUNWxcu4t                        XCU4 make and sccs utilities

CMD >pkginfo -l SUNWgmake
   PKGINST:  SUNWgmake
      NAME:  gmake - GNU make
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.10.0,REV=2005.01.08.05.16
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  GNU make - A utility used to build software (gmake) 3.80
    PSTAMP:  sfw1020050108052001
  INSTDATE:  Nov 02 2006 09:02
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:        4 installed pathnames
                   3 shared pathnames
                   3 directories
                   1 executables
                 300 blocks used (approx)

PATH=/usr/sbin:/usr/bin:/sbin:/etc:/usr/local/bin:/PROD/profiles:/usr/ccs/bin:/usr/openwin/bin:/usr/lib:/u01/oracle/db10g/ctx/bin:/u01/oracle/db10g/bin:/bin:/usr/bin:/usr/local/bin:/usr/ucb

I have also uploaded teh requested configure log.

Thanks again for your support.

Warm regards,
Naveen
Comment 4 Björn Jacke 2009-10-08 15:14:47 UTC
can you please try to export or setenv MAKE=gmake before running configure and then run gmake?
Comment 5 Naveen 2009-10-09 12:30:02 UTC
Dear Sir,

Indeed I proceeded with exporting the gmake and running configure again as per your instructions and everything went fine.

Thank you very much for your most appreciated professional support.

Warm regards

Naveen
Comment 6 Björn Jacke 2009-10-09 14:37:46 UTC
you're welcome!