LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2010, 06:49 PM   #1
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 542

Rep: Reputation: 50
SkyHook


Hi everyone, I was trying to use skyhook, but when I tried to compile the example I get this error:
Quote:
g++ -o skyhook wpsapitest.o libwpsapi.so
/usr/lib/gcc/i486-slackware-linux/4.4.3/../../../../i486-slackware-linux/bin/ld: warning: libiw.so.29, needed by libwpsapi.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i486-slackware-linux/4.4.3/../../../../i486-slackware-linux/bin/ld: warning: libcurl-gnutls.so.4, needed by libwpsapi.so, not found (try using -rpath or -rpath-link)
libwpsapi.so: undefined reference to `iw_get_priv_size'
libwpsapi.so: undefined reference to `iw_sockets_open'
libwpsapi.so: undefined reference to `iw_extract_event_stream'
libwpsapi.so: undefined reference to `iw_dbm2mwatt'
libwpsapi.so: undefined reference to `curl_slist_free_all@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_global_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_fdset@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_remove_handle@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_get_range_info'
libwpsapi.so: undefined reference to `curl_global_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_enum_devices'
libwpsapi.so: undefined reference to `curl_easy_setopt@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_perform@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_slist_append@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `iw_init_event_stream'
libwpsapi.so: undefined reference to `iw_get_priv_info'
libwpsapi.so: undefined reference to `curl_multi_add_handle@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_easy_init@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_easy_cleanup@CURL_GNUTLS_3'
libwpsapi.so: undefined reference to `curl_multi_info_read@CURL_GNUTLS_3'
collect2: ld returned 1 exit status
make: *** [skyhook] Error 1
This is my Makefile:
Quote:
TARGET := skyhook
SRCS := ${wildcard *.cpp}
OBJS := ${SRCS:.cpp=.o}

CCFLAGS =
LDFLAGS =
LIBS = libwpsapi.so
CC = g++
INCL =

.PHONY: all clean distclean
all:: ${TARGET}

${TARGET}: ${OBJS}
${CC} ${LDFLAGS} ${INCL} -o $@ $^ ${LIBS}

${OBJS}: %.o: %.cpp %.dep
${CC} ${CCFLAGS} ${INCL} -o $@ -c $<

clean::
-rm -f *~ *.o ${TARGET}

distclean:: clean
I see that slackware came with wireless tools, and curl, so what is the problem?
 
Old 04-01-2010, 10:27 PM   #2
javanaut
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 1
you could web search for the two libraries mentioned in the warning, because slackware usu has older (known stable) versions. Maybe the functionality you need is provided in a newer version. I used to go to rpmfind.net, then unzip the requied library from the rpm and install it in /usr/lib alongside the older version. No longer use slackware, sorry.
 
Old 04-02-2010, 12:36 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I think you have to set the LDFLAGS variable
Code:
LDFLAGS = -L/usr/lib
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration