Sponsored Content
Full Discussion: Samba Compiling questions
Operating Systems Solaris Samba Compiling questions Post 302338585 by Keepcase on Tuesday 28th of July 2009 10:32:14 AM
Old 07-28-2009
Hi reborg, thanks for the advice!

I started over with the help of this guide I found

I've been documenting what I've been doing so I'll post it here to give you a look at my configuration.

reference url: Solaris9 Samba ADS - Granizada
download the following from Sunfreeware - Freeware Open Source Software for Sun Microsystem's Solaris

BINARY 1
gcc-3.4.6-sol10-x86-local.gz

# gunzip gcc-3.4.6-sol10-x86-local.gz

# pkgadd -d gcc-3.4.6-sol10-x86-local

The following packages are available:
1 SMCgcc gcc
(x86) 3.4.6

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

BINARY 2
bison-2.4.1-sol10-x86-local.gz

# gunzip bison-2.4.1-sol10-x86-local.gz
# pkgadd -d bison-2.4.1-sol10-x86-local

The following packages are available:
1 SMCbison bison
(x86) 2.4.1

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

BINARY 3
m4-1.4.12-sol10-x86-local.gz

# gunzip m4-1.4.12-sol10-x86-local.gz
# pkgadd -d m4-1.4.12-sol10-x86-local

The following packages are available:
1 SMCm4 m4
(x86) 1.4.12

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

BINARY 4
db-4.7.25.NC-sol10-x86-local.gz

# gunzip db-4.7.25.NC-sol10-x86-local.gz
# pkgadd -d db-4.7.25.NC-sol10-x86-local

The following packages are available:
1 SMCdb db
(x86) 4.7.25.NC

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

BINARY 5
binutils-2.19-sol10-x86-local.gz

# gunzip binutils-2.19-sol10-x86-local.gz
# pkgadd -d binutils-2.19-sol10-x86-local

The following packages are available:
1 SMCbinut binutils
(x86) 2.19

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCbinut> from </var/tmp/source/binutils-2.19-sol10-x86-local>

binutils(x86) 2.19
FSF
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
7 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
/usr/local/lib/libiberty.a

Do you want to install these conflicting files [y,n,?,q]y


BINARY 6
flex-2.5.35-sol10-x86-local.gz

# gunzip flex-2.5.35-sol10-x86-local.gz
# pkgadd -d flex-2.5.35-sol10-x86-local

The following packages are available:
1 SMCflex flex
(x86) 2.5.35

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:


mv /usr/ccs/bin/ld /usr/ccs/bin/ld.off
mv /usr/include/gssapi /usr/include/old.gssapi

# crle -c /var/ld/ld.config -l \
> /lib:/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.7/lib:/opt/local/lib

INSTALL OPENLDAP SOURCE
reference url: OpenLDAP Software 2.4 Administrator's Guide
openldap-stable-20090411.tgz

# echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin
# echo $LDFLAGS
-L/usr/local/lib -L/usr/local/BerkeleyDB.4.7/lib
# echo $CPPFLAGS
-I/usr/local/include -I/usr/local/BerkeleyDB.4.7/include
# echo $CFLAGS
-I/usr/local/include -I/usr/local/BerkeleyDB.4.7/include
# echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/local/BerkeleyDB.4.7/lib:/usr/bin


# gunzip openldap-stable-20090411.tgz
# tar xvf openldap-stable-20090411.tar
# cd openldap-2.4.16

# ./configure --prefix=/opt/local --disable-bdb --enable-null --without-tls


Making servers/slapd/backends.c
Add config ...
Add ldif ...
Add monitor ...
Add bdb ...
Add hdb ...
Add null ...
Add relay ...
Making servers/slapd/overlays/statover.c
Add seqmod ...
Add syncprov ...
Please run "make depend" to build dependencies


# echo $PATH
/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin

# make depend

# make

# make install

INSTALL HEIMDAL
reference url: ftp://ftp.pdc.kth.se/pub/heimdal/src/
heimdal-1.2.tar.gz

# gunzip heimdal-1.2.tar.gz
# tar xvf heimdal-1.2.tar





Right now I've compiled and installed OpenLDAP and currently trying to install Heimdal

but I get the following error

# ./configure --prefix=/opt/local --enable-dns --enable-shared --disable-krb4 \
> CFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.2/include" \
> CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB/4.2/include" \
> LDFLAGS=-L/usr/local/lib
configure: WARNING: Unrecognized options: --enable-dns, --disable-krb4
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
configure: autobuild project... Heimdal
configure: autobuild revision... 1.2
configure: autobuild hostname... master
configure: autobuild timestamp... 20090728-015338
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for bison... bison -y
checking for flex... flex
checking lex output file root... configure: error: cannot find output from flex; giving up


Got an ideas?
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Compiling samba 3.0.27a under AIX

I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure --prefix=/opt/pware/samba/3.0.27a... (1 Reply)
Discussion started by: BenediktS
1 Replies

2. AIX

Compiling samba 3.0.27a under AIX

Compiling samba 3.0.27a under AIX I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure... (2 Replies)
Discussion started by: BenediktS
2 Replies

3. UNIX for Dummies Questions & Answers

Samba pre-install questions.

Greetings, I hope this is the right forum. I am looking to install Samba on my Linux box on my home network. I'm pretty sure I can deal with the how, I'm just not certain of the what. ok I'm using Debian lenny with no GUI. I have apt working and I've successfully installed and used one package... (10 Replies)
Discussion started by: fguy
10 Replies

4. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

5. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

6. Solaris

Problem compiling Samba 3.5.1 on Solaris 10 with gcc (3.4.6)

I'm getting this error when 'Linking shared library bin/libtalloc.so.2'... anyone know what's up here? Using CFLAGS = -O -I. -I/source/samba-3.5.1/source3 -I/source/samba-3.5.1/source3/../lib/popt -I/source/samba-3.5.1/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace... (6 Replies)
Discussion started by: son_t
6 Replies

7. UNIX for Dummies Questions & Answers

Compiling samba problem

People i download the lastest version of samba i`am tryng to compile it in a solaris 9 i'm reading the how to of samba, i am in the first step making the autogen.sh but show me this when i do ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h'... (0 Replies)
Discussion started by: enkei17
0 Replies

8. Solaris

Compiling Error in Samba 3.4.1 on Solaris 10

Hi all, I am getting the following error While installing Samba 3.4.1 on Solaris 10. #./autogen.sh ./autogen.sh : autoheader : not found ./autogen.sh : test : argument expected Please help me as I am in a critical state of the project. Warm regards, Sathya (10 Replies)
Discussion started by: sathya47
10 Replies

9. Solaris

Two simple questions about Solaris DCHP and Samba

I have two simple questions First is :can dhcp server NATIVE of solaris perform dhcp updates of bind via dnssec like dchpd on linux? Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap? I never found howto or discussions about iplanet server. Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

10. UNIX for Beginners Questions & Answers

Compiling Samba 4.4.5

I am running Fedora V21 and had their default Samba installed. But I wanted to put up a PDC with ADS, so I uninstalled samba and down loaded the Samba 4.4.5 source along with the Kerberos devel kit etc. I then configured and compiled etc and it indicated it was successful. But I can't load the... (0 Replies)
Discussion started by: griffinmt
0 Replies
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy