Pobednik92
January 30th, 2013, 09:53 AM
Evening my friends. I have a question for you, because I know that you can help me. I got an error when I want to compile (or something like that) with this command:
gcc-4.2 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
In terminal:
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0# gcc-4.6 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
/usr/bin/gcc-4.6: not found (hardened-cc could not find target)
If I just type "gcc" and not "gcc-4.6", gives me another error:
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0# gcc -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
ca.c:107:1: error: expected ‘,’ or ‘;’ before ‘{’ token
ca.c: In function ‘cactl’:
ca.c:276:9: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat]
ca.c:289:13: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0#
Someone posted that he successed to compile this with gcc-4.6, so I installed hardening-wrapper with command:
apt-get install hardening-wrapper
I don't know what could be the problem. I am using fresh installed Ubuntu 12.10
So if anyone can help me, I would appreciate it :)
gcc-4.2 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
In terminal:
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0# gcc-4.6 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
/usr/bin/gcc-4.6: not found (hardened-cc could not find target)
If I just type "gcc" and not "gcc-4.6", gives me another error:
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0# gcc -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl
ca.c:107:1: error: expected ‘,’ or ‘;’ before ‘{’ token
ca.c: In function ‘cactl’:
ca.c:276:9: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat]
ca.c:289:13: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
root@Collateral:~/Desktop/kaffeine-sc-plugin-0.4.0#
Someone posted that he successed to compile this with gcc-4.6, so I installed hardening-wrapper with command:
apt-get install hardening-wrapper
I don't know what could be the problem. I am using fresh installed Ubuntu 12.10
So if anyone can help me, I would appreciate it :)