General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Feb 17, 2018 7:27 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Jul 20, 2016 4:05 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 628
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:
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! :)


Top
 Profile  
 
PostPosted: Thu Jul 21, 2016 6:47 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6164
libnsl. Has something to do with NIS, so if you can disable that, you probably don't need it.


Top
 Profile  
 
PostPosted: Fri Jul 22, 2016 8:47 am 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 628
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! :)


Top
 Profile  
 
PostPosted: Fri Jul 22, 2016 7:21 pm 
Online

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2358
To compile for ffp and uclibc, you will need to patch the postfix source code: http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/patches/postfix_ffp1.patch

Patch will adapt paths for ffp and will correct uclibc specific problems.
Compillation is a postfix specific:
Code:
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:
sh postfix-install -non-interactive install_root=/some/tmp/dir/for/packaging


Top
 Profile  
 
PostPosted: Fri Jul 22, 2016 7:48 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 628
I am very thankful! :)

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


Top
 Profile  
 
PostPosted: Fri Jul 22, 2016 8:05 pm 
Online

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2358
P.S. After build, I got these direct dependencies for postfix (they have own subdependencies):
Quote:
db5 icu4c openssl pcre sqlite uClibc-solibs


Top
 Profile  
 
PostPosted: Sat Jul 23, 2016 8:22 am 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 628
Okay, I have all of them installed.

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


Top
 Profile  
 
PostPosted: Tue Aug 02, 2016 8:01 pm 
Online
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 628
Thanks! It works perfectly! :)

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: barmalej2, krakatamu, philippetev and 118 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group