Closed mokkurkalve closed 2 years ago
Can you try with the above commit and see if that resolves? Thanks! :)
Hm. The -ldl are still presented to the compiler, so it didn't help.
egcc -fPIC -O2 -g -pipe -shared -o libgooglechat.so libgooglechat.c googlechat.pb-c.c googlechat_json.c googlechat_pblite.c googlechat_connection.c googlechat_auth.c googlechat_events.c googlechat_conversation.c purple2compat/http.c purple2compat/purple-socket.c -I/usr/local/include -L/usr/local/lib -lprotobuf-c `pkg-config purple glib-2.0 json-glib-1.0 zlib --libs --cflags` -I/usr/include/protobuf-c -ldl -Ipurple2compat -g -ggdb
I compile this way as it seems most promising: CC=egcc gmake
Oh, I think I messed up the BSD check in the Makefile. What's the output of uname -s
?
~$ uname -s OpenBSD
Another commit, if you could test again :)
00:28:20 <@root> googlechat:
00:28:20 <@root> Version: 0.1
00:28:20 <@root> Description: Adds Google Chat support to libpurple.
00:28:20 <@root> Author: Eion Robb <eionrobb+googlechat@gmail.com>
00:28:20 <@root> URL: https://github.com/EionRobb/purple-googlechat/
Compiles, installs and is loaded in bitlbee, as can be seen above. My next step will be to figure out if I now can get my account working in bitlbee on OpenBSD. But that's outside the scope of this ticket, which was about compiling. Thanks :-)
Yay, thanks for testing :)
I can't compile this on OpenBSD 7.1 with clang or gcc (egcc). The error are: ld: error: unable to find library -ldl
What i can find on the internet are: "On OpenBSD, dlopen() and friends are in libc, and there is no libdl. "