Page 20 of 22

cannot compile GTK-code in Precise

Posted: Thu 13 Dec 2012, 20:40
by rodin.s
I can't compile this code in Precise:

Code: Select all

#include <gtk/gtk.h>

int main(int argc, char *argv[]){
	GtkWidget *window1;
	gtk_init(&argc,&argv);
	window1=gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_window_set_title(GTK_WINDOW(window1),"Header");
	gtk_widget_show(window1);
	gtk_main();
	return 0;
}
using this command:

Code: Select all

gcc `pkg-config --cflags --libs gtk+-2.0` first.c -o first
It compiles in latest Racy and Slacko. Maybe it's not a bug and in Precise pkg-config command should be changed.

Posted: Thu 13 Dec 2012, 21:26
by pemasu

Code: Select all

gcc -o first first.c `pkg-config --libs --cflags gtk+-2.0` 

GTK-compiling

Posted: Thu 13 Dec 2012, 21:40
by rodin.s
Thank you. It works.

Posted: Thu 13 Dec 2012, 23:14
by dam973
thanks pemasu! :)

I ran pmodemdiag and i post the archive as attachement .

Posted: Thu 13 Dec 2012, 23:20
by pemasu
phy0 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
http://www.spinics.net/lists/linux-wire ... 85339.html

Posted: Fri 14 Dec 2012, 09:22
by dam973
I'm sorry i read the post from http://www.spinics.net/lists/linux-wire ... 85339.html but i didnt understand what i actually have to do !! :(
Could you please explain to me?
Thanks a lot !!!

Posted: Fri 14 Dec 2012, 09:28
by dam973
I know this question may seem stupid but i am new at compiling . :s Thank you for your patience :)

Posted: Fri 14 Dec 2012, 13:45
by pemasu
Yeah, I posted it more for reference. I will give it a go soon. It just looks like that your wpa problem has correspondence to that that link I posted.

I will post more when I have tried to patch that driver and tried to compile it.

Posted: Fri 14 Dec 2012, 14:08
by Sage
I will give it a go soon
Can that include the rt2800usb, as well, please.

Posted: Fri 14 Dec 2012, 14:17
by rcrsn51
rcrsn51 wrote:You could use "rmmod" to unload the bad module, then "modprobe" to load the good one.
Sage wrote:Ta! Will do
Sage wrote:Can that include the rt2800usb, as well, please.
It would be helpful if you first provided an update on your blacklisting situation.

Posted: Fri 14 Dec 2012, 14:43
by pemasu
Here is patched rt2800pci module.
It includes pinstall.sh script, which unloads previous rt2800pci, and loads the new one.

Cheers and please give feedback if this one fixes the connection problem.

Posted: Fri 14 Dec 2012, 15:58
by dam973
Thank you a lot!!! :) :) :)
I will try and send feedback!!

Posted: Sat 15 Dec 2012, 12:03
by Sage
It would be helpful if you first provided an update on your blacklisting situation.
Rapidly getting nowhere. Can blacklist from the menu/system/Boot...
Can then modprobe or LOAD it back in again, but,
a) it thinks it's WEP only, maybe it is, - I have WEP switch off in my router and don't want to switch it back on.
b) can't find your earlier reference to an rt28x0 alternative and there doesn't seem to be one available for loading
We are now well beyond my pay-grade in SW manipulation... (try cosmology, medicine, politics?)

Posted: Sat 15 Dec 2012, 13:03
by dam973
It worked!! Thank you so much!! Puppy linux community is awesome!!!! :) :) :D :D

Posted: Sat 15 Dec 2012, 20:40
by pemasu
dam973. Great. I am relieved that the patched rt28000pci worked. If it is not too much work, could you post again the pmodemdiag tarball so that I can confirm that the error message has dissapeared from kernel messages. If it has, I will include the patched driver to the next Upup Precise.

Posted: Sun 16 Dec 2012, 10:45
by pemasu
There has been request of rt2800usb fix also. I dont know what is the problem in Sage`s case. I checked the thread of rt2800usb patches and there seems to bunch of them. Depending of the problem.

It would need much better explanation of what is the problem....and in such dialect that it is understandable. My comprehension of Sage`s case lacks the description of the problem. Other thread followers probably know better...

Anyway pmodemdiag tarball would help a lot.

Posted: Sun 16 Dec 2012, 11:41
by Sage
There has been request of rt2800usb fix also. I dont know what is the problem in Sage`s case. I checked the thread of rt2800usb patches and there seems to bunch of them. Depending of the problem.
It would need much better explanation of what is the problem....and in such dialect that it is understandable. My comprehension of Sage`s case lacks the description of the problem. Other thread followers probably know better...
Anyway pmodemdiag tarball would help a lot.
Sorry, I have no idea what you are driving at or your intent. Since I am a sometime editor in my language, it would appear that there is a chasm in comprehension. This doesn't exist with my other Scandinavian friends. Goddag, hur jor ni?!

Oh yes, the rt2800usb doesn't work, as indicated. What else should one say?

Posted: Sun 16 Dec 2012, 11:45
by pemasu
Oh yes, the rt2800usb doesn't work, as indicated. What else should one say?
Anyway pmodemdiag tarball would help a lot.

Posted: Sun 16 Dec 2012, 12:44
by Sage
Anyway pmodemdiag tarball would help a lot.
That's the problem. I don't have a clue what that means. Generally I don't mess with SW, it's just not within my ambit, as I said above and many, many times before.

Posted: Sun 16 Dec 2012, 12:53
by Jasper
Sage,

So, it's your chasm in comprehension.