meh / bitlbee-omegle

Omegle plugin for BitlBee.
GNU General Public License v2.0
9 stars 0 forks source link

Compilation error #1

Open rodneyrod opened 7 years ago

rodneyrod commented 7 years ago

Trying to build the plugin against the latest version of bitlbee and got this error:

CC omegle_la-omegle.lo In file included from omegle.c:51:0: omegle_http.c: In function ‘omegle_get’: omegle_http.c:71:77: error: expected ‘)’ before ‘ARCH’ g_append_printf(request, "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CP ^ omegle_http.c: In function ‘omegle_post’: omegle_http.c:91:77: error: expected ‘)’ before ‘ARCH’ g_append_printf(request, "User-Agent: BitlBee " BITLBEE_VERSION " " ARCH "/" CP ^ Makefile:438: recipe for target 'omegle_la-omegle.lo' failed

ghost commented 7 years ago

I managed to work around this issue by changing the lines 71 and 91 of omegle_http.c to the following:

g_string_append_printf(request, "User-Agent: BitlBee %s %s/%s\r\n", BITLBEE_VERSION, ARCH, CPU);

If make complains afterwards that ARCH and CPU haven't been defined, I believe it shouldn't be too much of an issue if you remove them altogether, so that the line above looks like this:

g_string_append_printf(request, "User-Agent: BitlBee %s\r\n", BITLBEE_VERSION);