dequis / purple-facebook

Facebook protocol plugin for libpurple (moved from jgeboski/purple-facebook)
GNU General Public License v2.0
954 stars 87 forks source link

/usr/bin/ld: cannot find -lpurple #376

Open AgentJeffy opened 6 years ago

AgentJeffy commented 6 years ago

Wow this has been difficult. I'm trying to get this set up on Puppy Linux 6.0.6

When I run the make command I get the following:

root# make install
Making install in pidgin/libpurple/protocols/facebook
make[1]: Entering directory `/root/purple-facebook-0.9.5-9ff9acf9fa14/pidgin/libpurple/protocols/facebook'
CCLD     libfacebook.la
/usr/bin/ld: cannot find -lpurple
collect2: error: ld returned 1 exit status
make[1]: *** [libfacebook.la] Error 1
make[1]: Leaving directory `/root/purple-facebook-0.9.5-9ff9acf9fa14/pidgin/libpurple/protocols/facebook'
make: *** [install-recursive] Error 1
root# 

Needless to say I've exhausted all other thought processes before coming here for some assistance.

EionRobb commented 6 years ago

Do you have libpurple installed?

AgentJeffy commented 6 years ago

Yes @EionRobb , I currently have these installed:

libpurple-bin_2.10.9 libpurple-dev_2.10.9 libpurple0_2.10.9

EionRobb commented 6 years ago

And is libpurple.so in location from pkg-config --libs purple-2 ?

AgentJeffy commented 6 years ago

I checked, and at /usr/lib/purple-2 there are a bunch of files pertaining to it, but no file named libpurple.so And in /usr/lib/pkgconfig there is no libpurple file. @EionRobb

EionRobb commented 6 years ago

No, what is the output from running pkg-config --libs purple-2 in a terminal

AgentJeffy commented 6 years ago
root# pkg-config --libs purple-2
Package purple-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `purple-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'purple-2' found
root#

@EionRobb But I know it's actually installed... That was the /usr/lib/purple-2 folder I was checking earlier. Perhaps I need to instruct it where to find the files?

AgentJeffy commented 6 years ago

Or is there no way to do that?

EionRobb commented 6 years ago

Or find which package installs purple-2.pc and install that?

AgentJeffy commented 6 years ago

@EionRobb Isn't that supposed to come with the purple dev pack?

So when I run the code pkg-config --libs purple I get a return message of -lpurple -lglib-2.0 so I'm really at a loss here. I have no idea what's going on.

AgentJeffy commented 6 years ago

Here is the complete code when make is run after a successful ./configure

root# make
Making all in pidgin/libpurple/protocols/facebook
make[1]: Entering directory `/root/purple-facebook-0.9.5-9ff9acf9fa14/pidgin/libpurple/protocols/facebook'
  CC       libfacebook_la-marshal.lo
  CC       libfacebook_la-api.lo
  CC       libfacebook_la-data.lo
  CC       libfacebook_la-facebook.lo
  CC       libfacebook_la-http.lo
  CC       libfacebook_la-json.lo
  CC       libfacebook_la-mqtt.lo
  CC       libfacebook_la-thrift.lo
  CC       libfacebook_la-util.lo
  CC       ../../libfacebook_la-http.lo
  CC       ../../libfacebook_la-purple-socket.lo
  CCLD     libfacebook.la
/usr/bin/ld: cannot find -lpurple
collect2: error: ld returned 1 exit status
make[1]: *** [libfacebook.la] Error 1
make[1]: Leaving directory `/root/purple-facebook-0.9.5-9ff9acf9fa14/pidgin/libpurple/protocols/facebook'
make: *** [all-recursive] Error 1