Unknown field 'ioctl' specified in initializer

I am tring to compile a demo device module, here is part of my demo.c:
struct file_operations DEMO_fops = {
.owner = THIS_MODULE,
.llseek = DEMO_llseek,
.read = DEMO_read,
.write = DEMO_write,
.ioctl = DEMO_ioctl,
//.unlocked_ioctl = DEMO_ioctl,
//.compat_ioctl = DEMO_ioctl,
.open = DEMO_open,
.release = DEMO_release,
And here is the error message:
error: unknown field ‘ioctl’ specified in initializer
After searching I found this post, so I tried to replace .ioctl with .unlocked_ioctl and .compat_ioctl. Then the compiling succeeded. However, when I try to run the test file:
int main()
int fd;
int i;
char data[256];
int len = sizeof(STRING);
int retval;
fd=open("/dev/devdemo",O_RDWR);
if(fd==-1)
perror("error open\n");
exit(-1);
printf("open /dev/devdemo successfully\n");
retval=ioctl(fd,COMMAND1,0);
if(retval==-1)
perror("ioctl error\n");
exit(-1);
printf("send command1 successfully\n");
retval=write(fd,STRING,len);
if(retval==-1)
perror("write error\n");
exit(-1);
retval=lseek(fd,0,0);
if(retval==-1)
perror("lseek error\n");
exit(-1);
retval=read(fd,data,len);
if(retval==-1)
perror("read error\n");
exit(-1);
printf("read successfully:%s\n",data);
close(fd);
Here is the message using .unlocked_ioctl:
ioctl error
: Bad address
And here the message using .compat_ioctl:
ioctl error
: Inappropriate ioctl for device
At last, I am using Arch Linux with kernel version linux-3.9.4-1-ARCH.
Last edited by Elderry (2013-06-04 13:58:07)

foutrelis wrote:Install Catalyst from either the AUR or the unofficial [catalyst] repo.
His catalyst is from aur and we tried install catalyst from "catalyst repo", but no new packages.
If we install dkms, dkms added fglrx, but cannot build it "Failed to build fglrx-8.801 with DKMS"

Similar Messages

  • Passing Unknown Field in URL

    Hi,
    How to check the table field which i have given in the Browser URL.
    I have a jsp page i want to call another page by passing database condition. Suppose if i give unknown field . i want to get user friendly messgae like "Filed Not Found "
    Please give me any solution to this problem.
    Here i give the Sample url
    jspfileName=AHf267d943bc224522fd28a0eca8e1ec25.jsp&ocx=t&condition=eo=100
    i tested with unknow field like "eo" instead of "eno"
    Now i want to check if the given condtion field is correct or not. and show the user friendly message.
    Please help me..
    Thanks,
    Merlin Rosina

    hi,
    so u have no problem in jsp side. Fine.
    now receive the value from query string in servlet program,
    on that program check the value with database and define th result based on your condition.
    for example, in your table
    no | Name
    105 | Java
    106 | JSP
    aa.jsp?no=107
    in your servlet,
    String no = request.getParameter("no");
    int number  = Integer.parseInt(no);
    PreparedStatement ps ;
    ResulSet rs;
    String query = "select * from tablename where no = ?";
    ps = java.SQl.Connection.DriverManager.getConnection(" "," "," ");
    ps.setInt(1,number);
    rs = ps.executeQuery(query);
    if(rs.first()) {
         System.out.println(rs.getString("Name");
    else {
        System.out.println("Field Not Found ");
    }Bala

  • Error in F4 unknown field in structure  service profile CRMD_SERWI

    Hello,
    I just added new Service Profiles and when Im creatin a new Service and adding a Reject service Profile the search field is empty and the message says:
    Error in F4 unknown field in structure  service profile CRMD_SERWI
    Someone know how to analyse WebClient UI search help.
    Kind Regards

    Hi David,
    (even it is very old post am giving an approach which may help others)
    If you check the value table, CRMD_SERWI you'll find that there is NO standard Search Help for field SRV_SERWI (Service Profile). So this is the main reason, SAP is not providing any F4 help in WEB UI screen as well , Still you are asked to provide F4 Help. So value table approach would not work.
    So try the  following approach(do changes according to your requirement)
    1. Create one custom Elementary search help (e.g. ZZCUSTF4) in SE11 with following details ---
                                a> Selection Method = CRMD_SERWI_T
                                b> Parameters as --- SRV_SERWI and DESCRIPTION
                                c> For SRV_SERWI , check the Importing Flag and LPos = 1
                                d> For DESCRIPTION, put LPos = 2
    2. Now redefine GET_V_propname method in the CNxx class. Please refer the following code (need to change according to your requirement) to trigger your custom F4 Help.
    DATA:
             ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
             lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
             lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
           ls_map-context_attr = 'struct.SRV_SERWI'.u201C Screen field's technical name
         ls_map-f4_attr      = SRV_SERWI u201C Field name present in your custom search help, created in step 1.
      APPEND ls_map TO: lt_inmap, lt_outmap.
    CREATE OBJECT rv_valuehelp_descriptor TYPE CL_BSP_WD_VALUEHELP_F4DESCR
        EXPORTING
          iv_help_id        = 'ZZCUSTF4'  u201CCUSTOM Search help name created in step 1
          iv_help_id_kind   = f_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping  = lt_inmap
          iv_output_mapping = lt_outmap.
    Hope this helps you.
    Thanks & Regards,
    Vishnu

  • Reason for Error "Unknown field type (28) encountered."

    Hello,
    I'm from Germany, so sorry for my English first.
    I got the error "Unknown field type (28) encountered." when I run
    a simple "SELECT * FROM system.functions" on my ADD-Database.
    The solution for this problem is found in the KBA 2145730.
    If I use the ADS DLLs v. 11.10.0.22 I got the error, but if I use the
    ADS DLLs v. 9.10.0.35 everything is fine.
    For solving other problems I think it would be better to use the newest
    version, but in this case I can't. At this time it is not a problem, because
    I can't find any real reason so that I must update for now, but nevertheless
    I'd like to know, why this error occurs. What is type 28? Or (what real
    would be great) can I make changes to my software, so that I can
    avoid this problem? I hope you can help me with this "riddle" and wish
    all of you a great day.
    Greetings from Germany,
    Gerit Freericks

    For backwards compatibility the server will send different field types (i.e. char vs varchar, ansi vs unicode, etc).
    The server determines this based on the ACE (Advantage Client Version).  By swapping in new DLLs you are telling the server that you are running a newer client and it can send the newer field types etc for the system tables.
    In addition to swapping the DLLs re-build the application with the new TDataSet (re-compile) and this should resolve your issue.
    For the field types look at ACE.pas  (or ACE.h) in the TDataSet (on the latest).  It looks like 28 is an NMEMO (Unicode Memo field)

  • How to get the name of a field without specifying it as a string (somehow v

    Is it possible to get the name of a field (or method) somehow via the class in which it is declared?
    The reason why I ask is, that quite often the name of a field is important, because the name is the anchor for further processing, like for example when using reflection (e.g. Class.getfield(“NameOfTheField”)).
    Assume you have class FooSimple with the field “String firstName”.
    Now you would do something like this:
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField("firstName");
    The problem is, that the string “firstName” is kind of “hard coded”. When the name of the field in class FooSimple changes (e.g. to “theFirstName”), the invocation will not work anymore when you forget to change the string too.
    I think it would be very helpful to have access to the name of the field directly via the class by doing something like this.
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField(FooSimple.firstName.fieldName);
    The Java Compiler would then resolve “FooSimple.firstName.fieldName” to the string “firstName”. When later the name of the field is changed, the IDE would change the name everywhere where it is used. So if the name of the field would be changed to “theFirstName” the IDE would also change the statement to
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField(FooSimple.theFirstName.fieldName);
    A technique like this would be in my opinion much more safety and more generic.
    Any ideas?
    Best Regards.

    Well, I think the discussion is going in a wrong direction because the original issue was not to discuss if it is worth coding some helper classes or a framework or that like. Let me bring it back to my original point.
    Basically you can reduce my original question to this:
    Currently it is possible to use the reflection API on a class level without specifying the name of the class with a string constant.
    My issue is, that I think it would be a nice extension for Java, if the same would be possible for field variables of a Java class. Currently the only way you can do this is by specifying the field variable with a string constant.
    Let me bring some motivations which brought me to this issue.
    Assume you have an entity bean which represents a DB table and you use Java Persistence (either JPA or something like Hibernate). Then you would have a class looking like this (very simple sample to make this reply shorter).
    @Entity
    @Table(name = "PERSON")
    public class Person implements Serializable {
         @Column(name = "NAME")
         private String name;
    // … constructor, getter, setter, etc. not listed here
    }The whole issue of the design of JPA is, that such entity beans represent the mapping between the object model and the DB model, the mapping is expressed with annotations.
    Okay, now let’s assume you write a query in Query Language, e.g.
    String sql = “select p from Person p where name = :name”;“name” is the name of the field variable, “:name” is the parameter you later set with “Query.setParameter” method.
    What is not so nice is the fact, that you use the name of the class and the name of the field variables “hardcoded” to construct the query. Now you could think that basically this information is part of your entity class. First you start with the name of the class (i.e. the table name) to decouple this “hardcoding”.
    You could write instead:
    String sql = “select p from “ + Person.class.getSimpleName() + “ p where name = :name”;This is really nice, because whenever you change the name of your Person class, this change happens automatically for the sql statement as well.
    I think the next thoughts are obvious, now, since you have decoupled the “hardcoded” part of the name of the class, you would like to do the same for the names of the field variables. But now you are stuck, there is no way to do this using a similar technique like for the name of the class. Either you stay with the query as it is now, or, to make it a little bit better, you code string constants for the field variables and use them. This issue brought me to the point that I think it would be nice to have the possibility to get the name of a field variable in a similar way as you can get it for the name of the class.
    Conceptually it is just to go one level deeper, i.e.
    first level is to get the name of a class
    second level is to get the name of the field variable of a class.
    Another sample would be, if you want to code something by using reflection. You have perfectly access to the reflection API starting at the class level like Person.class.allTheNiceReflectionMethods. There is no need to specify the class first with a string constant first, you directly start with the class, you can even be generic and just work on the Class.class level and still have access to all these nice methods to get out the information you need.
    But if you need to start with a very specific field variable (like in the sample above), you must go by using a string constant like Person.class.getDeclaredField(“name”).
    So basically I think that there exist already millions of lines of Java code where a field variable is specified for further processing, especially in combination with the reflection functionality and everywhere the field variables are specified by these string constants in double quotes. I would assume, that everyone has the same problem, once changing the name of the field variable means to take care that also the content of the string which specifies the name of the field variable is changed.
    I am wondering why one of the replies commented, why the name of a field variable is changed, it sounds to me that this is something which basically never happens. I don’t know, I think that this happens actually quite often and thanks to all these nice IDEs and their “rename” feature this is usually no problem. From time to time names of classes change, name of field change, yes, they are often even completely rewritten, new field variables come in some are deleted, whatever it is. The way I currently can access the name of a class makes the code safer, because when I consequently go with Class.class.getSimpleName I always know, that when I rename the class all these statements are changed too If I delete such a class, I at least get a compile error.
    My very simple issues is, that I think it would be nice to have the same comfort not only on a class level but also on the level of field variables, nothing more, nothing less.
    To be honest, I have not browsed the forum yet if such an issue was already raised by other people (I will do this now), but somehow it is hard to imagine, that I am the first one.
    Best regards.

  • Error in SELECT : unknown field

    Hi,
    I'm getting strange compiler error by a simple SQL-Statement:
    select * from KNVP into table CST_KNVP
      where KUNNR <> KUNN2.
    Compiler complains that the Field KUNN2 is unknown.
    If I write
    where KUNN2 <> KUNNR.
    it complains about KUNNR.
    Strange, because both fields ARE in the KNVP table.
    Do You have some advice how to deal with it?
    Thanks in Advance
    Daniel

    Daniel,
      your query is wrong.Syntaxt problem
      select * from KNVP into table CST_KNVP
      where KUNNR <> KUNN2.
    How KUNN2 will availble to select statement?
    You have to pass this value.
    ex : you can use various ways
    1.
       loop at itab.
          select * from KNVP into table CST_KNVP
          where KUNNR <> itab-KUNN2.
      endloop.
    2.       select * from KNVP into table CST_KNVP
                 for all entries in itab
          where KUNNR <> itab-KUNN2.
    pls. reward if useful

  • Field symbols - specifying screen number for screen field.

    Hi Experts,
    I am working on a field exit for T-Code FBD1. I am using the following code
    field-symbols : <fs>.
    assign ('(SAPMF05A)BKPF-BUKRS') to <fs>.
    My field exit works on screen 300 where as company code is on screen 106. This works fine as there is only one occurance of company code in the program SAPMF05A. There is another data element RF05A-NEWKO which is on both the screens. I want the value in the field on screen 0106. How do I specify the screen number?
    Regards,
    Abdullah

    Hi!
    You cannot specify the screen number in this case. The field symbol will be assigned with the current value in the field (SAPMF05A)RF05A-NEWKO, i.e. the value at runtime when the exit is triggered. Make sure your exit is trigerred when you move from one screen to the next.
    Cheers!

  • OpenDocument fails because of unknown field name error

    Hi,
    I am trying to execute reports on the server. The reports contain records filters and formulas which are necessary and cannot be removed. When I attempt to open a report with the openDocument function the application throws an error, that the field name is not known.
    Both reports work fine when I execute them directly via the BO Central Management Console.
    I hope, anybody can help me?
    Thanks in advance.
    IReportAppFactory reportAppFactory = (IReportAppFactory) eSession
                             .getService("RASReportFactory");
                   reportClientDocument = reportAppFactory.openDocument(infoObject, 0,
                             java.util.Locale.getDefault());
    Cannot open report document. --- This field name is not known.
    Details: errorKind
    Error in File {...}.rpt:
    Error in formula  Record Selection:
    'my filter
    This field name is not known.
    Details: errorKind
    The exception originally thrown was com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: This field name is not known.
    Error in File {...}.rpt:
    Error in formula ' my formula '
    This field name is not known.
    Details: errorKind---- Error code:-2147217383 Error code name:formulaParseError
    at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)

    Hi,
    thanks for your answer. The reports were build on a simple SQL statement and use custom DB logon in CMC.
    I have created a similar report with no formulas or record filter. This new report works fine.
    I also use user input parameters. I thought the problems depends on that these parameters are not set into
    the implemented formulas and so the report cannot be parsed correctly.?
    Do you have any additional information about the similar issue (only matter of interest)? Do you know if there are new JAR files released within this new version?
    I hope the update will help. Thanks in advance.

  • Dynamic select of unknown fields

    Hello,
    I just started abap last monday and I'm still very new in it. I have a problem and i would appreciate if some one could detaily tell me how I could solve this problem. I have search in this forum but I haven't found any thing close to what I really want to do.
    Many contracts could be tied to a single projet and also many payments could be tied to a single contract.
    I am looking for a way so that I could dynamically determine the number of all contracts belonging to a particular project. There is a table called <u>prps</u> in sap. this table contains all projects data. There is also another table called <u>prhi</u> which contains all the contracts to a project. The field in prps is <u>prps-posid</u> for the the project number. The contract field in prhi is <u>prhi-posnr</u>
    I have put all the project numers in a <u>range r_projetnr</u> for <u>prhi-up</u>.
    Now my problem is how could I dynamically select all the contracts belonging to a project.
    I would appreciate any tips on how to do this.
    Thanks
    Claudi

    Thanks you all for your respond. I think I need to be more precise. I have all the project numbers packed in a range <u>r_projectnr.</u>
    With all the project numbers packed in a range I have selected all the contracts already like this:
    data: lt_prhi
    SELECT * FROM prhi INTO CORRESPONDING FIELDS OF TABLE lt_prhi
       WHERE up IN r_projectnr.
      IF sy-subrc <> 0.
        EXIT.
      ELSE.
    * out put the data dynamically to alv output.
    clear w_output.
    CLEAR w_output.
    * t_output is my output structure which already has some fields among them the projectnr.
    * I have already selected the projectnr and outputed it to
    * t_output.
        LOOP AT t_ouput INTO w_output.
          CLEAR w_prhi.
          w_tabix_1 = 0.
          SORT lt_prhi.
          LOOP AT t_prhi INTO w_prhi WHERE psphi = w_output-projectnr.
            w_tabix_1 = w_tabix_1 + 1.
            CASE w_tabix_1.
    WHEN 1.
    *   assign first contract to t_output
                w_outpu-contractnr1           = w_prhi-posnr.
    * some more constants data come here
    WHEN 2.
                w_output-contractnr2          = w_prhi-posnr.
    * some more constant data would come here.
    WHEN 3.
    WHEN 4
    ENDCASE
    This way may be good if only a certain number of contracts are expected to be outputed. But in a case like mine where I want to output all contracts belonging to a particular project, I need a dynamic way of doing this. I have a structure defined with 4 contracts but I would also need to know a way of dynamically expanding this structure depending on the number of contracts found in one project. I hope this explains my difficult situation as a freshman in abap.
    Thank you
    Claudi Tim
    Message was edited by:
            Tim claudi
    Message was edited by:
            Tim claudi
    Message was edited by:
            Tim claudi

  • Primary Classification field is showing Balance Initialization value

    Dear Team,
    I am facing problem in Element Screen, whenever i want to create an element i want to select Primary Classification but unfortunately when i click on the LOV of the Primary Classification to select the Earning or Deduction the LOV only show the "Balance Initialization Value"
    I created my own responsiblity, i select the "GLB HRMS Navigator" Menu.
    but when i switch responsibility to "Global HRMS Manager" or "Human Resource Vision Enterprise" then primary classification shows the complete seeded value list.
    kindly guide me.
    Thanks & Take Care.
    Kamran J. Chaudhry

    Dear Team,
    The issue is resolved. Actually the problem in the "Legislation"... i created BG and select "Pakistan" in the Legislation for this many features become disabled and not able to access. i create new BG and only change the "Legislation"... and enter "United Kingdom" the problem resolved.
    Thanks
    Kamran J. Chaudhry

  • Search for a unknown field

    Hi friends,
    Can u plz give me the tips thru which i can easily search for a field and know  to  which tables does that field belong to?
    Suppose i want the posting date ..how to search for/
    Appreciate if you can provide me any other tips that  u feel useful to beginners.

    Hi,
                             First of all when you required any field then you must first find the tcode in which it is present. We are having different modules like SD,MM, FI and so on. So you should come to know that to which module it belongs and what are the tcodes are related to it.
                             Then go to that respective tcode and place the cursor on that particular field and hit F1. Then go to technical information icon where you can find the table name,
    program name, screen number and so on.
    Reward points if useful.
    Cheers,
    Swamy Kunche

  • How to read an excel file with unknown fields

    Hi,
    I am trying to import data from an Excel file through java.. [Netbeans as the IDE] I got this sample running code online [http://rgagnon.com/javadetails/java-0362.html] which was very helpful.. but i want to read from an excel file even if i dont know the fields in it.. Is this possible somehow?

    Google "POI HSSF" and or "Andy Khan jxl"
    Edit: If you insist on using the bridge, then take a look at the DatabaseMetaData class, or do a select * and look at the ResultSetMetaData class, although you are much better off not trying to use a Spreadsheet as a database, it isn't one, after all.

  • Accounts feed updates fields not specified in feed within OIA

    Hi,
    I am trying to determine if i update comments for accounts from outside (not through feed) and then not include comments in my accounts feed, how can i not overwrite this attribute. Currently when i import accounts feed even though the feed or schema has no mention of comments it overwrites this field.
    Any help is appreciated here.

    This is simply ridiculous, many of us have time sensitive content. I have never ever had troubles with updating ever. I work with over 6000 thousand podcasters and we have never seen the store take more than a hour to update.
    We automatically ping the store when we update our shows. What is the use in pinging the store if you are going to ignore the ping? The ping says hey there Apple there is fresh content up please re-index me.
    No other service has an issue updating? Are you saying that pinging Apple is now mute point? Or has Apple removed resources towards the pulling of feeds.
    I do not see mainstream media sites having to wait 2-3 days for there listings to update? There is obviously a mechanism at Apple to update quickly after all there has not been an issue now for 4 years.
    My Frustration is that my listeners are expressing frustration. I you guys don't update then they cannot download the show in a timely manner. They expect the content to be available to them by 6am EST Tuesday and Friday and over 80% of my downloads happen in the first 8 hours the content is available.
    Todd..

  • Compiling VMtools on Oracle Linux 6.2 gives errors

    I am trying to compile the vmtools on a Oracle Linux 6.2 VMware installation. I'm getting strange compilation errors on all the vmtools. Log pasted below.
    I have found thread VMware Tools and Oracle Linux Howto and followed the items in there with no help and no change.
    yum -y install kernel-headers is all up to date
    yum -y install kernel-devel is all up to date
    Here are the issues I see:
    1. Compiling the shared folder says linux/smp_lock.h does not exist, and then fails with SPIN_LOCK_UNLOCKED undeclared and unknow field `get_sb'
    2. The network device driver fails in vmxnet.c
    3. The vmblock module fails in dentry.c
    4. The communication service fails in vmci_drv.c
    5. The VM communication interface fails in vmci_drv.c
    6. The X configuration is skipped because there are "no drivers for X.ora version: 7.9.6" (see the bottom of the log below).
    start of pasted log
    ========================================================
    [root@vdev-oem bin]# ./vmware-config-tools.pl
    Initializing...
    Stopping VMware Tools services in the virtual machine:
    Guest operating system daemon: [  OK  ]
    Virtual Printing daemon: [  OK  ]
    Unmounting HGFS shares: [  OK  ]
    Guest filesystem driver: [  OK  ]
    The module vmmemctl has already been installed on this system by another
    installer or package and will not be modified by this installer. Use the flag
    --clobber-kernel-modules=vmmemctl to override.
    Before you can compile modules, you need to have the following installed...
    make
    gcc
    kernel headers of the running kernel
    Searching for GCC...
    Detected GCC binary at "/usr/bin/gcc".
    The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
    Would you like to change it? [no]
    Searching for a valid kernel header path...
    Detected the kernel headers of the running kernel at
    "/lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include".
    The path "/lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include" appears to
    be a valid path to the kernel headers of the running kernel.
    Would you like to change it? [no]
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmhgfs-only'
    make -C /lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/backdoor.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/backdoorGcc64.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/bdhandler.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpName.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpNameLinux.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpNameLite.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/dentry.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/dir.o
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/file.o
    /tmp/vmware-root/modules/vmhgfs-only/file.c:120: warning: initialization from incompatible pointer type
    CC [M] /tmp/vmware-root/modules/vmhgfs-only/filesystem.o
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c:48:28: error: linux/smp_lock.h: No such file or directory
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c:72: error: âSPIN_LOCK_UNLOCKEDâ undeclared here (not in a function)
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c:137: error: unknown field âget_sbâ specified in initializer
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c:137: warning: initialization from incompatible pointer type
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c: In function âHgfsGetSbâ:
    /tmp/vmware-root/modules/vmhgfs-only/filesystem.c:493: error: implicit declaration of function âget_sb_nodevâ
    make[2]: *** [tmp/vmware-root/modules/vmhgfs-only/filesystem.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    make: *** [vmhgfs.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmhgfs-only'
    The filesystem driver (vmhgfs module) is used only for the shared folder
    feature. The rest of the software provided by VMware Tools is designed to work
    independently of this feature.
    If you wish to have the shared folders feature, you can install the driver by
    running vmware-config-tools.pl again after making sure that gcc, binutils, make
    and the kernel sources for your running kernel are installed on your machine.
    These packages are available on your distribution's installation CD.
    [ Press Enter key to continue ]
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmxnet-only'
    make -C /lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    CC [M] /tmp/vmware-root/modules/vmxnet-only/vmxnet.o
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c: In function âvmxnet_probe_deviceâ:
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1007: error: âvmxnet_change_mtuâ undeclared (first use in this function)
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1007: error: (Each undeclared identifier is reported only once
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:1007: error: for each function it appears in.)
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c: In function âvmxnet_load_multicastâ:
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2915: error: âstruct net_deviceâ has no member named âmc_listâ
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2925: error: âstruct net_deviceâ has no member named âmc_countâ
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2926: error: dereferencing pointer to incomplete type
    /tmp/vmware-root/modules/vmxnet-only/vmxnet.c:2927: error: dereferencing pointer to incomplete type
    make[2]: *** [tmp/vmware-root/modules/vmxnet-only/vmxnet.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmxnet-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    make: *** [vmxnet.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'
    The fast network device driver (vmxnet module) is used only for our fast
    networking interface. The rest of the software provided by VMware Tools is
    designed to work independently of this feature.
    If you wish to have the fast network driver enabled, you can install the driver
    by running vmware-config-tools.pl again after making sure that gcc, binutils,
    make and the kernel sources for your running kernel are installed on your
    machine. These packages are available on your distribution's installation CD.
    [ Press Enter key to continue ]
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmblock-only'
    make -C /lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    CC [M] /tmp/vmware-root/modules/vmblock-only/linux/block.o
    CC [M] /tmp/vmware-root/modules/vmblock-only/linux/control.o
    CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
    CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
    /tmp/vmware-root/modules/vmblock-only/linux/dentry.c: In function âDentryOpRevalidateâ:
    /tmp/vmware-root/modules/vmblock-only/linux/dentry.c:107: error: implicit declaration of function âpath_lookupâ
    make[2]: *** [tmp/vmware-root/modules/vmblock-only/linux/dentry.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmblock-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    make: *** [vmblock.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
    The vmblock module enables dragging or copying files from within a host and
    dropping or pasting them onto your guest (host to guest drag and drop and file
    copy/paste). The rest of the software provided by VMware Tools is designed to
    work independently of this feature (including guest to host drag and drop and
    file copy/paste).
    If you would like the host to guest drag and drop and file copy/paste features,
    you can install the driver by running vmware-config-tools.pl again after making
    sure that gcc, binutils, make and the kernel sources for your running kernel
    are installed on your machine. These packages are available on your
    distribution's installation CD.
    [ Press Enter key to continue ]
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmci-only'
    make -C /lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciDatagram.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciEvent.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestDs.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestKernelIf.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciKernelIf.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciProcess.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciQueuePair.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciUtil.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmci_drv.o
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:91: error: unknown field âioctlâ specified in initializer
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:91: warning: initialization from incompatible pointer type
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c: In function âvmci_initâ:
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:151: error: implicit declaration of function âinit_MUTEXâ
    make[2]: *** [tmp/vmware-root/modules/vmci-only/vmci_drv.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmci-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    make: *** [vmci.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
    The communication service is used in addition to the standard communication
    between the guest and the host. The rest of the software provided by VMware
    Tools is designed to work independently of this feature.
    If you wish to have the VMCI feature, you can install the driver by running
    vmware-config-tools.pl again after making sure that gcc, binutils, make and the
    kernel sources for your running kernel are installed on your machine. These
    packages are available on your distribution's installation CD.
    [ Press Enter key to continue ]
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmci-only'
    make -C /lib/modules/2.6.39-200.24.1.el6uek.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciDatagram.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciEvent.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestDs.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestKernelIf.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciKernelIf.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciProcess.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciQueuePair.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmciUtil.o
    CC [M] /tmp/vmware-root/modules/vmci-only/vmci_drv.o
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:91: error: unknown field âioctlâ specified in initializer
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:91: warning: initialization from incompatible pointer type
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c: In function âvmci_initâ:
    /tmp/vmware-root/modules/vmci-only/vmci_drv.c:151: error: implicit declaration of function âinit_MUTEXâ
    make[2]: *** [tmp/vmware-root/modules/vmci-only/vmci_drv.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmci-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.39-200.24.1.el6uek.x86_64'
    make: *** [vmci.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
    The VM communication interface socket family is used in conjunction with the VM
    communication interface to provide a new communication path among guests and
    host. The rest of this software provided by VMware Tools is designed to work
    independently of this feature. If you wish to have the VSOCK feature you can
    install the driver by running vmware-config-tools.pl again after making sure
    that gcc, binutils, make and the kernel sources for your running kernel are
    installed on your machine. These packages are available on your distribution's
    installation CD.
    [ Press the Enter key to continue.]
    The module vmxnet3 has already been installed on this system by another
    installer or package and will not be modified by this installer. Use the flag
    --clobber-kernel-modules=vmxnet3 to override.
    The module pvscsi has already been installed on this system by another
    installer or package and will not be modified by this installer. Use the flag
    --clobber-kernel-modules=pvscsi to override.
    Detected X.org version 7.9.6.
    No drivers for X.org version: 7.9.6.
    Skipping X configuration because X drivers are not included.
    Creating a new initrd boot image for the kernel.
    Starting VMware Tools services in the virtual machine:
    Switching to guest configuration: [  OK  ]
    Guest operating system daemon: [  OK  ]
    Virtual Printing daemon: [  OK  ]
    The configuration of VMware Tools 8.3.2 build-257589 for Linux for this running
    kernel completed successfully.
    You must restart your X session before any mouse or graphics changes take
    effect.
    You can now run VMware Tools by invoking the following command:
    "/usr/bin/vmware-toolbox" during an X server session.
    To enable advanced X features (e.g., guest resolution fit, drag and drop, and
    file and text copy/paste), you will need to do one (or more) of the following:
    1. Manually start /usr/bin/vmware-user
    2. Log out and log back into your desktop session; and,
    3. Restart your X session.
    Enjoy,
    --the VMware team                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Actually, I did exactly that:
    yum -y install gcc
    yum -y install kernel-uek-devel-`uname -r`
    yum -y install kernel-uek-headers-`uname -r`
    The headers with the uname gave an error that the headers do not exist. The others ran fine.
    I did:
    yum -y install kernel-uek-headers
    and that worked.
    However, NONE of this changed the errors - they were exactly the same before and after. The problem is still not resolved.
    However, I did try a different approach. I found the VMware Operating System Packages (OSPs) through the following link: http://www.vmware.com/download/packages.html. I installed that, and it seemed to work fine.
    The problem that we had, which was the original reason why I wanted to have the VMware tools, was that the disk was sized too small and I thought with the tools we could resize the disk. It didn't work, we could not edit the size in the VMware console. So we ended up blowing away that VM and are in the process of recreating it at a larger size. I'll take a snapshot of the state before the OSP install so I can test the compile version in case someone posts something useful here.

  • Ndiswrapper - make error - possible missing package?

    I'm trying to install my Netgear wna3100 wireless adapter. Unfortunately, downloading the latest stable source and compiling it returns the following. I need to insert a section of code that is supposed to detect my adapter but since it wont compile without edits on my part, maybe I'm missing something...
    Thoughts?
    make
    make -C driver
    make[1]: Entering directory `/home/jswaro/ndiswrapper-1.56/driver'
    make -C /usr/src/linux-2.6.37-ARCH M=/home/jswaro/ndiswrapper-1.56/driver
    make[2]: Entering directory `/usr/src/linux-2.6.37-ARCH'
      LD      /home/jswaro/ndiswrapper-1.56/driver/built-in.o
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/crt_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/hal_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/ndis_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/ntoskernel_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/ntoskernel_io_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/rtl_exports.h
      MKEXPORT /home/jswaro/ndiswrapper-1.56/driver/usb_exports.h
      MKSTUBS /home/jswaro/ndiswrapper-1.56/driver/win2lin_stubs.h
      CC [M]  /home/jswaro/ndiswrapper-1.56/driver/crt.o
      CC [M]  /home/jswaro/ndiswrapper-1.56/driver/hal.o
      CC [M]  /home/jswaro/ndiswrapper-1.56/driver/iw_ndis.o
      CC [M]  /home/jswaro/ndiswrapper-1.56/driver/loader.o
    /home/jswaro/ndiswrapper-1.56/driver/loader.c:834:2: error: unknown field ‘ioctl’ specified in initializer
    /home/jswaro/ndiswrapper-1.56/driver/loader.c:834:2: warning: initialization from incompatible pointer type
    make[3]: *** [/home/jswaro/ndiswrapper-1.56/driver/loader.o] Error 1
    make[2]: *** [_module_/home/jswaro/ndiswrapper-1.56/driver] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.37-ARCH'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/home/jswaro/ndiswrapper-1.56/driver'
    make: *** [all] Error 2

    jswaro wrote:There is nothing wrong with the current package except that it does not contain the "fix" for the WNA3100 adapter. According to what I've read so far, there is a rather simple function that needs to be placed in ntoskernel_io.c to fix this. I can't say the function works because this wont compile using the version provided from source forge. I'm still working on it
    my point was to use abs to get the current package version, which contains the fix for newer kernel and apply your patch to it.
    https://wiki.archlinux.org/index.php/ABS

Maybe you are looking for