Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BEID cardreader & dev-libs/libtomcrypt-1.06
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
donqui
n00b
n00b


Joined: 06 Aug 2010
Posts: 15
Location: BE

PostPosted: Fri Aug 06, 2010 11:04 am    Post subject: BEID cardreader & dev-libs/libtomcrypt-1.06 Reply with quote

Hi guys,

I'm currently trying to get my Eid reader to work with my gentoo installation.

The device itself needs no driver as far as I know, my usb is working fine.

I downloaded an ebuild for beid-runtime which is middleware to readout the eid. (as far as I understand it anyway)
The ebuild was recently made available here: https://bugs.gentoo.org/show_bug.cgi?id=187422 by a nice guy (Vincent Hardy) who took the time to make one. (don't know yet how to make ebuilds myself)

after the file was downloaded: https://bugs.gentoo.org/attachment.cgi?id=235239 (beid-runtime-3.5.4.tar.bz2) it extracted fine.
since I'm not familiar with the manual ebuild install process, I followed the guide about ebuilds here: http://www.gentoo.org/doc/en/handbook/2004.2/handbook-x86.xml?part=3&chap=6

command: <<ebuild app-misc/beid-runtime/beid-runtime-3.5.4.ebuild merge>>

When it comes to the compile step, first I had a problem with a missing package: pcsc_lite which luckily could be installed using standard emerge tool.

Then I got stuck on an error in the libtomcrypt:

<<
In file included from libtomcrypt/tomcrypt_hash.h:22,
from libtomcrypt/md5.c:11:
libtomcrypt/tomcrypt_macros.h: In function 'ROLc':
libtomcrypt/tomcrypt_macros.h:229: warning: asm operand 2 probably doesn't match constraints
libtomcrypt/tomcrypt_macros.h:229: error: impossible constraint in 'asm'
In file included from libtomcrypt/tomcrypt_hash.h:22,
from libtomcrypt/sha1.c:11:
libtomcrypt/tomcrypt_macros.h: In function 'ROLc':
libtomcrypt/tomcrypt_macros.h:229: warning: asm operand 2 probably doesn't match constraints
libtomcrypt/tomcrypt_macros.h:229: error: impossible constraint in 'asm'
make[1]: *** [md5.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [sha1.o] Error 1
Util.cpp: In function 'int fprintf_s(FILE*, const char*, ...)':
Util.cpp:508: warning: format not a string literal and no format arguments
Util.cpp: In function 'int vfprintf_s(FILE*, const char*, __va_list_tag*)':
Util.cpp:524: warning: format not a string literal and no format arguments
make[1]: Leaving directory `/var/tmp/portage/app-misc/beid-runtime-3.5.4/work/beid-runtime-3.5.4/eid-mw/_src/eidmw/common'
make: *** [sub-common-make_default-ordered] Error 2
* ERROR: app-misc/beid-runtime-3.5.4 failed:
* An error occured while building eidmw.
>>

At this point, I did an ebuild clean and tried to install the libtomcrypt package: <<sudo emerge -av libtomcrypt>> and failed:

<<
* Failed Patch: libtomcrypt-1.06-makefile.diff !
* ( /usr/portage/dev-libs/libtomcrypt/files/libtomcrypt-1.06-makefile.diff )
>>

Does anybody know what could possibly be wrong with this package? Is it because something I did while ebuild-installing the beid package?
Should I create a bug report?

Thanks for any help.

kind regards.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 8045
Location: ~Brussels - Belgique

PostPosted: Fri Aug 06, 2010 11:15 am    Post subject: Reply with quote

Hello,

The best thing to do is add a comment in the related bug at the Gentoo's bugzilla.
(I can't help more, I use the Token ;))
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
donqui
n00b
n00b


Joined: 06 Aug 2010
Posts: 15
Location: BE

PostPosted: Sat Aug 07, 2010 11:47 am    Post subject: Reply with quote

Thanks.

I filed a bug with gentoo bugzilla, as a workaround, I could install version 1.17-r3 from libtomcrypt (ACCEPT_KEYWORDS="~amd64" emerge -av libtomcrypt)
As such, libtomcrypt seems to be installed correctly now.

However, this could not solve the installation of the beid middleware ebuild.


{{{
...
gcc -c -pipe -fPIC -DBEID_35 -DEIDMW_PREFIX=/var/tmp/portage/app-misc/beid-runtime-3.5.4/image/usr -DEIDMW_CMN_EXPORT -DUSING_DL_OPEN -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4 -I/usr/include/PCSC -I/usr/include/qt4/QtCore -I/usr/include/Qt -I/usr/include -I/opt/sun-jdk-1.6.0.20/include -I/opt/sun-jdk-1.6.0.20/include/linux -Icommon -Icommon/libtomcrypt -Icommon/Socket -I/usr/include/PCSC -o md5.o libtomcrypt/md5.c
In file included from libtomcrypt/tomcrypt_hash.h:22,
from libtomcrypt/md5.c:11:
libtomcrypt/tomcrypt_macros.h: In function 'ROLc':
libtomcrypt/tomcrypt_macros.h:229: warning: asm operand 2 probably doesn't match constraints
libtomcrypt/tomcrypt_macros.h:229: error: impossible constraint in 'asm'
make[1]: *** [md5.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Util.cpp: In function 'int fprintf_s(FILE*, const char*, ...)':
Util.cpp:508: warning: format not a string literal and no format arguments
Util.cpp: In function 'int vfprintf_s(FILE*, const char*, __va_list_tag*)':
Util.cpp:524: warning: format not a string literal and no format arguments
make[1]: Leaving directory `/var/tmp/portage/app-misc/beid-runtime-3.5.4/work/beid-runtime-3.5.4/eid-mw/_src/eidmw/common'
make: *** [sub-common-make_default-ordered] Error 2
* ERROR: app-misc/beid-runtime-3.5.4 failed:
* An error occured while building eidmw.
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 2915: Called die
* The specific snippet of code:
* emake || die "An error occured while building eidmw."
*
* If you need support, post the output of 'emerge --info =app-misc/beid-runtime-3.5.4',
* the complete build log and the output of 'emerge -pqv =app-misc/beid-runtime-3.5.4'.
* This ebuild is from an overlay: '/data/userdata/software/beid/'
* The complete build log is located at '/var/tmp/portage/app-misc/beid-runtime-3.5.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/beid-runtime-3.5.4/temp/environment'.
* S: '/var/tmp/portage/app-misc/beid-runtime-3.5.4/work/beid-runtime-3.5.4/eid-mw/_src/eidmw'

* Messages for package app-misc/beid-runtime-3.5.4:

* ERROR: app-misc/beid-runtime-3.5.4 failed:
* An error occured while building eidmw.
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 2915: Called die
* The specific snippet of code:
* emake || die "An error occured while building eidmw."
*
* If you need support, post the output of 'emerge --info =app-misc/beid-runtime-3.5.4',
* the complete build log and the output of 'emerge -pqv =app-misc/beid-runtime-3.5.4'.
* This ebuild is from an overlay: '/data/userdata/software/beid/'
* The complete build log is located at '/var/tmp/portage/app-misc/beid-runtime-3.5.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/beid-runtime-3.5.4/temp/environment'.
* S: '/var/tmp/portage/app-misc/beid-runtime-3.5.4/work/beid-runtime-3.5.4/eid-mw/_src/eidmw'
}}}


I am wondering if I need to set some variable or use flag or anything to get this to compile? Is there a way to compile anyway, ignoring the error? That way, I can maybe work with the software anyway?

thanks for any advice.

kind regards,
Lieven
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum