Trouble compiling Atheros AR8151 driver.
Hello, I just bought a new netbook and decided to give Arch a try. Figured less time for install than Gentoo.
Anyway, I discovered that the Atheros AR8151 network card is not currently support, though it may be in certain 2.6.35 kernels, but i have no way to install that yet.
So I got the source from Atheros' web site for their driver, put it in a new directory, untarred it, and typed make install. It says back:
*** Linux kernel source not configured - missing autoconf.h. Stop.
How to fix ?
thn81 wrote:
I've ported the driver from Atheros to support kernels 2.6.34 and 2.6.35. The driver compiles on my installation but I don't know if it actually works. Modified driver source is here: http://filebin.ca/hbcrtz/ar81xx-1.0.1.9a.tar.gz. To compile it, you'll need to install the kernel26-headers package.
Good luck
thn81
thx to your Makefile i was able to compile the last driver from http://partner.atheros.com/Drivers.aspx for my new laptop. (running Fedora 13 / x64)
thx again
Last edited by The IceMan (2010-08-25 11:39:33)
Similar Messages
-
Cannot turn autonegotiation off in atheros ar8151 ethernet card
My isp requires me to turn autonegotiation off and use 10mbps full duplex as connection type, I do that for my laptop using ethtool
#ethtool -s eth0 autoneg off speed 10 duplex full
And i can successfully use the internet but, my desktop has a atheros ar8151 using the atl1c driver and if give the same command in ethtool it does not change autonegotiation to off. Although it says autonegotiation advertised is off, but autonegotiation status still remains on.
This cause serious packet loses and i can't use the internet.
Is this a kernel bug? or the alt1c driver? I am facing the same problem in ubuntu 12.04 using the 3.2 kernel
Last edited by Soumyadeep (2012-07-12 12:16:12)Edit: removed because I misunderstood the OP's question.
Last edited by MoonSwan (2012-07-12 17:01:38) -
I'm having trouble instaling a printer driver for my Canon MG5220. I downloaded the latest printer driver from the Canon website (10.67.1.0) and installed it on my Intel iMac. It said the installation was sucessful, but when I try to add a printer, no go. The printer does'nt show up. I'm fairly new to the Mac, after switching from windows. I'm running Snow Leopard 10.6.8.
Hold down the option key and select
▹ System Information...
from the menu bar. In the window that opens, select
Hardware ▹ USB
from the list on the left. On the right you should now see a list of all connected USB devices, as well as some built-in components. Is the device shown? -
Trouble Compiling my Email-client
Hi
I have written this email -client, but have some trouble compiling it !
Then I try to compile it the following errors:
MailClient.java:350: <identifier> expected
public syncronize void mails(String t){
^
MailClient.java:727: ';' expected
private class myWindowListener extends WindowAdapter{
^
MailClient.java:747: '}' expected
3 errors.
What do I need to change to correct these errors ?
I hope that there is somebody out there who can help me get my program to work.
Thanks in advance.
Sincrely Yours
Fred
import java.io.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
public class MailClient extends JFrame implements ActionListener{
private Sendman mySendman;
private Letterman myLetterman;
public Writer myWrite;
public Reader myReader;
public Composer myComposer;
private Setup mySetup;
public Addressbook myAdressbook;
private FixTask myFixTask;
private Filter myFilter;
private Info myInfo;
public Vector mailIndexVector = new Vector();
public Vector filterIndexVector = new Vector();
public Vector folderVector = new Vector();
private JPanel tArea, trae, icon, tField;
private JTextArea ta;
private JScrollPane view, treeScroll;
private JTree tree;
public JTextField tf;
private JSplitPane split;
private Dimension Size;
private MailClient myMailClient;
private String mailBody, subject, from;
public boolean fromOutbox = false;
public boolean viewSource = false;
public static void main (String[] args) {
MailClient myMailClient = new MailClient();
public MailClient() {
super("Mail-Client");
ImageIcon linux = new ImageIcon("linux.gif");
this.setIconImage(linux.getImage());
icon = new JPanel();
icon.setLayout(new FlowLayout(FlowLayout.LEFT));
ImageIcon neu = new ImageIcon("getmail.gif");
JButton neueMails = new JButton(neu);
newMails.setActionCommand("Getting new Mails");
newMails.addActionListener(this);
newMails.setBorderPainted(false);
newMails.setToolTipText("Getting new Mails");
ImageIcon cr = new ImageIcon("creator.gif");
JButton creator = new JButton(cr);
creator.setActionCommand("Creator open");
creator.addActionListener(this);
creator.setBorderPainted(false);
creator.setToolTipText("Creator open");
JButton rep = new JButton(new ImageIcon("reply.gif"));
rep.setActionCommand("rep");
rep.addActionListener(this);
rep.setBorderPainted(false);
rep.setToolTipText("Reply");
JButton fwd = new JButton(new ImageIcon("fwd.gif"));
fwd.setActionCommand("fwd");
fwd.addActionListener(this);
fwd.setBorderPainted(false);
fwd.setToolTipText("Forward");
JButton ein = new JButton(new ImageIcon("settings.gif"));
ein.setActionCommand("settings open");
ein.addActionListener(this);
ein.setBorderPainted(false);
ein.setToolTipText("Setting open");
JButton adr = new JButton(new ImageIcon("adressbook.gif"));
adr.setActionCommand("adr");
adr.addActionListener(this);
adr.setBorderPainted(false);
adr.setToolTipText("Addressbook");
JButton lo = new JButton(new ImageIcon("trash.gif"));
lo.setActionCommand("trash");
lo.addActionListener(this);
lo.setBorderPainted(false);
lo.setToolTipText("trash");
JButton in = new JButton(new ImageIcon("info.gif"));
in.setActionCommand("Information");
in.addActionListener(this);
in.setBorderPainted(false);
in.setToolTipText("Information");
icon.add(newMails);
icon.add(creator);
icon.add(rep);
icon.add(fwd);
icon.add(set);
icon.add(adr);
icon.add(lo);
icon.add(in);
Vector h1 = myLeser.lese("Summary.4on");
for(int i=0; i<h1.size(); i+=7){
String id = h1.elementAt(i).toString();
String fo = h1.elementAt(i+1).toString();
String su = h1.elementAt(i+2).toString();
String fr = h1.elementAt(i+3).toString();
String to = h1.elementAt(i+4).toString();
String da = h1.elementAt(i+5).toString();
String re = h1.elementAt(i+6).toString();
MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
mailIndexVector.addElement(index);
Vector h2 = myReader.read("Filter.4on");
for(int j=0; j<h2.size(); j+=3){
String fo = h2.elementAt(j).toString();
String from = h2.elementAt(j+1).toString();
String te = h2.elementAt(j+2).toString();
FilterIndex index = new FilterIndex(fo, from, te);
filterIndexVector.addElement(index);
folderVector = myReader.read("Folder.4on");
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox")){
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
baum.add("Center", treeScroll);
MainMenu menuBar = new MainMenu(this, this);
setJMenuBar(menuBar);
setVisible(true);
public void mailsFetcher() {
myLetterman = new Letterman(this, mySetup);
myLetterman.start();
public void treeNewSign(){
trae.remove(treeScroll);
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox"))
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
trae.add("Center", treeScroll);
trae.repaint();
setVisible(true);
public void menuNewSign(){
setJMenuBar(new MainMenu(this, this));
setVisible(true);
public String fromFilter (String t){
String myFrom = "";
int start, end;
int a = t.indexOf("From:");
if (a != -1){
start = a + 6;
ende = t.indexOf("\n",start);
myFrom = t.substring(start,end);
return myFrom;
public String toFilter (String t){
String myTo = "";
int start, e1, e2, end;
int a = t.indexOf("To:");
if (a != -1){
start = a + 4;
end = t.indexOf("\n",start);
myTo = t.substring(start,end);
e1 = end + 1;
if(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" "))
e1++;
e2 = t.indexOf("\n",e1);
myTo += " " + t.substring(e1,e2);
e1 = e2 + 1;
return myTo;
public String dateFilter (String t){
String myDate = "";
int start, end;
int a = t.indexOf("Date:");
if (a != -1){
start = a + 6;
end = t.indexOf("\n",start);
myDate = t.substring(start,end);
return myDate;
public String subjectFilter (String t){
String mySubject = "";
int start, end;
int a = t.indexOf("Subject:");
if (a != -1){
start = a + 9;
end = t.indexOf("\n",start);
mySubject = t.substring(start,end);
return mySubject;
public String mailFilter (String t){
String myMail = "";
int start = 0, end = t.length();
start = t.indexOf("\n\n") + 2;
if (start != 1){
int a = t.indexOf("\n\n" ,start);
if (a != -1){
if (t.indexOf(".",a+2) == a+2)
if (t.indexOf("\n",a+3) == a+3)
start = a;
myMail = t.substring(start,end);
return myMail;
public void mailsRemark(String file){
String mail = "", t = "";
Vector mailVector = myReader.read(file);
for (int i=0; i<mailVector.size(); i++)
t += (String)mailVector.elementAt(i) + "\n";
from = fromFilter(t);
subject = subjectFilter(t);
mailBody = mailFilter(t);
mail += "Subject: " + subject + "\n";
mail += "Date: " + dateFilter(t) + "\n";
mail += "From: " + from + "\n";
mail += "To: " + toFilter(t) + "\n";
mail += "\n" + mailBody;
if(viewSource == true)
ta.setText(t);
else
ta.setText(mail);
public syncronize void mails(String t){
Status myStatus = new Status(this,t);
myStatus.start();
public void delete(){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
if(node.isLeaf()){
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailIndexVector.removeElement(index);
int count = 0;
for(int j=0; j<mailIndexVector.size(); j++){
MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
String id = index1.mailId;
if(id.equals(index.mailId))
count++;
if(count == 0){
File home = new File(".");
String mailsRemark = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
treeNewSign();
menuNewSign();
else{
String t = (String)nodeInfo;
boolean toDelete = false;
for (int i=0; i<folderVector.size(); i++){
if(folderVector.elementAt(i).equals(t)){
folderVector.removeElement(t);
konnteLoeschen = true;
if(toDelete == false){
message("This folder can not be deleted!");
treeNewSign();
else
message("Folder is not Empty! Please delete Your mails.");
else
message("No Mails where selected to be deleted!");
public void forward(){
if(from != null){
creatorOeffnen();
myCreator.tfSb.setText("Fwd to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void reply(){
if(from != null){
creatorOeffnen();
myCreator.tfTo.setText(from);
myCreator.tfSb.setText("Reply to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void end(){
String h = "";
for (int i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
h += index.mailId + "\n";
h += index.folder + "\n";
h += index.subject + "\n";
h += index.from + "\n";
h += index.to + "\n";
h += index.date + "\n";
h += index.read + "\n";
myWriter.writer(h,"Summary.4on");
String w = "";
for (int l=0; l<filterIndexVector.size(); l++){
FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
w += index.folder + "\n";
w += index.from + "\n";
w += index.text + "\n";
myWriter.write(w,"Filter.4on");
String k = "";
for(int j=0; j<folderVector.size(); j++)
k += folderVector.elementAt(j).toString() + "\n";
myWriter.writer(k,"Folder.4on");
String t = "";
for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
AddressIndex aindex =
(AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
t += aindex.alias + "\n";
t += aindex.email + "\n";
myWriter.write(t,"Address.4on");
setVisible(false);
dispose();
System.exit(0);
public void filterOpen(){
boolean test = false;
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof String){
myFilter.folder = (String)nodeInfo;
for(int i=0; i<filterIndexVector.size(); i++){
FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
if(h.folder.equals(nodeInfo)){
myFilter.index = h;
test = true;
if(h.from.equals("")){
myFilter.box1 = false;
myFilter.fTf.setText("");
myFilter.fBox.setSelected(false);
myFilter.fTf.setEditable(false);
else{
myFilter.box1 = true;
myFilter.fTf.setText(h.from);
myFilter.fBox.setSelected(true);
myFilter.fTf.setEditable(true);
if(h.text.equals("")){
myFilter.box2 = false;
myFilter.tTf.setText("");
myFilter.tBox.setSelected(false);
myFilter.tTf.setEditable(false);
else{
myFilter.box2 = true;
myFilter.tTf.setText(h.text);
myFilter.tBox.setSelected(true);
myFilter.tTf.setEditable(true);
break;
myFilter.setVisible(true);
myFilter.fBox.requestFocus();
else
meldung("No selection");
public void sendOutbox(){
fromOutbox = true;
int i;
Block1:
for(i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
if(index.folder.equals("Outbox")){
Vector mailVector = myReader.read(index.mailId);
Block2:
for(int j=0; j<mailVector.size(); j++){
String m = (String)mailVector.elementAt(j);
if(m.indexOf("Subject:") != -1){
for(int k=0; k<=j+1; k++){
mailVector.removeElementAt(0);
break Block2;
Vector toVector = new Vector();
int tEnd = 1;
String line = "";
String t = index.to;
while (tEnd != -1){
tEnd = t.indexOf(", ");
if (tEnd == -1)
line = t;
else
line = t.substring(0,tEnd);
t = t.substring(tEnd + 1);
toVector.addElement(line);
File home = new File(".");
String mailsVerzeichnis = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
mySendman = new Sendman(mailVector, toVector, index.subject,
ailsAnzeig mySetup, this);
mySendman.start();
mailIndexVector.removeElement(index);
break Block1;
if(i == mailIndexVector.size())
fromOutbox = false;
treeNewSign();
public void partion(String cmd){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
index.folder = cmd.substring(13).toString();
treeNewSign();
else
meldung("No mails to partion!");
public void SetupOpen(){
if (mySetup.savePassword == false)
mySetup.pTf.setText("");
mySetup.setVisible(true);
mySetup.aTf.requestFocus();
public void addressbookOpen(){
myAddressBook.setVisible(true);
myAdressBook.tree.requestFocus();
public void creatorOpen(){
myCreator.setVisible(true);
myCreator.tfTo.requestFocus();
public void actionPerformed(ActionEvent event){
Object obj = event.getSource();
if (obj instanceof JMenuItem){
String cmd = event.getActionCommand();
if (cmd.equals("New fetched")){
mailsfetch();
else if (cmd.equals("Written new mails")) {
creatorOpen();
else if (cmd.equals("Reply")) {
reply();
else if (cmd.equals("Forward")) {
forward();
else if (cmd.equals("Outbox")) {
sendOutbox();
else if (cmd.equals("Delete")) {
delete();
else if ((cmd.length() >13) &&
(cmd.substring(0,13).equals("Sorting-"))){
sorting(cmd);
else if (cmd.equals("Using Addressbook")){
addressbookOpen();
else if (cmd.equals("Filter working")){
filterOpen();
else if (cmd.equals("New Order")){
myFixTask.tf.setText("");
myFixTask.setVisible(true);
myFixTask.tf.requestFocus();
else if (cmd.equals("delete")){
delete();
else if ((cmd.length() >7) &&
(cmd.substring(0,7).equals("nobody"))){
if(viewSource == false){
viewSource = true;
menuNewSign();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else{
viewSource = false;
menuNeuZeichnen();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else if (cmd.equals("Setup")){
SetupOpen();
else if (obj instanceof JButton){
String cmd = event.getActionCommand();
if (cmd.equals("aga")){
mailsHolen();
else if (cmd.equals("Creator Open")){
creatorOpem();
else if(cmd.equals("rep")){
reply();
else if(cmd.equals("fwd")){
forward();
else if(cmd.equals("Setup Open")){
SetupOpen();
else if(cmd.equals("adr")){
addressbookOpen();
else if(cmd.equals("delete")){
delete();
else if(cmd.equals("Information")){
myInfo.setVisible(true);
myInfo.b.requestFocus();
private class myWindowListener extends WindowAdapter{
public void windowClosing(WindowEvent event){
end();
private class myTreeSelectionListener implements TreeSelectionListener{
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsAnzeigen(index.mailId);
index.read = "Yes";Some suggestions:
1. as the others stated- you should really post specific questions rather than 1 huge ugly class!
2. use code tags
3. get a decent IDE- it would take about 1 minute to then see where the error is-
4. the rrors were just misspelled 'synchronized' and missing argument ','
5. Try not to make such huge classes!!- Try to follow certain coding "patterns"- like MVC- and not stick everything in 1 class- separate the functionality- it makes coding much easier!
here is fixed code (at least gets rid of those last errors):
import java.io.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
public class MailClient extends JFrame implements ActionListener{
private Sendman mySendman;
private Letterman myLetterman;
public Writer myWrite;
public Reader myReader;
public Composer myComposer;
private Setup mySetup;
public Addressbook myAdressbook;
private FixTask myFixTask;
private Filter myFilter;
private Info myInfo;
public Vector mailIndexVector = new Vector();
public Vector filterIndexVector = new Vector();
public Vector folderVector = new Vector();
private JPanel tArea, trae, icon, tField;
private JTextArea ta;
private JScrollPane view, treeScroll;
private JTree tree;
public JTextField tf;
private JSplitPane split;
private Dimension Size;
private MailClient myMailClient;
private String mailBody, subject, from;
public boolean fromOutbox = false;
public boolean viewSource = false;
public static void main (String[] args) {
MailClient myMailClient = new MailClient();
public MailClient() {
super("Mail-Client");
ImageIcon linux = new ImageIcon("linux.gif");
this.setIconImage(linux.getImage());
icon = new JPanel();
icon.setLayout(new FlowLayout(FlowLayout.LEFT));
ImageIcon neu = new ImageIcon("getmail.gif");
JButton neueMails = new JButton(neu);
newMails.setActionCommand("Getting new Mails");
newMails.addActionListener(this);
newMails.setBorderPainted(false);
newMails.setToolTipText("Getting new Mails");
ImageIcon cr = new ImageIcon("creator.gif");
JButton creator = new JButton(cr);
creator.setActionCommand("Creator open");
creator.addActionListener(this);
creator.setBorderPainted(false);
creator.setToolTipText("Creator open");
JButton rep = new JButton(new ImageIcon("reply.gif"));
rep.setActionCommand("rep");
rep.addActionListener(this);
rep.setBorderPainted(false);
rep.setToolTipText("Reply");
JButton fwd = new JButton(new ImageIcon("fwd.gif"));
fwd.setActionCommand("fwd");
fwd.addActionListener(this);
fwd.setBorderPainted(false);
fwd.setToolTipText("Forward");
JButton ein = new JButton(new ImageIcon("settings.gif"));
ein.setActionCommand("settings open");
ein.addActionListener(this);
ein.setBorderPainted(false);
ein.setToolTipText("Setting open");
JButton adr = new JButton(new ImageIcon("adressbook.gif"));
adr.setActionCommand("adr");
adr.addActionListener(this);
adr.setBorderPainted(false);
adr.setToolTipText("Addressbook");
JButton lo = new JButton(new ImageIcon("trash.gif"));
lo.setActionCommand("trash");
lo.addActionListener(this);
lo.setBorderPainted(false);
lo.setToolTipText("trash");
JButton in = new JButton(new ImageIcon("info.gif"));
in.setActionCommand("Information");
in.addActionListener(this);
in.setBorderPainted(false);
in.setToolTipText("Information");
icon.add(newMails);
icon.add(creator);
icon.add(rep);
icon.add(fwd);
icon.add(set);
icon.add(adr);
icon.add(lo);
icon.add(in);
Vector h1 = myLeser.lese("Summary.4on");
for(int i=0; i<h1.size(); i+=7){
String id = h1.elementAt(i).toString();
String fo = h1.elementAt(i+1).toString();
String su = h1.elementAt(i+2).toString();
String fr = h1.elementAt(i+3).toString();
String to = h1.elementAt(i+4).toString();
String da = h1.elementAt(i+5).toString();
String re = h1.elementAt(i+6).toString();
MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
mailIndexVector.addElement(index);
Vector h2 = myReader.read("Filter.4on");
for(int j=0; j<h2.size(); j+=3){
String fo = h2.elementAt(j).toString();
String from = h2.elementAt(j+1).toString();
String te = h2.elementAt(j+2).toString();
FilterIndex index = new FilterIndex(fo, from, te);
filterIndexVector.addElement(index);
folderVector = myReader.read("Folder.4on");
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox")){
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
baum.add("Center", treeScroll);
MainMenu menuBar = new MainMenu(this, this);
setJMenuBar(menuBar);
setVisible(true);
public void mailsFetcher() {
myLetterman = new Letterman(this, mySetup);
myLetterman.start();
public void treeNewSign(){
trae.remove(treeScroll);
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox"))
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
trae.add("Center", treeScroll);
trae.repaint();
setVisible(true);
public void menuNewSign(){
setJMenuBar(new MainMenu(this, this));
setVisible(true);
public String fromFilter (String t){
String myFrom = "";
int start, end;
int a = t.indexOf("From:");
if (a != -1){
start = a + 6;
ende = t.indexOf("\n",start);
myFrom = t.substring(start,end);
return myFrom;
public String toFilter (String t){
String myTo = "";
int start, e1, e2, end;
int a = t.indexOf("To:");
if (a != -1){
start = a + 4;
end = t.indexOf("\n",start);
myTo = t.substring(start,end);
e1 = end + 1;
if(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" "))
e1++;
e2 = t.indexOf("\n",e1);
myTo += " " + t.substring(e1,e2);
e1 = e2 + 1;
return myTo;
public String dateFilter (String t){
String myDate = "";
int start, end;
int a = t.indexOf("Date:");
if (a != -1){
start = a + 6;
end = t.indexOf("\n",start);
myDate = t.substring(start,end);
return myDate;
public String subjectFilter (String t){
String mySubject = "";
int start, end;
int a = t.indexOf("Subject:");
if (a != -1){
start = a + 9;
end = t.indexOf("\n",start);
mySubject = t.substring(start,end);
return mySubject;
public String mailFilter (String t){
String myMail = "";
int start = 0, end = t.length();
start = t.indexOf("\n\n") + 2;
if (start != 1){
int a = t.indexOf("\n\n" ,start);
if (a != -1){
if (t.indexOf(".",a+2) == a+2)
if (t.indexOf("\n",a+3) == a+3)
start = a;
myMail = t.substring(start,end);
return myMail;
public void mailsRemark(String file){
String mail = "", t = "";
Vector mailVector = myReader.read(file);
for (int i=0; i<mailVector.size(); i++)
t += (String)mailVector.elementAt(i) + "\n";
from = fromFilter(t);
subject = subjectFilter(t);
mailBody = mailFilter(t);
mail += "Subject: " + subject + "\n";
mail += "Date: " + dateFilter(t) + "\n";
mail += "From: " + from + "\n";
mail += "To: " + toFilter(t) + "\n";
mail += "\n" + mailBody;
if(viewSource == true)
ta.setText(t);
else
ta.setText(mail);
public synchronized void mails(String t){
Status myStatus = new Status(this,t);
myStatus.start();
public void delete(){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
if(node.isLeaf()){
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailIndexVector.removeElement(index);
int count = 0;
for(int j=0; j<mailIndexVector.size(); j++){
MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
String id = index1.mailId;
if(id.equals(index.mailId))
count++;
if(count == 0){
File home = new File(".");
String mailsRemark = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
treeNewSign();
menuNewSign();
else{
String t = (String)nodeInfo;
boolean toDelete = false;
for (int i=0; i<folderVector.size(); i++){
if(folderVector.elementAt(i).equals(t)){
folderVector.removeElement(t);
konnteLoeschen = true;
if(toDelete == false){
message("This folder can not be deleted!");
treeNewSign();
else
message("Folder is not Empty! Please delete Your mails.");
else
message("No Mails where selected to be deleted!");
public void forward(){
if(from != null){
creatorOeffnen();
myCreator.tfSb.setText("Fwd to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void reply(){
if(from != null){
creatorOeffnen();
myCreator.tfTo.setText(from);
myCreator.tfSb.setText("Reply to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void end(){
String h = "";
for (int i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
h += index.mailId + "\n";
h += index.folder + "\n";
h += index.subject + "\n";
h += index.from + "\n";
h += index.to + "\n";
h += index.date + "\n";
h += index.read + "\n";
myWriter.writer(h,"Summary.4on");
String w = "";
for (int l=0; l<filterIndexVector.size(); l++){
FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
w += index.folder + "\n";
w += index.from + "\n";
w += index.text + "\n";
myWriter.write(w,"Filter.4on");
String k = "";
for(int j=0; j<folderVector.size(); j++)
k += folderVector.elementAt(j).toString() + "\n";
myWriter.writer(k,"Folder.4on");
String t = "";
for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
AddressIndex aindex =
(AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
t += aindex.alias + "\n";
t += aindex.email + "\n";
myWriter.write(t,"Address.4on");
setVisible(false);
dispose();
System.exit(0);
public void filterOpen(){
boolean test = false;
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof String){
myFilter.folder = (String)nodeInfo;
for(int i=0; i<filterIndexVector.size(); i++){
FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
if(h.folder.equals(nodeInfo)){
myFilter.index = h;
test = true;
if(h.from.equals("")){
myFilter.box1 = false;
myFilter.fTf.setText("");
myFilter.fBox.setSelected(false);
myFilter.fTf.setEditable(false);
else{
myFilter.box1 = true;
myFilter.fTf.setText(h.from);
myFilter.fBox.setSelected(true);
myFilter.fTf.setEditable(true);
if(h.text.equals("")){
myFilter.box2 = false;
myFilter.tTf.setText("");
myFilter.tBox.setSelected(false);
myFilter.tTf.setEditable(false);
else{
myFilter.box2 = true;
myFilter.tTf.setText(h.text);
myFilter.tBox.setSelected(true);
myFilter.tTf.setEditable(true);
break;
myFilter.setVisible(true);
myFilter.fBox.requestFocus();
else
meldung("No selection");
public void sendOutbox(){
fromOutbox = true;
int i;
Block1:
for(i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
if(index.folder.equals("Outbox")){
Vector mailVector = myReader.read(index.mailId);
Block2:
for(int j=0; j<mailVector.size(); j++){
String m = (String)mailVector.elementAt(j);
if(m.indexOf("Subject:") != -1){
for(int k=0; k<=j+1; k++){
mailVector.removeElementAt(0);
break Block2;
Vector toVector = new Vector();
int tEnd = 1;
String line = "";
String t = index.to;
while (tEnd != -1){
tEnd = t.indexOf(", ");
if (tEnd == -1)
line = t;
else
line = t.substring(0,tEnd);
t = t.substring(tEnd + 1);
toVector.addElement(line);
File home = new File(".");
String mailsVerzeichnis = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
mySendman = new Sendman(mailVector, toVector, index.subject,ailsAnzeig, mySetup, this);
mySendman.start();
mailIndexVector.removeElement(index);
break Block1;
if(i == mailIndexVector.size())
fromOutbox = false;
treeNewSign();
public void partion(String cmd){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
index.folder = cmd.substring(13).toString();
treeNewSign();
else
meldung("No mails to partion!");
public void SetupOpen(){
if (mySetup.savePassword == false)
mySetup.pTf.setText("");
mySetup.setVisible(true);
mySetup.aTf.requestFocus();
public void addressbookOpen(){
myAddressBook.setVisible(true);
myAdressBook.tree.requestFocus();
public void creatorOpen(){
myCreator.setVisible(true);
myCreator.tfTo.requestFocus();
public void actionPerformed(ActionEvent event){
Object obj = event.getSource();
if (obj instanceof JMenuItem){
String cmd = event.getActionCommand();
if (cmd.equals("New fetched")){
mailsfetch();
else if (cmd.equals("Written new mails")) {
creatorOpen();
else if (cmd.equals("Reply")) {
reply();
else if (cmd.equals("Forward")) {
forward();
else if (cmd.equals("Outbox")) {
sendOutbox();
else if (cmd.equals("Delete")) {
delete();
else if ((cmd.length() >13) &&
(cmd.substring(0,13).equals("Sorting-"))){
sorting(cmd);
else if (cmd.equals("Using Addressbook")){
addressbookOpen();
else if (cmd.equals("Filter working")){
filterOpen();
else if (cmd.equals("New Order")){
myFixTask.tf.setText("");
myFixTask.setVisible(true);
myFixTask.tf.requestFocus();
else if (cmd.equals("delete")){
delete();
else if ((cmd.length() >7) &&
(cmd.substring(0,7).equals("nobody"))){
if(viewSource == false){
viewSource = true;
menuNewSign();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else{
viewSource = false;
menuNeuZeichnen();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else if (cmd.equals("Setup")){
SetupOpen();
else if (obj instanceof JButton){
String cmd = event.getActionCommand();
if (cmd.equals("aga")){
mailsHolen();
else if (cmd.equals("Creator Open")){
creatorOpem();
else if(cmd.equals("rep")){
reply();
else if(cmd.equals("fwd")){
forward();
else if(cmd.equals("Setup Open")){
SetupOpen();
else if(cmd.equals("adr")){
addressbookOpen();
else if(cmd.equals("delete")){
delete();
else if(cmd.equals("Information")){
myInfo.setVisible(true);
myInfo.b.requestFocus();
private class myWindowListener extends WindowAdapter{
public void windowClosing(WindowEvent event){
end();
private class myTreeSelectionListener implements TreeSelectionListener{
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsAnzeigen(index.mailId);
index.read = "Yes";
} -
Trouble compiling for printed documentation
hello, i am having trouble compiling a new document layout i
have created, i have followed peter grainges instructions on his
website but it always fails to generate straight away. Im using
Robohelp x5 with word 2000, does anyone have any ideas?
thanks steveSteve
Was RH installed on the PC you are using with you logon or
that of the person whose job you have taken over? It sounds very
much like the latter and this is exactly what I would expect to
happen.
Try creating a new project with just a couple of topics and
printing from that. It will likely also fail. If it does that
pretty much confirms my theory. Uninstall and reinstall RH with
your logon and with admin rights attached and the problem will
likely go away. -
Trouble compiling a stored procedure
Hello, I have trouble compiling a stored procedure. I include part of the code because I think the key problem is illustrated in these lines:
date1 is declared as a DATE.
index_value2 NUMBER;
BEGIN
date1 := (select sysdate from dual);
index_value2 := (select index_value from tmsdat.a_index_values where price_date < (SELECT sysdate -180
FROM dual) and price_date > (SELECT sysdate -210
FROM dual));
[\code]
The problem seems to be that a more complex syntax is included in the allocation statement (:=), can that be the case? That is, no select etc??
How is this solved?
Any help much appreciated!
best regards
HaraldWell, actually WhiteHat´s magic did the trick, but two errors:
temp := (select (to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) as result
from dual);
[\code]
this line generates problems but I think the approach is the same maybe, that is:
select to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) into temp as result frmo dual
Further, some error about encountering end of line?
END CONVERT_MARKET_INDEX; -
Trouble compiling servlet example
Hi All, I am trying out an example for servlets and I ran into trouble compiling the the file called "FormProcessingServlet.java" in tutorial located here: http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals/magercises/FormPostingAndProcessing/index.html
The exact problem happens in this line:
isStructure = context.getResourceAsStream(paramStructureFile[0]);
The error says:
FormProcessingServlet.java:127: cannot resolve symbol
symbol : method getResourceAsStream (java.lang.String)
location: interface javax.servlet.ServletContext
isStructure = context.getResourceAsStream(paramStructureFile[0]);
anyone else ran into this problem? How do I fix this? Thanks."cannot resolve symbol" means that the JVM can't find a particular class.
Adjust your systems classpath variable to include all the jar files that you use, I also add "." to include files in the current directory I'm working from. -
I am a total newbie at programming and I am having trouble compiling. In the MS-DOS prompt, I located the folder where my .java file is located and typed the following:
javac SampleProgram.java
I received a "Bad command or file name" error. I am typing the names correctly. I am using Java 2 SDK, Standard Edition Version 1.3.1. Am I doing something wrong?
Thanks for any help.That should fix it. The problem is that DOS needs to know where to find the executable files like javac.exe
You can either set the path temporarily by typing
SET PATH=.;c:\jdk1.3.1\bin
at the command prompt each time you open a command window, or you can set it more permanently by adding it to your startup config. This will depend on your OS. On win 98 for example, there is an AUTOEXEC.BAT (usually with a SET PATH command already present). You could open this in notepad to add/change:
SET PATH=C:\WINDOWS
to
SET PATH=C:\WINDOWS;.;C:\JDK1.3.1\BIN
Reboot to make the changes take effect. Other OS's may have a special dialog to set this kind of command.
Hope this helps some. -
Troubles with graphic card driver at Equium A60
Hello everybody,
At first sorry for my bad English.
I have some trouble with the driver of my graphic card. After a new installation I just wanted to install the driver of the ATI Radeon 7000 (I have an Equium A60), after this I had to ascertain that my pc was out of order. The trouble was because the driver, I'm sure, because after a new installation, without the VGA-drive, my notebook is working, somehow.... I mean, I'm sure it could work better if the graphic would have an own driver.
I have been searching on the web and I did see that this was not a new problem; many people have the same trouble with it. Somehow, the pc's own driver is not compatible.
Could anyone help me to find a solution for my problem?
Thanks a lot,
EurytheusSorry my friend but your posting sounds really unbelievable. Original Toshiba driver is not compatible with the hardware. It can not be. It can not be the truth!
Your notebook model is almost 4 years old and I presume Toshiba have had enough time to react if display driver is somehow problematic. I recommend you to back up all your data and try to install your notebook using original recovery image. If there is no hardware problem notebook should work well again.
Sorry but I do not see any other solution there because the driver is definitely tested and it must work well. -
I am having trouble erasing the hard drive in my Macbook Air
I am having trouble erasing the hard drive in my Macbook Air. When I enter Utilities and attempt to erase the buttons are frozen both security and erase
You need to restart with the Option key held down, boot from the computer's original thumbdrive(if any) or the recovery partition(10.7+), and erase the drive from there.
(71694) -
How to switch my Atheros AR8151 network adapter to 1G speed
Hi,
I have an Alienware 17x3 with an Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.20). Since a reinstall of my laptop I can't get my network up to 1G anymore. The connection is always 100M.
I already tried several drivers but no luck.
Can someone help me pls?
Thanks in advance
Kind Regards
Filips HoubrechtsHi IEEE488,
Thanks for the link. In the meantime My PC is re-installed about a month ago and all my software is in place already. All of the mentioned drivers are already installed but maybe not in the right order.
What do you suggest in this case?
Thanks in advance
Kind Regards -
Lenovo G570 - Atheros Lan Driver for Linux required
Dear All
I have bought lenovo G570 laptop and i installed Enterprise Linux (Oracle Linux 5.8) , i need Atheros Ethernet Driver for Linux please help and support.
Regards
HabibDear All
I have bought lenovo G570 laptop and i installed Enterprise Linux (Oracle Linux 5.8) , i need Atheros Ethernet Driver for Linux please help and support.
Regards
Habib -
Trouble compiling Intel 2.9.1 driver
Hello. I have an HP G62 laptop with onboard intel graphics. After I installed Arch I had a problem. Enabling KMS would make my screen go black on boot (and stay black). Not enabling KMS would make X refuse to start since the new Intel drivers require KMS. Therefore, I decided to roll back to the 2.9.1 driver. I browsed the Package Database, found my driver at here:
http://repos.archlinux.org/wsvn/package … &peg=56808
I downloaded the PKGBUILD and LICENSE, and ran "makepkg -s". After installing dependencies, everything was rolling until makepkg encountered errors:
==> Making package: xf86-video-intel 2.9.1-1 (Wed Sep 15 23:12:40 EEST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading xf86-video-intel-2.9.1.tar.bz2...
--2010-09-15 23:12:41-- http://xorg.freedesktop.org//releases/i … .1.tar.bz2
Resolving xorg.freedesktop.org... 131.252.210.176
Connecting to xorg.freedesktop.org|131.252.210.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 789001 (771K) [application/x-bzip2]
Saving to: "xf86-video-intel-2.9.1.tar.bz2.part"
100%[==========================================>] 789,001 9.26K/s in 80s
2010-09-15 23:14:06 (9.59 KB/s) - "xf86-video-intel-2.9.1.tar.bz2.part" saved [789001/789001]
-> Found LICENSE
==> Validating source files with md5sums...
xf86-video-intel-2.9.1.tar.bz2 ... Passed
LICENSE ... Passed
==> Extracting Sources...
-> Extracting xf86-video-intel-2.9.1.tar.bz2 with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/bash
checking if dolt supports this host... yes, replacing libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GEN4ASM... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mprotect... yes
checking if XINERAMA is defined... yes
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XF86DRI is defined... yes
checking if DPMSExtension is defined... yes
checking for XORG... yes
checking for XEXT... yes
checking for ANSI C header files... (cached) yes
checking whether to include DRI support... checking for /usr/include/xorg/dri.h... yes
checking for /usr/include/xorg/sarea.h... yes
checking for /usr/include/xorg/dristruct.h... yes
checking whether to include DRI support... yes
checking for PCIACCESS... yes
checking for DRM... yes
checking for DRI... yes
checking for XVMCLIB... yes
checking whether to include XvMC support... yes
checking for /usr/share/sgml/X11/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... /usr/bin/ps2pdf
checking Whether to build documentation... no
checking Whether to build pdf documentation... yes
checking for sed... /bin/sed
configure: creating ./config.status
config.status: creating shave
config.status: creating shave-libtool
config.status: creating Makefile
config.status: creating uxa/Makefile
config.status: creating src/Makefile
config.status: creating src/xvmc/Makefile
config.status: creating src/xvmc/shader/Makefile
config.status: creating src/xvmc/shader/mc/Makefile
config.status: creating src/xvmc/shader/vld/Makefile
config.status: creating src/bios_reader/Makefile
config.status: creating src/ch7017/Makefile
config.status: creating src/ch7xxx/Makefile
config.status: creating src/ivch/Makefile
config.status: creating src/reg_dumper/Makefile
config.status: creating src/sil164/Makefile
config.status: creating src/tfp410/Makefile
config.status: creating man/Makefile
config.status: creating src/render_program/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in uxa
CC uxa.o
CC uxa-accel.o
CC uxa-glyphs.o
CC uxa-render.o
uxa-render.c: In function 'uxa_picture_from_pixman_image':
uxa-render.c:392:16: warning: comparison between 'pixman_format_code_t' and 'enum _PictFormatShort'
uxa-render.c: In function 'uxa_acquire_pattern':
uxa-render.c:456:5: error: too few arguments to function 'image_from_pict'
/usr/include/xorg/fb.h:2085:1: note: declared here
make[2]: *** [uxa-render.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Aborting...
Any idea what could be causing this problem and how to fix it?I installed the x86_64 package from that site, but X still doesn't load the intel module. Here's the relevant part from /var/log/Xorg.0.log:
[ 124.478] (II) LoadModule: "intel"
[ 124.478] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 124.478] (II) Module intel: vendor="X.Org Foundation"
[ 124.478] compiled for 1.7.1, module version = 2.9.1
[ 124.478] Module class: X.Org Video Driver
[ 124.479] ABI class: X.Org Video Driver, version 6.0
[ 124.479] (EE) module ABI major version (6) doesn't match the server's version ($
[ 124.479] (II) UnloadModule: "intel"
[ 124.479] (II) Unloading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 124.479] (EE) Failed to load module "intel" (module requirement mismatch, 0)
Last edited by michaelmoufarrij (2010-09-16 07:37:11) -
Trouble compiling X11r6.8.0
I'm having a problem compiling this version (trying to build a driver with a change.)
Here's the error I get:
fbmmx.c: In function 'negate':
fbmmx.c:107: error: incompatible type for argument 1 of '__builtin_ia32_pxor'
fbmmx.c:107: error: incompatible type for argument 2 of '__builtin_ia32_pxor'
fbmmx.c: In function 'expand_alpha':
fbmmx.c:166: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:166: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:166: error: incompatible types in assignment
fbmmx.c:168: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:168: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:168: error: incompatible types in assignment
I'm building with this gcc and Arch 0.7.1
L% gcc --version
gcc (GCC) 4.0.3 20051222 (prerelease)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any ideas?
Thanks.Well, it's worth a note that some proprietary display drivers don't like composite and render. The nVidia ones seem to be working pretty well, but ATI always gave trouble with these things. I'm not using composite currently but I did in the past with no problems on nVidia hardware.
Maybe the above should be stated as "issues with xorg7 tend to be caused by unstable drivers and bad configs." -
Hey everybody, I'm trying to install arch on my netbook, but I'm have trouble with the WiFi card. It's a Realtek RTL8188CE, but the driver in the AUR doesn't work (the link is down) and when I try to compile it from the download provided by Realtek, I get an error - my RX_FLAG_TSFT is undeclared. I am fairly familiar with the terminal, but I don't know what to do. Can someone help?
Check this link out and see which one fits your needs. There are a few rtl cards listed. https://wiki.archlinux.org/index.php/Wireless_Setup
Maybe you are looking for
-
Oracle optimizer and heterogeneous services (Transparent Gateway for ODBC)
Hi everyone! We have the following configuration: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. Oracle Database Gateway for ODBC 11.2.0.2.0 on the same machine as Oracle DB. Non-Oracle DB installed on a different hardw
-
Email / Microsoft exchange
question. I justed to have a blackberry that i loved. However, it began to have issues with my server at work and would not work properly with my email. Our office discontinued and went to iphones. Now, the question i have is, has blackberry made
-
N95 8GB v20.0.016 - mass memory failure #3
For the third time my N95 8GB has managed to corrupt its mass memory ("mass memory corrupted") - only this time, I am unable to reformat it at all! The problem behaviour is as follows: Used the phone last night to take several pictures, accessing the
-
Error in XPRAS_AIMMRG phase | Netweaver 7.4 BW Upgrade
Hello Experts, We are upgrading our BW system from SAP Netweaver 7.0 to 7.4. The phase XPRAS_AIMMRG in Execution section of the tool is running for a very long time. We have observed the below error Message in MSGOUT.LOG- SAPup> Starting subprocess w
-
Kismac stays in location services after removal
I tried kisMAC under Lion, but it is not ready for 10.7(1) yet. After removal of the app (using AppCleaner) it sticks in the System Preferences - Security & Privicy - Privacy - Location Services app list. Is there anybody who knows how to remove it f