Project

General

Profile

Bug #216

ld: error: duplicate symbol

Added by rsadowski about 1 month ago.

Status:
New
Priority:
High
Category:
AqBanking
Start date:
06/30/2020
Due date:
Betriebssystem:
andere
AqBanking-Version:
6.2.1
Anwendung:
andere
Version der Anwendung:

Description

Ich versuche das alte aqbanking package in OpenBSD zu aktualisieren. Leider laufe ich in folgenden
linker Fehler. Es schaut so aus als ob einige static libs mehrmals gelinkt werden, oder?
Die Methoden gibt es auf jeden Fall nur einmal.

Kann jemand der tiefer im Code ist einen Fehler finden? Ich habe die ganze Log angehängt.
Würde mich über feedback freuen.

/usr/bin/libtool  --tag=CC   --mode=link cc  -O2 -pipe -g -Wall -no-undefined -version-info 46:1:2 -L/usr/local/lib -lintl -g -o libaqbanking.la -rpath /usr/local/lib dummy.lo -L/usr/local/lib -lgwenhywfar -lgmp   aqbanking/libaqbanking_base.la plugins/libabplugins.la 
libtool: link: cc -shared -fPIC -DPIC -o .libs/libaqbanking.so.2.0 -O2 -pipe -g -Wall -g .libs/dummy.o -Wl,-whole-archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/aqbanking/.libs/libaqbanking_base.a /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a -Wl,-no-whole-archive -L.libs -lintl -liconv -lgwenhywfar -lgcrypt -lgpg-error -lgnutls -lp11-kit -lffi -lpthread -lidn2 -lunistring -ltasn1 -lnettle -lhogweed -lgmp -Wl,-soname,libaqbanking.so.2.0
ld: error: duplicate symbol: AO_V2_MkOfxHeader
>>> defined at n_header.c:31
>>>            n_header.o:(AO_V2_MkOfxHeader) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at n_header.c:31
>>>            n_header.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: AO_V2_MkXmlHeader
>>> defined at n_header.c:60
>>>            n_header.o:(AO_V2_MkXmlHeader) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at n_header.c:60
>>>            n_header.o:(.text+0x170) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: AO_V2_RequestAccounts
>>> defined at r_accounts.c:31
>>>            r_accounts.o:(AO_V2_RequestAccounts) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at r_accounts.c:31
>>>            r_accounts.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: AO_V2_RequestStatements
>>> defined at r_statements.c:33
>>>            r_statements.o:(AO_V2_RequestStatements) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at r_statements.c:33
>>>            r_statements.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_Control_AddUser
>>> defined at adduser.c:34
>>>            adduser.o:(APY_Control_AddUser) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at adduser.c:34
>>>            adduser.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: AO_Control_GetAccounts
>>> defined at getaccounts.c:33
>>>            getaccounts.o:(AO_Control_GetAccounts) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at getaccounts.c:33
>>>            getaccounts.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_Control_ListUsers
>>> defined at listusers.c:31
>>>            listusers.o:(APY_Control_ListUsers) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at listusers.c:31
>>>            listusers.o:(.text+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NEWUSER_DIALOG__INHERIT_ID
>>> defined at dlg_newuser.c:46
>>>            dlg_newuser.o:(APY_NEWUSER_DIALOG__INHERIT_ID) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:46
>>>            dlg_newuser.o:(.bss+0x0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_AddFlags
>>> defined at dlg_newuser.c:377
>>>            dlg_newuser.o:(APY_NewUserDialog_AddFlags) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:377
>>>            dlg_newuser.o:(.text+0xEE0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_DoIt
>>> defined at dlg_newuser.c:713
>>>            dlg_newuser.o:(APY_NewUserDialog_DoIt) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:713
>>>            dlg_newuser.o:(.text+0x1C90) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_EnterPage
>>> defined at dlg_newuser.c:655
>>>            dlg_newuser.o:(APY_NewUserDialog_EnterPage) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:655
>>>            dlg_newuser.o:(.text+0x19B0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_Fini
>>> defined at dlg_newuser.c:550
>>>            dlg_newuser.o:(APY_NewUserDialog_Fini) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:550
>>>            dlg_newuser.o:(.text+0x12A0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetApiPassword
>>> defined at dlg_newuser.c:161
>>>            dlg_newuser.o:(APY_NewUserDialog_GetApiPassword) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:161
>>>            dlg_newuser.o:(.text+0x560) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetApiSignature
>>> defined at dlg_newuser.c:191
>>>            dlg_newuser.o:(APY_NewUserDialog_GetApiSignature) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:191
>>>            dlg_newuser.o:(.text+0x6B0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetApiUserId
>>> defined at dlg_newuser.c:131
>>>            dlg_newuser.o:(APY_NewUserDialog_GetApiUserId) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:131
>>>            dlg_newuser.o:(.text+0x410) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetFlags
>>> defined at dlg_newuser.c:351
>>>            dlg_newuser.o:(APY_NewUserDialog_GetFlags) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:351
>>>            dlg_newuser.o:(.text+0xDC0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetHttpVMajor
>>> defined at dlg_newuser.c:311
>>>            dlg_newuser.o:(APY_NewUserDialog_GetHttpVMajor) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:311
>>>            dlg_newuser.o:(.text+0xC00) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetHttpVMinor
>>> defined at dlg_newuser.c:324
>>>            dlg_newuser.o:(APY_NewUserDialog_GetHttpVMinor) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:324
>>>            dlg_newuser.o:(.text+0xC90) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetSecretPageData
>>> defined at dlg_newuser.c:579
>>>            dlg_newuser.o:(APY_NewUserDialog_GetSecretPageData) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:579
>>>            dlg_newuser.o:(.text+0x1390) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: duplicate symbol: APY_NewUserDialog_GetUrl
>>> defined at dlg_newuser.c:281
>>>            dlg_newuser.o:(APY_NewUserDialog_GetUrl) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a
>>> defined at dlg_newuser.c:281
>>>            dlg_newuser.o:(.text+0xAB0) in archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Error while executing cc -shared -fPIC -DPIC -o .libs/libaqbanking.so.2.0 -O2 -pipe -g -Wall -g .libs/dummy.o -Wl,-whole-archive /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/aqbanking/.libs/libaqbanking_base.a /usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs/plugins/.libs/libabplugins.a -Wl,-no-whole-archive -L.libs -lintl -liconv -lgwenhywfar -lgcrypt -lgpg-error -lgnutls -lp11-kit -lffi -lpthread -lidn2 -lunistring -ltasn1 -lnettle -lhogweed -lgmp -Wl,-soname,libaqbanking.so.2.0
gmake[4]: *** [Makefile:765: libaqbanking.la] Error 2
gmake[4]: Leaving directory '/usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs'
gmake[3]: *** [Makefile:828: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src/libs'
gmake[2]: *** [Makefile:469: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1/src'
gmake[1]: *** [Makefile:757: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/pobj/aqbanking-6.2.1/aqbanking-6.2.1'
gmake: *** [Makefile:554: all] Error 2
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2925 '/usr/ports/pobj/aqbanking-6.2.1/.build_done': @cd /usr/ports/pobj/aqbanking...)
*** Error 2 in /home/rsadowski/src/wip-ports/productivity/aqbanking (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'all': @lock=aqbanking-6....)

aqbanking-6.2.1.fullbuild.txt Magnifier (404 KB) rsadowski, 06/30/2020 10:09 PM

Also available in: Atom PDF