Question

compiling a USB cardreader to be recgnized in debian linux

Asked by: sami8519

Hi,

I bought this device and dont know how to make it work.Anybody please tell me how to compile this device files in order to work in linux?

here is the files: http://rapidshare.com/files/272127138/smartcardReaderlinux.rar

I am willing to pay for the who helps me make it work.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-27 at 05:22:54ID24686287
Topics

Debian Linux

,

Linux Programming

,

Linux Setup

Participating Experts
1
Points
500
Comments
43

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. usb & linux
    I have RH 6.0 linux. I recently bought an ISDN and 3com USR ISDN pro TA modem. Because I had problems using it on com port in win98 I installed it on USB port. Now I wonder is there a way to put my modem in work under linux.
  2. Cross-compiling from Debian Linux 3.0 to Solaris 9.
    I wish to be able to compile a small C application on my Debian Linux 3.0 box for a Solaris 9 system. I have installed the binutils-sparc package on my system, and downloaded the Debian gcc-2.95 sources. I have executed "./configure --target=sparc-sun-solaris --prefix=...
  3. Problems creating /proc/bus/usb - Debian
    This problem started while attempting to set up a usb printer on my debian box. (2.4.18) I went to mount the USB device filesystem and found I had no /proc/bus/usb. I do have /proc/bus/pccard and /proc/bus/pci. I recompiled my kernel with support for USB, USB Device Filesys...
  4. MSSQL and Debian?
    I am trying to install http://www.object-craft.com.au/projects/mssql/ on my Debian system, but when i try to build, i end up with the below. Also, my package list is at the bottom. hooch:~/Download/Asterisk/MSSQL-0.09# python setup.py install running install running build ru...
  5. RAR in Linux (Fedora?)
    Where could I find a RAR application for Linux (Fedora). Thank you.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: liddlerPosted on 2009-08-27 at 06:07:35ID: 25197564

According to the readme, it requires:
A C compiler
Make, linker tools
kernel source code

unrar the file
then:
INSTALLATION:

1. First Install PCSC Library
      # cd pcsc-lite-1.2.0
      # ./configure
      # make
      # make install
      # cd ..
      #

2. Install Driver
      # make
      # make install

3. Reboot System
      # reboot

 

by: sami8519Posted on 2009-08-27 at 06:12:30ID: 25197641

I have read this but it is difficult for me to do it, I am a beginner.

If anybody willing to log into my linux server and do it for me?

Thanks.

 

by: liddlerPosted on 2009-08-27 at 06:26:09ID: 25197823

I can't do that from here, but the steps are not too difficult.
Type each command as above, start with:
cd pcsc-lite-1.2.0
then
./configure
you should see lots of messages now, it will stop if there is an error, if so post it here, if not, continue
make
make install
cd ..
make
make install
reboot

If you see any errors or are not sure, post the output here

 

by: sami8519Posted on 2009-08-27 at 06:35:24ID: 25197920

this what happens when I write command ./configure

Using username "root".
root@192.168.1.99's password:
Linux debian 2.6.26-2-486 #1 Thu May 28 15:10:18 UTC 2009 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Aug 24 20:30:49 2009 from 192.168.1.10
debian:~# cd /tmp/reader
debian:/tmp/reader# cd pcsc-lite-1.2.0
debian:/tmp/reader/pcsc-lite-1.2.0# ./configure
-bash: ./configure: Permission denied
debian:/tmp/reader/pcsc-lite-1.2.0#

 

by: liddlerPosted on 2009-08-27 at 06:42:50ID: 25198019

chmod +x configure
./configure

I'm guessing the configure script doesn't have the execute bit set, (sometimes happens after files have been zipped / rar'ed)

 

by: sami8519Posted on 2009-08-27 at 06:46:33ID: 25198053

yes chmod option was not there, so i put it to all files. Now this error comes:

debian:/tmp/reader/pcsc-lite-1.2.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
debian:/tmp/reader/pcsc-lite-1.2.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
debian:/tmp/reader/pcsc-lite-1.2.0# make
-bash: make: command not found
debian:/tmp/reader/pcsc-lite-1.2.0#

 

by: liddlerPosted on 2009-08-27 at 06:49:48ID: 25198092

so you need a compiler and make, they come in the build-essential package, you can install with:

apt-get install build-essential

 

by: sami8519Posted on 2009-08-27 at 06:54:48ID: 25198151

I am downloading the package now. Cheers mate.

 

by: liddlerPosted on 2009-08-27 at 06:56:29ID: 25198174

once the ./configure has completed without errors, you can then run the make, the configure scripts looks for the packages you might need, so let me know if you get any more errors and we'll see what else is missing

 

by: sami8519Posted on 2009-08-27 at 07:02:51ID: 25198268

After downloading, it says this:

Fetched 18.5MB in 8min52s (34.8kB/s)
Failed to fetch http://security.debian.org/pool/updates/main/l/linux-2.6/linux-libc-dev_2.6.26-15lenny3_i386.deb  404 Not Found [IP: 128.101.240.212 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

 

by: sami8519Posted on 2009-08-27 at 07:07:32ID: 25198318

now is ok, i am running ./configure

 

by: liddlerPosted on 2009-08-27 at 07:12:10ID: 25198386

looks like a bad link or repository down, try
apt-get update
to update your repositories

 

by: sami8519Posted on 2009-08-27 at 07:15:34ID: 25198418

now I finished installing step 1. First Install PCSC Library

now when I try doing step 2. Install Driver , this error comes.

debian:/tmp/reader# cd Driver
debian:/tmp/reader/Driver# make
make: *** No targets specified and no makefile found.  Stop.
debian:/tmp/reader/Driver#

 

by: liddlerPosted on 2009-08-27 at 07:19:28ID: 25198472

you shouldn't be in the Driver directory, you should be in the reader directory according to the README
the make command will only work where is sees a Makefile,so
cd ..

 

by: sami8519Posted on 2009-08-27 at 07:23:14ID: 25198508

In the reader dir, it says please install kernel source

debian:/# cd /tmp/reader
debian:/tmp/reader# make
please install kernel source!

may be step 1 has not been successful!

 

by: liddlerPosted on 2009-08-27 at 07:28:41ID: 25198593

apt-get install linux-source-2.6.26
assuming you are on 2.6.26

 

by: sami8519Posted on 2009-08-27 at 07:29:49ID: 25198603

This is when entering command ./configure

debian:/tmp/reader# cd pcsc-lite-1.2.0
debian:/tmp/reader/pcsc-lite-1.2.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether byte ordering is bigendian... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bash... /bin/bash
checking for ksh... (cached) /bin/bash
checking for sh... (cached) /bin/bash
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking for the pthreads library -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for dlfcn.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking smartcard/scf.h usability... no
checking smartcard/scf.h presence... no
checking for smartcard/scf.h... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for error_at_line... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for daemon... yes
checking for flock... yes
checking for getopt_long... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strncpy... yes
checking for vsnprintf... yes
checking for inline... inline
checking for dlopen in -ldl... yes
checking for socket in -lsocket... no
checking for yywrap in -ll... (cached) no
checking for yywrap in -lfl... (cached) no
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
checking for usb_init in -lusb... no
enable libusb support         : false
enable USB drop directory     : /usr/local/pcsc/drivers
enable debug messages         : true
enable ATR parsing messages   : false
enable SCF reader support     : false
enable musclecard             : true
enable MuscleCard bundles dir : /usr/local/pcsc/services
enable confdir                : /etc (default)
enable runpid                 : false
enable ipcdir                 : /var/run (default)
enable threadsafe client      : true
NOTE :: You must link pthread libraries with your app.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating aclocal/Makefile
config.status: creating doc/Makefile
config.status: creating doc/bundleTool.8
config.status: creating doc/pcscd.8
config.status: creating doc/example/Makefile
config.status: creating etc/Makefile
config.status: creating etc/reader.conf
config.status: creating src/Makefile
config.status: creating src/libmusclecard.pc
config.status: creating src/libpcsclite.pc
config.status: creating src/utils/Makefile
config.status: creating win32/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

This is when doing make command

make  all-recursive
make[1]: Entering directory `/tmp/reader/pcsc-lite-1.2.0'
Making all in aclocal
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
Making all in win32
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/win32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/win32'
Making all in src
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/src'
Making all in .
make[3]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/src'
/bin/sh ../libtool --mode=link gcc  -Wall -fno-common -g -O2    -o pcscd -rdynamic pcscd-pcscdaemon.o pcscd-winscard_svc.o libpcsclite-core.la -lpthread -ldl   -lpthread
gcc -Wall -fno-common -g -O2 -o pcscd -rdynamic pcscd-pcscdaemon.o pcscd-winscard_svc.o  ./.libs/libpcsclite-core.a -ldl -lpthread
./.libs/libpcsclite-core.a(libpcsclite_core_la-configfile.o): In function `yylex':
/tmp/reader/pcsc-lite-1.2.0/src/configfile.c:828: undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[3]: *** [pcscd] Error 1
make[3]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0'
make: *** [all] Error 2
debian:/tmp/reader/pcsc-lite-1.2.0#
this is when making make install

Making install in aclocal
make[1]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
make[1]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/aclocal'
Making install in win32
make[1]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/win32'
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/win32'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/win32'
make[1]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/win32'
Making install in src
make[1]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/src'
Making install in .
make[2]: Entering directory `/tmp/reader/pcsc-lite-1.2.0/src'
/bin/sh ../libtool --mode=link gcc  -Wall -fno-common -g -O2    -o pcscd -rdynamic pcscd-pcscdaemon.o pcscd-winscard_svc.o libpcsclite-core.la -lpthread -ldl   -lpthread
gcc -Wall -fno-common -g -O2 -o pcscd -rdynamic pcscd-pcscdaemon.o pcscd-winscard_svc.o  ./.libs/libpcsclite-core.a -ldl -lpthread
./.libs/libpcsclite-core.a(libpcsclite_core_la-configfile.o): In function `yylex':
/tmp/reader/pcsc-lite-1.2.0/src/configfile.c:828: undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[2]: *** [pcscd] Error 1
make[2]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/reader/pcsc-lite-1.2.0/src'
make: *** [install-recursive] Error 1
debian:/tmp/reader/pcsc-lite-1.2.0#
debian:/tmp/reader#
debian:/tmp/reader# make
please install kernel source!
debian:/tmp/reader#

 

by: sami8519Posted on 2009-08-27 at 07:32:44ID: 25198641

I am downloading the source now. Thanks mate for bearing with me.

 

by: sami8519Posted on 2009-08-27 at 07:34:56ID: 25198661

finished downloaing but still when entering command make:

debian:/tmp/reader# make
please install kernel source!

 

by: liddlerPosted on 2009-08-27 at 07:34:59ID: 25198662

you do have an error in the first make:
configfile.c:828: undefined reference to `yywrap'

Found something here:
http://www.etokenonlinux.org/et/FAQ
Your installation is missing the package flex. Install it and start over
so install flex
apt-get install flex bison
then in /tmp/reader/pcsc-lit-1.2.0
make clean
./configure
make

 

by: sami8519Posted on 2009-08-27 at 07:46:14ID: 25198803

now I did the steps again and there are no errors message at all. but when I want to install divers using command make in the driver dir, it says please install kernel source. Should I run gain the command apt-get install linux-source-2.6.26???

 

by: liddlerPosted on 2009-08-27 at 07:57:09ID: 25198944

so the error is from this command in the Makefile
if [ -d /lib/modules/`uname -r`/build/include ]

What is the output of
uname -r
and what is in the directory /lib/modules

 

by: liddlerPosted on 2009-08-27 at 08:01:45ID: 25199003

you probably need the linux-headers, something like this, depending on your kernel version:

apt-get install linux-headers-2.6.26 linux-headers-generic  

 

by: sami8519Posted on 2009-08-27 at 08:03:27ID: 25199030

I will try this. thanks

 

by: sami8519Posted on 2009-08-27 at 08:05:23ID: 25199054

this is the result:

debian:/tmp/reader# apt-get install linux-headers-2.6.26 linux-headers-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-2.6.26

 

by: liddlerPosted on 2009-08-27 at 08:08:53ID: 25199106

apt-get install linux-headers-`uname -r`

where the ` is the single back tick in left hand corner of keyboard
or you can do
uname -r
and append the output of that to
apt-get install linux-headers-

 

by: sami8519Posted on 2009-08-27 at 08:12:54ID: 25199156

I did this then run command make but there seem to be an error

debian:/tmp/reader# make
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f ftcard.o ftcard1.o
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f ftcard.o ftcard1.o
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/reader/Driver/ftcard modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.26-2-486'
  CC [M]  /tmp/reader/Driver/ftcard/ftcard1.o
/tmp/reader/Driver/ftcard/ftcard1.c:5:26: error: linux/config.h: No such file or directory
/tmp/reader/Driver/ftcard/ftcard1.c: In function BFTcard_configurationB:
/tmp/reader/Driver/ftcard/ftcard1.c:55: error: implicit declaration of function Busb_set_configurationB
make[3]: *** [/tmp/reader/Driver/ftcard/ftcard1.o] Error 1
make[2]: *** [_module_/tmp/reader/Driver/ftcard] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.26-2-486'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make: *** [make] Error 2
debian:/tmp/reader#

 

by: liddlerPosted on 2009-08-27 at 08:17:44ID: 25199225

found this about a different driver, but it might help:
.....aparently, there's a new structure on the linux headers, and that's why cisco vpn client cannot find the config.h file

try this: (you'll have to change the xxxxx to your version)
cd /usr/src/linux-haeders-xxxxx/include/linux
ln -s autoconf.h config.h

 

by: liddlerPosted on 2009-08-27 at 08:18:29ID: 25199235

that should be  linux-headers- not linux-haeders

 

by: sami8519Posted on 2009-08-27 at 08:23:52ID: 25199288

I did this

debian:/tmp/reader# cd /usr/src/linux-headers-2.6.26-2-common/include/linux
debian:/usr/src/linux-headers-2.6.26-2-common/include/linux# ln -s autoconf.h config.h
debian:/usr/src/linux-headers-2.6.26-2-common/include/linux#

Then? sorry but I am a noob. Thanks mate.

 

by: sami8519Posted on 2009-08-27 at 08:27:17ID: 25199330

error still present when I run make command.

 

by: liddlerPosted on 2009-08-27 at 08:27:43ID: 25199334

then go back to /tmp/reader and run
make clean
make
and if no errors
make install

Always do a make clean after a make goes wrong to clean up temp files, badly build objects etc

Just off home now, will check back in half hour or so

 

by: sami8519Posted on 2009-08-27 at 08:30:24ID: 25199372

OK mate. Still error when run make. Hoping to help me get pass it later. Thank you very much.

 

by: liddlerPosted on 2009-08-27 at 08:58:42ID: 25199721

what is the output of:
uname -r

do this:
cd /lib/modules/`uname -r`/build
ls -l *conf*

 

by: sami8519Posted on 2009-08-27 at 09:22:33ID: 25199981

Error comes:

debian:/tmp/reader# cd /lib/modules/`uname -r`/build
debian:/lib/modules/2.6.26-2-486/build# ls -l *conf*
ls: cannot access *conf*: No such file or directory
debian:/lib/modules/2.6.26-2-486/build#

 

by: liddlerPosted on 2009-08-27 at 09:28:12ID: 25200043

we did the ln in the wrong directory i think
cd /usr/src/linux-headers-2.6.26-2-486/include/linux
ln -s autoconf.h config.h
then go back and do the make clean
then make
make install

 

by: sami8519Posted on 2009-08-27 at 09:31:45ID: 25200089

Did this but there are two errors:

debian:/tmp/reader# make
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f *.o *.mod.c .ft* .bu* *.ko
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f *.o *.mod.c .ft* .bu* *.ko
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/reader/Driver/ftcard modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.26-2-486'
  CC [M]  /tmp/reader/Driver/ftcard/ftcard1.o
/tmp/reader/Driver/ftcard/ftcard1.c: In function BFTcard_configurationB:
/tmp/reader/Driver/ftcard/ftcard1.c:55: error: implicit declaration of function Busb_set_configurationB
make[3]: *** [/tmp/reader/Driver/ftcard/ftcard1.o] Error 1
make[2]: *** [_module_/tmp/reader/Driver/ftcard] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.26-2-486'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make: *** [make] Error 2
debian:/tmp/reader#

 

by: liddlerPosted on 2009-08-27 at 09:40:01ID: 25200176

this:
http://ubuntuforums.org/showthread.php?t=47910
suggests you need libusb-dev

apt-get install libusb-dev

 

by: sami8519Posted on 2009-08-27 at 09:43:26ID: 25200217

The error still there:

The following NEW packages will be installed:
  libusb-dev
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 38.2kB of archives.
After this operation, 291kB of additional disk space will be used.
Get:1 http://ftp.unina.it lenny/main libusb-dev 2:0.1.12-13 [38.2kB]
Fetched 38.2kB in 1s (37.0kB/s)
Selecting previously deselected package libusb-dev.
(Reading database ... 34533 files and directories currently installed.)
Unpacking libusb-dev (from .../libusb-dev_2%3a0.1.12-13_i386.deb) ...
Processing triggers for man-db ...
Setting up libusb-dev (2:0.1.12-13) ...
debian:/tmp/reader# make clean
cd Driver/ftcard;make clean
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f *.o *.mod.c .ft* .bu* *.ko
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
cd Driver/ct-api;make clean
make[1]: Entering directory `/tmp/reader/Driver/ct-api'
make[1]: Leaving directory `/tmp/reader/Driver/ct-api'
debian:/tmp/reader# make
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f *.o *.mod.c .ft* .bu* *.ko
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
rm -f *.o *.mod.c .ft* .bu* *.ko
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make[1]: Entering directory `/tmp/reader/Driver/ftcard'
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/reader/Driver/ftcard modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.26-2-486'
  CC [M]  /tmp/reader/Driver/ftcard/ftcard1.o
/tmp/reader/Driver/ftcard/ftcard1.c: In function BFTcard_configurationB:
/tmp/reader/Driver/ftcard/ftcard1.c:55: error: implicit declaration of function Busb_set_configurationB
make[3]: *** [/tmp/reader/Driver/ftcard/ftcard1.o] Error 1
make[2]: *** [_module_/tmp/reader/Driver/ftcard] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.26-2-486'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/reader/Driver/ftcard'
make: *** [make] Error 2
debian:/tmp/reader#

 

by: liddlerPosted on 2009-08-27 at 10:02:42ID: 25200423

it looks like you are missing some libusb file that declares the function usb_set_configuration

it may be another usb dev file that includes that function....
maybe try install
apt-get install libusb-0.1-4

I can't see much else...


Although it will take a long time you might trp
cd /
grep -r usb_set_configuration *
to see if you can find a file with the declaration in it, then we can maybe copy it to where it's needed

 

by: sami8519Posted on 2009-08-27 at 10:13:11ID: 25200524

libusb-0.1-4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.

Still no luck.

 

by: liddlerPosted on 2009-08-27 at 10:19:51ID: 25200600


maybe, try re-making the pcsc-lite-1.2.0 again now libusb-dev is installed....
but I don't think that's the issue, maybe the grep above to find a file that declares the function.


cd /
grep -r usb_set_configuration *

 

by: sami8519Posted on 2009-08-27 at 10:36:33ID: 25200763

OK thanks mate for your help. Highly appreciated. I will continue to try.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...