Postfix Can't found rpcsvc/ypclnt.h

Marvell Kirkwood based
Post Reply
User avatar
MrDini
Posts: 652
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Postfix Can't found rpcsvc/ypclnt.h

Post by MrDini » Wed Jul 20, 2016 4:05 pm

Good afternoon! :)

Now, I tried to compile the postfix package, because I want an e-mail server on my nas. But it Can't find the rpcsvc/ypclnt.h... What package contains that?

Code: Select all

gcc -Wmissing-prototypes -Wformat -DHAS_PCRE -I/ffp/include -g -O -I. -DLINUX2 -c dict_nis.c
dict_nis.c:42:27: fatal error: rpcsvc/ypclnt.h: No such file or directory
 #include <rpcsvc/ypclnt.h>
                           ^
compilation terminated.
Makefile:132: recipe for target 'dict_nis.o' failed
make: *** [dict_nis.o] Error 1
Makefile:46: recipe for target 'update' failed
make: *** [update] Error 1
Makefile:15: recipe for target 'update' failed
make: *** [update] Error 2
Yes, I tried Googleing, but I Cannot find any useful info...

Thanks!
Thanks nas-central the lot of help! :)

Mijzelf
Posts: 6251
Joined: Mon Jun 16, 2008 10:45 am

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by Mijzelf » Thu Jul 21, 2016 6:47 pm

libnsl. Has something to do with NIS, so if you can disable that, you probably don't need it.

User avatar
MrDini
Posts: 652
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by MrDini » Fri Jul 22, 2016 8:47 am

Unfortunately it hasn't got a configure file. It's just a Makefile and a makedefs file. I tried to use a '-DNO_NIS' flag, but it also tries to compile dict_nis file... :/

What Do You think, if I cross compile it with a debian and place it onto the nas, it will work?
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by barmalej2 » Fri Jul 22, 2016 7:21 pm

To compile for ffp and uclibc, you will need to patch the postfix source code: http://downloads.zyxel.nas-central.org/ ... ffp1.patch

Patch will adapt paths for ffp and will correct uclibc specific problems.
Compillation is a postfix specific:

Code: Select all

make makefiles \
	CCARGS='-DDEF_CONFIG_DIR=\"/ffp/etc/postfix\" -DHAS_SQLITE -DUSE_TLS -I/ffp/include/openssl/' \
	AUXLIBS='-lsqlite3 -lpthread -lssl -lcrypto' \
	manpage_directory='/ffp/share/man'
make
Installation for packaging:

Code: Select all

sh postfix-install -non-interactive install_root=/some/tmp/dir/for/packaging

User avatar
MrDini
Posts: 652
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by MrDini » Fri Jul 22, 2016 7:48 pm

I am very thankful! :)
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by barmalej2 » Fri Jul 22, 2016 8:05 pm

P.S. After build, I got these direct dependencies for postfix (they have own subdependencies):
db5 icu4c openssl pcre sqlite uClibc-solibs

User avatar
MrDini
Posts: 652
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by MrDini » Sat Jul 23, 2016 8:22 am

Okay, I have all of them installed.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 652
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Postfix Can't found rpcsvc/ypclnt.h

Post by MrDini » Tue Aug 02, 2016 8:01 pm

Thanks! It works perfectly! :)
Thanks nas-central the lot of help! :)

Post Reply