[sr-dev] modules/utils.so: undefined symbol: curl_easy_getinfo

Juha Heinanen jh at tutpro.com
Wed Dec 5 10:52:54 CET 2012


Daniel-Constantin Mierla writes:

> If you find one of these tools in the system with support for curl 
> library, then print the cflags and libs and see if the module is linked 
> against them. Then best is to update Makefile of the utils module to use 
> such tool -- it already does that for libxml2.

perhaps there is a bug here:

ifeq ($(CROSS_COMPILE),)
XML2CFG=$(shell which xml2-config)
endif

fneq ($(XML2CFG),)
	DEFS += $(shell $(XML2CFG) --cflags )
	LIBS += $(shell $(XML2CFG) --libs)
else
	DEFS+=-I$(LOCALBASE)/include/libxml2 \
      -I$(LOCALBASE)/include
	LIBS+=-L$(LOCALBASE)/lib -lcurl -lxml2
endif

in my debian which xml2-config

$ which xml2-config
/usr/bin/xml2-config

if i read the above correctly, it means that the else part is not
executed leaving the curl stuff out altogether.

-- juha



More information about the sr-dev mailing list