tanis
11-03-2005, 13:43
Hallo,
Folgender Fehler tritt auf beim linken:
make -f Makefile.ssl
gcc -lssl -L/usr/local/openssl/lib -o bin/ssl ssl.o
ssl.o(.text+0x10): In function `main':
/home/tanis/examples/ssl.c:8: undefined reference to `SSL_load_error_strings'
ssl.o(.text+0x15):/home/tanis/examples/ssl.c:9: undefined reference to `SSL_library_init'
ssl.o(.text+0x1f):/home/tanis/examples/ssl.c:10: undefined reference to `actions_to_seed_PRNG'
collect2: ld returned 1 exit status
make: *** [server] Fehler 1
Mein Makefile sieht so aus:
CC = gcc
LD = gcc
CCFLAGS= -Wall -g -I/usr/local/openssl/include
LDFLAGS= -L/usr/local/openssl/lib
LIBS= -lopenssl
OBJ = ssl.o
%.o: %.c
$(CC) $(CCFLAGS) -c $<
server: $(OBJ)
$(LD) $(LIBS) $(LDFLAGS) -o bin/ssl $(OBJ)
clean:
rm -f *.o bin/ssl
ssl.o: ssl.c
Die includes und die libs liegen am angegebenen Ort? Sollte doch eigentlich alles stimmen?!
Folgende Seiten hab ich schon bemüht:
- www.unixboard.de, www.mrunix.de jeweils die Suche
- http://www.openssl.org/docs/ssl/ssl.html
- http://www-106.ibm.com/developerworks/linux/library/l-openssl.html?ca=dgr-secw08OpenSSL
Hab da aber keine Antwort gefunden! :-/
Könnte mir da einer bitte weiter helfen! :confused:
Danke im Voraus!
Ciao tanis
Folgender Fehler tritt auf beim linken:
make -f Makefile.ssl
gcc -lssl -L/usr/local/openssl/lib -o bin/ssl ssl.o
ssl.o(.text+0x10): In function `main':
/home/tanis/examples/ssl.c:8: undefined reference to `SSL_load_error_strings'
ssl.o(.text+0x15):/home/tanis/examples/ssl.c:9: undefined reference to `SSL_library_init'
ssl.o(.text+0x1f):/home/tanis/examples/ssl.c:10: undefined reference to `actions_to_seed_PRNG'
collect2: ld returned 1 exit status
make: *** [server] Fehler 1
Mein Makefile sieht so aus:
CC = gcc
LD = gcc
CCFLAGS= -Wall -g -I/usr/local/openssl/include
LDFLAGS= -L/usr/local/openssl/lib
LIBS= -lopenssl
OBJ = ssl.o
%.o: %.c
$(CC) $(CCFLAGS) -c $<
server: $(OBJ)
$(LD) $(LIBS) $(LDFLAGS) -o bin/ssl $(OBJ)
clean:
rm -f *.o bin/ssl
ssl.o: ssl.c
Die includes und die libs liegen am angegebenen Ort? Sollte doch eigentlich alles stimmen?!
Folgende Seiten hab ich schon bemüht:
- www.unixboard.de, www.mrunix.de jeweils die Suche
- http://www.openssl.org/docs/ssl/ssl.html
- http://www-106.ibm.com/developerworks/linux/library/l-openssl.html?ca=dgr-secw08OpenSSL
Hab da aber keine Antwort gefunden! :-/
Könnte mir da einer bitte weiter helfen! :confused:
Danke im Voraus!
Ciao tanis