[Bug 257672] mail/vpopmail "ld: error: duplicate symbol: MYSQL_READ_DATABASE" Freebsd 13.0-Release-p3

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 07 Aug 2021 15:30:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257672

            Bug ID: 257672
           Summary: mail/vpopmail "ld: error: duplicate symbol:
                    MYSQL_READ_DATABASE" Freebsd 13.0-Release-p3
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tobias.niethammer@projektb.net

during Buld with mysql-auth some duplicate symbol errors shown up, which stops
the build

cc  -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  
-fstack-protector-strong  -o vkill vkill.o libvpopmail.a -L/usr/local/lib/mysql
 -lmysqlclient -lz -lm -lcrypt
ld: error: duplicate symbol: MYSQL_READ_DATABASE
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_DATABASE)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x30) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_READ_PASSWD
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_PASSWD)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x28) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_READ_PORT
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_PORT)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x18) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_READ_SERVER
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_SERVER)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x8) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_READ_SOCKET
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_SOCKET)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x10) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_READ_USER
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_READ_USER)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x20) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_DATABASE
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_DATABASE)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x58) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_PASSWD
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_PASSWD)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x50) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_PORT
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_PORT)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x40) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_SERVER
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_SERVER)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x38) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_SOCKET
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_SOCKET)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x60) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_USER
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_USER)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x48) in archive libvpopmail.a

ld: error: duplicate symbol: MYSQL_UPDATE_VPORT
>>> defined at vconvert.c
>>>            vconvert.o:(MYSQL_UPDATE_VPORT)
>>> defined at vauth.c
>>>            libvpopmail_a-vauth.o:(.bss+0x2350) in archive libvpopmail.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:552: vconvert] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
'/tmp/portbuild/usr/ports/mail/vpopmail/work/vpopmail-5.4.33'
gmake[3]: *** [Makefile:714: all-recursive] Error 1
gmake[3]: Leaving directory
'/tmp/portbuild/usr/ports/mail/vpopmail/work/vpopmail-5.4.33'
gmake[2]: *** [Makefile:424: all] Error 2
gmake[2]: Leaving directory
'/tmp/portbuild/usr/ports/mail/vpopmail/work/vpopmail-5.4.33'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.