Bug 257672 - mail/vpopmail "ld: error: duplicate symbol: MYSQL_READ_DATABASE" Freebsd 13.0-Release-p3
Summary: mail/vpopmail "ld: error: duplicate symbol: MYSQL_READ_DATABASE" Freebsd 13.0...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-07 15:30 UTC by tobias.niethammer
Modified: 2021-10-04 23:16 UTC (History)
1 user (show)

See Also:


Attachments
patch Vpopmail Makefile (245 bytes, patch)
2021-10-04 23:16 UTC, rob
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tobias.niethammer 2021-08-07 15:30:23 UTC
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
Comment 1 tobias.niethammer 2021-08-24 19:29:53 UTC
adding following to the Makefile solves the issue

CFLAGS+=	-fcommon
Comment 2 rob 2021-10-04 23:06:51 UTC
can confirm this works
Comment 3 rob 2021-10-04 23:16:47 UTC
Created attachment 228447 [details]
patch Vpopmail Makefile