Smartcard: sectok compiler error

Mario Ohnewald mario.Ohnewald at gmx.de
Thu Aug 21 18:04:02 EST 2003


Hello list!
I am trying to get my chipdrive micro smartcard working with openssh.
I read the README.smartcard, but i got stuck with sectok.
It might be a little offtopic but i am totally stuck!

After it compiled libsectok without the -Bforcearchive flag i tried to
compile sectok:

[root at box sectok-20020524]# make
gcc -o sectok main.o cmds.o cyberflex.o ../libsectok/libsectok.a -lcrypto
cmds.o: In function `reset':
/home/mohnewald/sectok-20020524/cmds.c:158: undefined reference to
`optreset'
cmds.o: In function `apdu':
/home/mohnewald/sectok-20020524/cmds.c:233: undefined reference to
`optreset'
cmds.o: In function `selfid':
/home/mohnewald/sectok-20020524/cmds.c:277: undefined reference to
`optreset'
cmds.o: In function `dread':
/home/mohnewald/sectok-20020524/cmds.c:387: undefined reference to
`optreset'
cmds.o: In function `vfypin':
/home/mohnewald/sectok-20020524/cmds.c:528: undefined reference to
`optreset'
cmds.o:/home/mohnewald/sectok-20020524/cmds.c:565: more undefined references
to `optreset' follow
collect2: ld returned 1 exit status
make: *** [sectok] Error 1


My Makefile:
-------------------------------------
# Standard installation:
#INCLUDES=
#LIBS=          -lsectok -lcrypto

# For building locally (libsectok not installed)
#INCLUDES=      -I../libsectok
LIBS=           ../libsectok/libsectok.a -lcrypto

# If crypto is included with openssl you might need this
#INCLUDES=      -I/usr/include/openssl

# You shouldn't have to change anything below this line

TARGETS=        sectok
SRC=            main.c cmds.c cyberflex.c
OBJ=            $(SRC:.c=.o)
CC=             gcc
CFLAGS=         -g -Wall -I../libsectok/
INSTALL=        install
PREFIX=         /usr/local
RELEASE=        sectok-`date "+%Y%m%d"`
...snip...

any ideas why i get the error?


Cheers, Mario

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post




More information about the openssh-unix-dev mailing list