Hallo,
ich versuche zZ gwenhyfar als static lib auf dem Mac zu kompilieren. Grundlage sind sowohl die Version gwenhywfar-3.11.3 als auch gwenhywfar-3.11.7beta. Die Fehler sind jeweils identisch.
Ich habe folgende Variablen gesetzt:
und danach
ausgeführt. Das läuft soweit scheinbar relativ problemlos.
Wenn ich danach jedoch make ausführe, bekomme ich eine ziemlich lange Liste an Fehlern. Hier ein Auszug:
Kann mir jemand einen Lösungsvorschlag machen?
Den Hinweis zu den configure-Parametern habe ich den Quellen des hbcitool von dem wohl etwas ungeliebten Saldomat entnommen. Ich will es jedoch nicht dafür sondern für Pecunia verwenden.
ich versuche zZ gwenhyfar als static lib auf dem Mac zu kompilieren. Grundlage sind sowohl die Version gwenhywfar-3.11.3 als auch gwenhywfar-3.11.7beta. Die Fehler sind jeweils identisch.
Ich habe folgende Variablen gesetzt:
Code
PREFIX="/Users/xxx/Downloads/gwenhywfar-3.11.7beta/build-i386"
CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -I${PREFIX}/include"
LDFLAGS="-L${PREFIX}/lib"
CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -I${PREFIX}/include"
LDFLAGS="-L${PREFIX}/lib"
und danach
Code
./configure --disable-dependency-tracking --prefix=$PREFIX --disable-shared --enable-static --enable-local-install --disable-rpath --enable-binreloc --enable-binreloc-threads --with-libgcrypt-prefix=$PREFIX --with-libgnutls-prefix=$PREFIX --disable-variadic-macros
ausgeführt. Das läuft soweit scheinbar relativ problemlos.
Code
configure: WARNING: unrecognized options: --with-libgnutls-prefix
Summary
=============================================
Version : 3.11.7beta-0
System : osx
Installation Folder : /Users/xxxx/Downloads/gwenhywfar-3.11.7beta/build-i386
Local Installation Mode : yes
Plugin Installation Folder : ${libdir}/gwenhywfar/plugins/47
Plugin Search Folder : lib/gwenhywfar/plugins/47
Data Search Folder : share/gwenhywfar
Locale Search Folder : share/locale
Config Search Folder : etc
Buffer Default Hard Limit : (16*1024*1024)
Symbol Visibility : yes, gcc-4.0.1
OpenSSL Support for gct-tool : yes
GUI Support : fox16 qt3 qt4
GNUTLS : 1.6.1 or higher
Plugins
=============================================
Crypt token plugins : ohbci
DBIO plugins : csv olddb xmldb
ConfigManager plugins : dir
Summary
=============================================
Version : 3.11.7beta-0
System : osx
Installation Folder : /Users/xxxx/Downloads/gwenhywfar-3.11.7beta/build-i386
Local Installation Mode : yes
Plugin Installation Folder : ${libdir}/gwenhywfar/plugins/47
Plugin Search Folder : lib/gwenhywfar/plugins/47
Data Search Folder : share/gwenhywfar
Locale Search Folder : share/locale
Config Search Folder : etc
Buffer Default Hard Limit : (16*1024*1024)
Symbol Visibility : yes, gcc-4.0.1
OpenSSL Support for gct-tool : yes
GUI Support : fox16 qt3 qt4
GNUTLS : 1.6.1 or higher
Plugins
=============================================
Crypt token plugins : ohbci
DBIO plugins : csv olddb xmldb
ConfigManager plugins : dir
Wenn ich danach jedoch make ausführe, bekomme ich eine ziemlich lange Liste an Fehlern. Hier ein Auszug:
Code
gcc -DHAVE_CONFIG_H -DBUILDING_GWENHYWFAR -DGWEN_PREFIX_DIR="/Users/xxx/Downloads/gwenhywfar-3.11.7beta/build-i386" -DGWEN_SYSCONF_DIR="etc" -DLOCALEDIR="share/locale" -DLIBDIR="/Users/xxx/Downloads/gwenhywfar-3.11.7beta/build-i386/lib" -DGWENHYWFAR_SO_EFFECTIVE_STR="47" -DGWEN_DATADIR="share/gwenhywfar" -DPLUGINDIR="lib/gwenhywfar/plugins/47" -I. -I.. -I../gwenhywfar3 -I../src/base -I../src/crypt -I../src/io -I../src/os -I../src/ipc -I../src/net2 -I../src/parser -g -O2 -Wall -Wall -c testlib.c
/bin/sh ../libtool --tag=CC --mode=link gcc -fvisibility=hidden -g -O2 -Wall -Wall -o testlib testlib.o libgwenhywfar.la
libtool: link: gcc -fvisibility=hidden -g -O2 -Wall -Wall -o testlib testlib.o ./.libs/libgwenhywfar.a -L/usr/local/lib /usr/local/lib/libgnutls.dylib -lz /usr/local/lib/libgcrypt.dylib /usr/local/lib/libgpg-error.dylib -L/sw/lib /usr/local/lib/libintl.dylib /usr/lib/libiconv.dylib -lc -framework CoreFoundation
Undefined symbols:
"_GWEN_Buffer_InsertByte", referenced from:
_GWEN_XMLNode_GetXPath in libgwenhywfar.a(xml.o)
"_GWEN_Buffer_SetStep", referenced from:
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
"_GWEN_Buffer_Rewind", referenced from:
_GWEN_Padd_PaddWithIso9796_2 in libgwenhywfar.a(padd.o)
_GWEN_Padd_PaddWithPkcs1Bt1 in libgwenhywfar.a(padd.o)
_GWEN_Padd_PaddWithPkcs1Bt2 in libgwenhywfar.a(padd.o)
_GWEN_Io_LayerMemory_fromString in libgwenhywfar.a(io_memory.o)
"_GWEN_Buffer_new", referenced from:
_check1 in testlib.o
_check1 in testlib.o
_check2 in testlib.o
_check2 in testlib.o
_GWEN_Gui_CheckCertBuiltIn in libgwenhywfar.a(gui.o)
_GWEN_Gui_CheckCertBuiltIn in libgwenhywfar.a(gui.o)
_GWEN_Directory_GetPath in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_FindFileInPaths in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_FindPathForFile in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetFileEntriesWithType in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetFileEntries in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetDirEntries in libgwenhywfar.a(directory_all.o)
_GWEN_PathManager_AddPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_FindFile in libgwenhywfar.a(pathmanager.o)
_GWEN_Gui_CGui_CheckCert in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_SetPasswordStatus in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_GetPassword in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_GetPassword in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_ShowBox in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_InputBox in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_MessageBox in libgwenhywfar.a(cgui.o)
_GWEN_DB_WriteGroupToIoLayer in libgwenhywfar.a(db.o)
_GWEN_DB_WriteGroupToIoLayer in libgwenhywfar.a(db.o)
_GWEN_DB__ReadValues in libgwenhywfar.a(db.o)
_GWEN_DB__ReadValues in libgwenhywfar.a(db.o)
_GWEN_DB_ReadFromFastBuffer in libgwenhywfar.a(db.o)
_GWEN_DB_ReadFromFastBuffer in libgwenhywfar.a(db.o)
_GWEN_ProgressData_new in libgwenhywfar.a(progressdata.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_AddLogText in libgwenhywfar.a(dlg_progress.o)
_GWEN_Text_LogString in libgwenhywfar.a(text.o)
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
_GWEN_DlgMessage_new in libgwenhywfar.a(dlg_message.o)
_GWEN_Gui_CProgress_new in libgwenhywfar.a(cprogress.o)
_GWEN_Gui_CProgress_Log in libgwenhywfar.a(cprogress.o)
_GWEN_DlgInput_new in libgwenhywfar.a(dlg_input.o)
_GWEN_Logger__Log in libgwenhywfar.a(logger.o)
_GWEN_Logger_Log in libgwenhywfar.a(logger.o)
_GWEN_DlgShowBox_new in libgwenhywfar.a(dlg_showbox.o)
_GWEN_XMLNode_GetXPath in libgwenhywfar.a(xml.o)
_GWEN_XML_AddNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XML_FindNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XMLNode__CheckNameSpaceDecls1 in libgwenhywfar.a(xml.o)
_GWEN_XMLNode__CheckAndSetNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_DBIO_ModuleInit in libgwenhywfar.a(dbio.o)
_GWEN_FSLock_new in libgwenhywfar.a(fslock.o)
_GWEN_Io_LayerMemory_fromString in libgwenhywfar.a(io_memory.o)
_GWEN_XmlCtxStore_AddData in libgwenhywfar.a(xmlctx.o)
_GWEN_XmlCtxStore_AddAttr in libgwenhywfar.a(xmlctx.o)
_GWEN_PluginManager_LoadPlugin in libgwenhywfar.a(plugin.o)
_GWEN_PluginManager_LoadPlugin in libgwenhywfar.a(plugin.o)
_GWEN_PluginManager_LoadPluginFile in libgwenhywfar.a(plugin.o)
_GWEN_LibLoader_OpenLibraryWithPath in libgwenhywfar.a(libloader.o)
_GWEN_LoadPluginDescrsByType in libgwenhywfar.a(plugindescr.o)
...
"_GWEN_Buffer_AllocRoom", referenced from:
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Path_AppendPathElement in libgwenhywfar.a(path.o)
_GWEN_Io_Layer_ReadPacketToBuffer in libgwenhywfar.a(iolayer.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [testlib] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/bin/sh ../libtool --tag=CC --mode=link gcc -fvisibility=hidden -g -O2 -Wall -Wall -o testlib testlib.o libgwenhywfar.la
libtool: link: gcc -fvisibility=hidden -g -O2 -Wall -Wall -o testlib testlib.o ./.libs/libgwenhywfar.a -L/usr/local/lib /usr/local/lib/libgnutls.dylib -lz /usr/local/lib/libgcrypt.dylib /usr/local/lib/libgpg-error.dylib -L/sw/lib /usr/local/lib/libintl.dylib /usr/lib/libiconv.dylib -lc -framework CoreFoundation
Undefined symbols:
"_GWEN_Buffer_InsertByte", referenced from:
_GWEN_XMLNode_GetXPath in libgwenhywfar.a(xml.o)
"_GWEN_Buffer_SetStep", referenced from:
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
"_GWEN_Buffer_Rewind", referenced from:
_GWEN_Padd_PaddWithIso9796_2 in libgwenhywfar.a(padd.o)
_GWEN_Padd_PaddWithPkcs1Bt1 in libgwenhywfar.a(padd.o)
_GWEN_Padd_PaddWithPkcs1Bt2 in libgwenhywfar.a(padd.o)
_GWEN_Io_LayerMemory_fromString in libgwenhywfar.a(io_memory.o)
"_GWEN_Buffer_new", referenced from:
_check1 in testlib.o
_check1 in testlib.o
_check2 in testlib.o
_check2 in testlib.o
_GWEN_Gui_CheckCertBuiltIn in libgwenhywfar.a(gui.o)
_GWEN_Gui_CheckCertBuiltIn in libgwenhywfar.a(gui.o)
_GWEN_Directory_GetPath in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_FindFileInPaths in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_FindPathForFile in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetFileEntriesWithType in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetFileEntries in libgwenhywfar.a(directory_all.o)
_GWEN_Directory_GetDirEntries in libgwenhywfar.a(directory_all.o)
_GWEN_PathManager_AddPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_AddRelPath in libgwenhywfar.a(pathmanager.o)
_GWEN_PathManager_FindFile in libgwenhywfar.a(pathmanager.o)
_GWEN_Gui_CGui_CheckCert in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_SetPasswordStatus in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_GetPassword in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_GetPassword in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_ShowBox in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_InputBox in libgwenhywfar.a(cgui.o)
_GWEN_Gui_CGui_MessageBox in libgwenhywfar.a(cgui.o)
_GWEN_DB_WriteGroupToIoLayer in libgwenhywfar.a(db.o)
_GWEN_DB_WriteGroupToIoLayer in libgwenhywfar.a(db.o)
_GWEN_DB__ReadValues in libgwenhywfar.a(db.o)
_GWEN_DB__ReadValues in libgwenhywfar.a(db.o)
_GWEN_DB_ReadFromFastBuffer in libgwenhywfar.a(db.o)
_GWEN_DB_ReadFromFastBuffer in libgwenhywfar.a(db.o)
_GWEN_ProgressData_new in libgwenhywfar.a(progressdata.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_new in libgwenhywfar.a(dlg_progress.o)
_GWEN_DlgProgress_AddLogText in libgwenhywfar.a(dlg_progress.o)
_GWEN_Text_LogString in libgwenhywfar.a(text.o)
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_HandleWithIdx in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
_GWEN_Path_Handle in libgwenhywfar.a(path.o)
_GWEN_DlgMessage_new in libgwenhywfar.a(dlg_message.o)
_GWEN_Gui_CProgress_new in libgwenhywfar.a(cprogress.o)
_GWEN_Gui_CProgress_Log in libgwenhywfar.a(cprogress.o)
_GWEN_DlgInput_new in libgwenhywfar.a(dlg_input.o)
_GWEN_Logger__Log in libgwenhywfar.a(logger.o)
_GWEN_Logger_Log in libgwenhywfar.a(logger.o)
_GWEN_DlgShowBox_new in libgwenhywfar.a(dlg_showbox.o)
_GWEN_XMLNode_GetXPath in libgwenhywfar.a(xml.o)
_GWEN_XML_AddNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XML_FindNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XMLNode__CheckNameSpaceDecls1 in libgwenhywfar.a(xml.o)
_GWEN_XMLNode__CheckAndSetNameSpace in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_XML_ReadFromFastBuffer in libgwenhywfar.a(xml.o)
_GWEN_DBIO_ModuleInit in libgwenhywfar.a(dbio.o)
_GWEN_FSLock_new in libgwenhywfar.a(fslock.o)
_GWEN_Io_LayerMemory_fromString in libgwenhywfar.a(io_memory.o)
_GWEN_XmlCtxStore_AddData in libgwenhywfar.a(xmlctx.o)
_GWEN_XmlCtxStore_AddAttr in libgwenhywfar.a(xmlctx.o)
_GWEN_PluginManager_LoadPlugin in libgwenhywfar.a(plugin.o)
_GWEN_PluginManager_LoadPlugin in libgwenhywfar.a(plugin.o)
_GWEN_PluginManager_LoadPluginFile in libgwenhywfar.a(plugin.o)
_GWEN_LibLoader_OpenLibraryWithPath in libgwenhywfar.a(libloader.o)
_GWEN_LoadPluginDescrsByType in libgwenhywfar.a(plugindescr.o)
...
"_GWEN_Buffer_AllocRoom", referenced from:
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Text_UnescapeXmlToBuffer in libgwenhywfar.a(text.o)
_GWEN_Path_AppendPathElement in libgwenhywfar.a(path.o)
_GWEN_Io_Layer_ReadPacketToBuffer in libgwenhywfar.a(iolayer.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [testlib] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Kann mir jemand einen Lösungsvorschlag machen?
Den Hinweis zu den configure-Parametern habe ich den Quellen des hbcitool von dem wohl etwas ungeliebten Saldomat entnommen. Ich will es jedoch nicht dafür sondern für Pecunia verwenden.