Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #1

Open
rodneyrod opened this issue Mar 8, 2017 · 1 comment
Open

Compilation error #1

rodneyrod opened this issue Mar 8, 2017 · 1 comment

Comments

@rodneyrod
Copy link

rodneyrod commented Mar 8, 2017

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
Copy link

ghost commented May 20, 2017

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant