You are not logged in.

#1 2012-03-05 08:40:13

waspy
Member
From: Sagittarius A*
Registered: 2010-12-07
Posts: 40

[SOLVED] Error compiling libnsfb-svn

I'm trying to compile 'libnsfb-svn' and i get this error message

COMPILE: src/surface/vnc.c
src/surface/vnc.c: In function ‘vnc_input’:
src/surface/vnc.c:489:9: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [build-Linux-Linux-release-lib-static/src_surface_vnc.o] Error 1

And apparently someone else had the exact problem on the AUR page, but never replied with a solution. I also rebuilt 'libvncserver' if that might have been an issue, but it didn't solve anything. I've googled on the issue and i'm stuck on what to do here.

Edit:

Okay i just realized since it's written in C (learning C atm), i can just edit the source by declaring 'ret' as a global integer instead of it being declared inside the function, and that would solve the problem. But problem is, how would i do this with yaourt? the source get's re-downloaded at the build restart

Edit II:

So I managed to edit the source file like i mentioned, and yaourt didn't seem to re-download the file at build restart, and so it successfully compiled and installed! Problem solved i guess. I could also just have removed 'ret' all together from the source since it's unused, but globally declaring it and giving up 4 bytes of RAM doesn't really seem like an issue to me, so meh..

Last edited by waspy (2012-03-05 16:49:26)

Offline

Board footer

Powered by FluxBB