Compiled Samba; files in wrong directories

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 1590
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 675 times
Been thanked: 357 times

Compiled Samba; files in wrong directories

Post by Jasper »

Hi all (Fossapup64-95)

I have had an attempt at compiling Samba and it does provide me with a completed build, however it does not put the files in the correct directories.......... so a little miffed :thumbdown:

If I run the application smbstatus from within the build directory it does report the correct build.

These are the steps that I undertook

Downloaded Samba 4.19.3

Downloaded and installed via Python

iso8601
cryptography
pyasn1

Downloaded and installed Parse-Yapp-1.21 (Perl)

The build script used is

Code: Select all


./configure --prefix=/usr --enable-selftest --enable-fhs --localstatedir=/var --sysconfdir=/etc --libdir=/usr/${LIBDIR} --includedir=/usr/include --bindir=/usr/bin --sbindir=/usr/sbin -with-configdir=/etc/samba --with-piddir=/var/run --with-privatedir=/etc/samba/private --with-privatelibdir=/usr/${LIBDIR} --with-modulesdir=/usr/${LIBDIR} --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --enable-cups --with-acl-support --with-automount --with-quotas --with-syslog --with-utmp --without-winbind --with-ldap --without-pam --without-ads --without-gpgme --without-ad-dc

I have created a 19mb PET file if anyone wants to look at the contents.

https://www.mediafire.com/file/2x4bno9l ... 3.pet/file

If someone could point out my errors and help me correct them to create a functioning build of Samba, it would be appreciated :thumbup:

Last edited by Jasper on Wed Jan 31, 2024 4:06 pm, edited 2 times in total.
User avatar
josejp2424
Posts: 167
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 196 times
Been thanked: 103 times

Re: Compiled Samba; files in wrong directories.

Post by josejp2424 »

Jasper wrote: Mon Jan 08, 2024 10:36 am

Hi all (Fossapup64-95)

I have had an attempt at compiling Samba and it does provide me with a completed build, however it does not put the files in the correct directories.......... so a little miffed :thumbdown:

If I run the application smbstatus from within the build directory it does report the correct build.

These are the steps that I undertook

Downloaded Samba 4.19.3

Downloaded and installed via Python

iso8601
cryptography
pyasn1

Downloaded and installed Parse-Yapp-1.21 (Perl)

The build script used is

Code: Select all

./configure --prefix=/usr --enable-selftest --enable-fhs --localstatedir=/var --sysconfdir=/etc --libdir=/usr/${LIBDIR} --includedir=/usr/include --bindir=/usr/bin --sbindir=/usr/sbin -with-configdir=/etc/samba --with-piddir=/var/run --with-privatedir=/etc/samba/private --with-privatelibdir=/usr/${LIBDIR} --with-modulesdir=/usr/${LIBDIR} --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --enable-cups --with-acl-support --with-automount --with-quotas --with-syslog --with-utmp --without-winbind --with-ldap --without-pam --without-ads --without-gpgme --without-ad-dc

I have created a 19mb PET file if anyone wants to look at the contents.

https://www.mediafire.com/file/2x4bno9l ... 3.pet/file

If someone could point out my errors and help me correct them to create a functioning build of Samba, it would be appreciated :thumbup:

where you use ${LIBDIR}. should be lib .
another example if it is a puppy , debian usually goes in /usr/lib/x86_64-linux-gnu

an example I use in devuanpup.

Code: Select all

./configure CFLAGS='-no-pie' CXXFLAGS='-no-pie' --enable-fhs  --prefix=/usr --includedir=/usr/include --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var --with-configdir=/etc/samba --with-piddir=/var/run --with-privatedir=/var/lib/samba/private --with-privatelibdir=/usr/lib/x86_64-linux-gnu --with-modulesdir=/usr/lib/x86_64-linux-gnu --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --enable-cups --with-acl-support --with-automount --with-quotas --with-syslog --with-utmp --with-winbind --with-ldap --with-ads --without-fam --with-experimental-mit-ad-dc --with-pam --with-pammodulesdir=/lib/x86_64-linux-gnu/security --without-systemd
User avatar
Jasper
Posts: 1590
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 675 times
Been thanked: 357 times

Re: Compiled Samba; files in wrong directories.

Post by Jasper »

@josejp2424

Thank you for replying to my query and providing me with an explanation/solution.

Looking at your config you include the variable

--with-pam

Is this kernel/OS specific??

User avatar
josejp2424
Posts: 167
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 196 times
Been thanked: 103 times

Re: Compiled Samba; files in wrong directories.

Post by josejp2424 »

Jasper wrote: Mon Jan 29, 2024 5:32 am

@josejp2424

Thank you for replying to my query and providing me with an explanation/solution.

Looking at your config you include the variable

--with-pam

Is this kernel/OS specific??

You can use the --without-pam variable.

and the only specific is /x86_64-linux-gnu.
all ubuntu and debian derivatives carry that folder.
slackware arch derivatives do not.

even this setting, CFLAGS='-no-pie' CXXFLAGS='-no-pie' is not necessary to use either, but in my case I use it, because the files that go in bin or sbin are created as binaries.

User avatar
Jasper
Posts: 1590
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 675 times
Been thanked: 357 times

Re: Compiled Samba; files in wrong directories.

Post by Jasper »

The only reason I mentioned PAM as is problematic with FP95.

I will try again, thanks again for the input and reply :thumbup:

User avatar
Jasper
Posts: 1590
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 675 times
Been thanked: 357 times

Re: Compiled Samba; files in wrong directories

Post by Jasper »

Failed to build successfully once again :oops:

Image

Image

User avatar
josejp2424
Posts: 167
Joined: Sun Jul 12, 2020 11:40 pm
Has thanked: 196 times
Been thanked: 103 times

Re: Compiled Samba; files in wrong directories

Post by josejp2424 »

Jasper wrote: Wed Jan 31, 2024 4:09 pm

Failed to build successfully once again :oops:

Image

Image

it does not find the folder where the waf file is. when trying to compile json.
make sure you have json installed , and python3-json

User avatar
Jasper
Posts: 1590
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 675 times
Been thanked: 357 times

Re: Compiled Samba; files in wrong directories

Post by Jasper »

Thanks once again for the input :thumbup:

I wil leave it for now.

Post Reply

Return to “Compiling”