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
On Thu, Aug 21, 2003 at 10:04:02AM +0200, Mario Ohnewald wrote:> 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'your getopt does not support optreset, check the getopt from openssh's compat dir.