Hello! After remving the -Bforcearchive flag libsectok compiled fine. Now i tried to compile sectok and i get this error:
# make gcc -g -Wall -I/usr/include/openssl -c cyberflex.c gcc -o sectok main.o cmds.o cyberflex.o ../libsectok/libsectok.a -lcrypto cmds.o(.text+0x26f): In function `reset': /home/spiekey/sectok-20020524/cmds.c:158: undefined reference to `optreset' cmds.o(.text+0x450): In function `apdu': /home/spiekey/sectok-20020524/cmds.c:233: undefined reference to `optreset' cmds.o(.text+0x6bf): In function `selfid': /home/spiekey/sectok-20020524/cmds.c:277: undefined reference to `optreset' cmds.o(.text+0xb9d): In function `dread': /home/spiekey/sectok-20020524/cmds.c:387: undefined reference to `optreset' cmds.o(.text+0x10c1): In function `vfypin': /home/spiekey/sectok-20020524/cmds.c:528: undefined reference to `optreset' cmds.o(.text+0x1211):/home/spiekey/sectok-20020524/cmds.c:565: more undefined references to `optreset' follow collect2: ld returned 1 exit status make: *** [sectok] Fehler 1 I did it on RedHat9.0 and SuSE8.2. Any Idea what the error/reason could be, or how i could solve this? Cheers, Mario p.s. 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 INSTALL= install PREFIX= /usr/local RELEASE= sectok-`date "+%Y%m%d"` .... snip ..... _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
