We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Build Compilation - Postfix Issue



  • Hi,

    I have setup a new/fresh Ubuntu 19 cloud server and did apt-get update/upgrade/dist upgrade so that everything is latest as of 28/06/2019.

    The make is failing:

     make[3] -C feeds/packages/mail/postfix compile
    make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
    make: *** [/opt/onionfirmware/source/include/toplevel.mk:218: world] Error 1
    

    When running Verbose mode:

    make: Entering directory '/opt/onionfirmware/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/src/util'
    mipsel-openwrt-linux-musl-gcc -DNO_NIS -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/onionfirmware/source/staging_dir/target-mipsel_24kc_musl/usr/include/sasl -DHAS_LDAP -DHAS_CDB -DNO_DB -DHAS_SQLITE -I/opt/onionfirmware/source/staging_dir/target-mipsel_24kc_musl/usr/include/ -DHAS_PCRE -I/opt/onionfirmware/source/staging_dir/target-mipsel_24kc_musl/usr/include/ -DNO_EAI -DDEF_DB_TYPE=\"cdb\"  -g -O -I. -DLINUX5 -c alldig.c
    cc1: note: someone does not honour COPTS correctly, passed 0 times
    In file included from alldig.c:29:0:
    ./sys_defs.h:1257:2: error: #error "unsupported platform"
     #error "unsupported platform"
      ^~~~~
    ./sys_defs.h:1320:2: error: #error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
     #error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
      ^~~~~
    ./sys_defs.h:1324:2: error: #error "define DEF_MAILBOX_LOCK"
     #error "define DEF_MAILBOX_LOCK"
      ^~~~~
    ./sys_defs.h:1328:2: error: #error "define INTERNAL_LOCK"
     #error "define INTERNAL_LOCK"
      ^~~~~
    ./sys_defs.h:1336:2: error: #error "define USE_STATFS or USE_STATVFS"
     #error "define USE_STATFS or USE_STATVFS"
      ^~~~~
    In file included from alldig.c:29:0:
    ./sys_defs.h:1347:57: error: unknown type name 'SOCKADDR_SIZE'
     extern const char *inet_ntop(int, const void *, char *, SOCKADDR_SIZE);
                                                             ^~~~~~~~~~~~~
    make: *** [Makefile:187: alldig.o] Error 1
    make: Leaving directory '/opt/onionfirmware/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/src/util'
    make[4]: *** [Makefile:92: update] Error 1
    make[4]: Leaving directory '/opt/onionfirmware/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0'
    make[3]: *** [Makefile:269: /opt/onionfirmware/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/.built] Error 2
    make[3]: Leaving directory '/opt/onionfirmware/source/feeds/packages/mail/postfix'
    Command exited with non-zero status 2
    time: package/feeds/packages/postfix/compile#0.18#0.03#0.38
    make[2]: *** [package/Makefile:109: package/feeds/packages/postfix/compile] Error 2
    make[2]: Leaving directory '/opt/onionfirmware/source'
    make[1]: *** [package/Makefile:103: /opt/onionfirmware/source/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/opt/onionfirmware/source'
    make: *** [/opt/onionfirmware/source/include/toplevel.mk:218: world] Error 2
    
    

    Any idea how I can fix this?
    Regards,
    UFD



  • @UFD
    Troubleshooting similar odd problems on my last builds turned out to be as a result of a misalignment of lede-17.01 feeds and openwrt-18.06 source.
    If you're compiling the openwrt-18.06 branch, make sure your feeds are in line with those by cleaning, updating and installing them before running make. i.e.

    ./scripts/feeds clean
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    


  • @cas , Thanks for your assistance.

    After playing around for a bit, I ended up removing postfix from the compilation process in the .config file. It was set to module, so hoping that it is not that important.

    Regards,
    UFD


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.