[Slackbuilds-users] Opensmtpd build error

Matteo Bernardini matteo.bernardini at gmail.com
Tue Aug 24 07:57:55 UTC 2021


Il giorno mar 24 ago 2021 alle ore 09:45 karthik krishna <
karthikkris23 at gmail.com> ha scritto:

> Hi,
> trying to install opensmtpd and getting below error i have already
> installed the dependency libasr
> so not sure why this is occurring?
> Anyone able to assist?
>
> /usr/bin/ld:
> ../../openbsd-compat/libopenbsd-compat.a(fparseln.o):(.bss+0x8): multiple
> definition of `BSDoptarg'; ../../smtpd/smtpd-aliases.o:(.bss+0x8): first
> defined h
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:740: smtpd] Error 1
> make[3]: Leaving directory '/tmp/SBo/opensmtpd-6.6.4p1/mk/smtpd'
> make[2]: *** [Makefile:371: all-recursive] Error 1
> make[2]: Leaving directory '/tmp/SBo/opensmtpd-6.6.4p1/mk'
> make[1]: *** [Makefile:418: all-recursive] Error 1
> make[1]: Leaving directory '/tmp/SBo/opensmtpd-6.6.4p1'
> make: *** [Makefile:350: all] Error 2
>

Hi karthik,

please note that opensmtpd is not maintained anymore on SBo and will soon
be removed: the version we have in the repo is, using Robby's words,
"insecurely out of date".

if you really want to build the version presently in the repo change this
line in the SlackBuild

CFLAGS="$SLKCFLAGS -D_DEFAULT_SOURCE" \

with

CFLAGS="$SLKCFLAGS -D_DEFAULT_SOURCE -fcommon" \

but if you want to use it in production I suggest you to copy the script
somewhere and try managing updating it yourself...

Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20210824/7c262584/attachment.htm>


More information about the SlackBuilds-users mailing list