Samba compile issue on Solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Samba compile issue on Solaris 9
# 1  
Old 01-30-2020
Samba compile issue on Solaris 9

Hi all Smilie

I've been given a task to try and upgrade Samba on our legacy Solaris 9 (SunOS 5.9) sparc system. Its currently running samba 3.5.3 but we'd like to try and install 3.6.0 (or 3.6.25) to have minimal protocol smbv2.

When trying to install from source, it appears to configure fine, but when I try to make, it fails when compiling smbd/vfs.c with issues about statvfs64 :
Code:
bash-2.05# make test
Using CFLAGS     = -I../lib/zlib -O -I. -I/tmp/samba_build_upg/samba-3.6.25/source3 -I/tmp/samba_build_upg/samba-3.6.25/source3/../lib/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./librpc -I./.. -I./../lib/talloc -I./../lib/tevent -I../lib/tdb/include -DHAVE_CONFIG_H  -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5  -I/tmp/samba_build_upg/samba-3.6.25/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lsendfile -lresolv -lrt -ldl -lnsl -lsocket -lmd5 -lrt
      LDFLAGS    = -lthread -L./bin
      DYNEXP     =
      LDSHFLAGS  = -fPIC -shared  -lthread -L./bin -lc -Wl,-z,defs
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-h,
Compiling dynconfig.c
Linking shared library bin/libnetapi.so.0
Linking non-shared library bin/libsmbclient.a
Linking shared library bin/libsmbclient.so.0
Compiling smbd/vfs.c
smbd/vfs.c: In function `smb_vfs_call_statvfs':
smbd/vfs.c:1202: structure has no member named `statvfs64'
smbd/vfs.c:1203: structure has no member named `statvfs64'
The following command failed:
gcc -I../lib/zlib -O -I. -I/tmp/samba_build_upg/samba-3.6.25/source3 -I/tmp/samba_build_upg/samba-3.6.25/source3/../lib/iniparser/src -Iinclude -I./include  -I. -I. -I./../lib/replace -I./librpc -I./.. -I./../lib/talloc -I./../lib/tevent -I../lib/tdb/include -DHAVE_CONFIG_H  -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5  -I/tmp/samba_build_upg/samba-3.6.25/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c smbd/vfs.c -o smbd/vfs.o
make: *** [smbd/vfs.o] Error 1

This isn't something I've came across before, does anyone have any advice on how to resolve !? Adding 'LARGEFILE64_SOURCE' and 'FILE_OFFSET_BITS=64' to the compile options doesn't seem to help, unfortunately.

Cheers, Jim
# 2  
Old 01-31-2020
Perhaps you should consider compiling samba as a static binary first and see how that goes?
# 3  
Old 01-31-2020
Hi Neo,

Thanks for your reply.

How would I go about compiling as a static binary? It's not something I've done before and not something I've seen in the samba docs.

Cheers, Jim
# 4  
Old 01-31-2020
If you are using a version of gcc, you might try the -static option. On Solaris, there is something similar but I don't have a Solaris box to work on.

Please look it up on the gcc man page or do a bit of Googl'n around for it.

Also, another fun thing to try is to look at all your included and linked object files in your configuration and search your filesystem to make sure they all exist.

This is normally the first thing I do when I get those pesky "not found" errors when building.

Thanks.
# 5  
Old 01-31-2020
Do you have a 32-bit or 64-bit gcc?
It might be easier to use a 64-bit gcc and produce a 64-bit Samba.
Please read
Code:
man lfcompile
man lfcompile64

-static is a linker option, comes after the compile phase. I usually do not recommend it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Compile samba with krb5

./configure --prefix=/opt/samba --libdir=/opt/samba/lib --bindir=/opt/samba/bin --sbindir=/opt/samba/sbin --mandir=/opt/samba/man --sysconfdir=/etc/opt/samba --with-configdir=/etc/opt/samba --with-piddir=/var/opt/samba/locks --with-privatedir=/etc/opt/samba/private ... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

2. UNIX and Linux Applications

Samba authentication issue

Hi guys we have a running samba server and it works ok, issue came when our windows samba clients were upgraded to win7... some users cant login and some needs to enter their password 7x before they can login. the net advise to set NTLVMv2 on the win7 security options it works on the users who... (0 Replies)
Discussion started by: batas
0 Replies

3. Solaris

Samba authentication issue

Hi guys we have a running samba server and it works ok, issue came when our windows samba clients were upgraded to win7... some users cant login and some needs to enter their password 7x before they can login. the net advise to set NTLVMv2 on the win7 security options it works on the users who... (0 Replies)
Discussion started by: batas
0 Replies

4. Linux

Fortran compile issue

I was given this program to work with and it was supposed to be simple for someone like me who knows nothing of Fortran or Unix. It comes with a makefile, so all I have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the fort.51 file. The... (1 Reply)
Discussion started by: Arjani
1 Replies

5. Red Hat

Samba installation issue

hey, i am trying to install a new samba server using the source package in my redhat machine.i am using samba 3.6.4 version.actually i am not able to find out the smb.conf file in there.can anyone give me any idea about where to look for this configuration file?? (3 Replies)
Discussion started by: htshshrm2
3 Replies

6. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

7. Red Hat

Apache 2.2.17 compile issue.

Hi, I am using RedHat Linux 5.3 64bit OS.. When i try to compile apache 2.2.17. during the make install i am getting the below error. Appreciate your help. rsync: link_stat "/Application/softwares/softwares/httpd-2.2.15/docs/manual/." failed: Permission denied (13) rsync: cannot stat... (4 Replies)
Discussion started by: Krrishv
4 Replies

8. Solaris

Samba 3.5.4 compile error

Hello! I am trying install samba 3.5.4. and following this instruction from the source package. So, there are my steps: 1 cd ../samba-3.5.4/source3 2 ./configure (without any arguments) and when i run make it returns error .................................................... Compiling... (2 Replies)
Discussion started by: zhum
2 Replies

9. Solaris

Compile Scilab 5.0.2 on Solaris 9

Hello, I'm trying to build scilab 5.0.2 on a Solaris 9 Sparc After more than one hour of compiling, this error msg appear, what could be the problem? if you need any more info i'm here. Thanks for your help. Error msg :... (0 Replies)
Discussion started by: wolfhurt
0 Replies

10. UNIX for Dummies Questions & Answers

libnet does not compile on Solaris 9

Hi I'm trying to compile libnet in Solaris 9, but it seems to have syntax errors. I got it from www.packetfactory.net/libnet/ which is the address the computer suggested me to download it. I downloaded the 1.1.2.1 version which is supposed to be stable Anybody knows if the code has... (3 Replies)
Discussion started by: eldiego
3 Replies
Login or Register to Ask a Question