Closed victorhooi closed 12 years ago
Hi,
Hmm, I found that manually adding "-lresolv" to the end of the GCC line in the Makefile works - however, "-lresolv" is already party of the LIB line, so I'm not sure why it didn't work there?
CC=gcc
RM=rm
APP=sods
DEF=-DHAVE_ERR -DHAVE_SEND
LIB=-lresolv
all:
$(CC) $(DEF) $(LIB) -g -Wall -o sods sods.c sods_handler.c sods_dns.c sods_io.c sods_q.c sods_sock.c sods_priv.c sods_err.c base32.c base64.c -lresolv
clean:
-@$(RM) sods *.o
Cheers, Victor
Hey Victor! Try adding the path to libresolv.a. This works for me:
gcc -DHAVE_ERR -DHAVE_SEND -g -Wall -o sods sods.c sods_handler.c sods_dns.c sods_io.c sods_q.c sods_sock.c sods_priv.c sods_err.c base32.c base64.c /usr/lib/x86_64-linux-gnu/libresolv.a
Just saw your update, thanks! That is even better! I will update the configure script.
Hi,
I'm attempting to compile sods on Ubuntu 11.10 (AMD64), and I am getting the following error:
Any ideas?
Cheers, Victor