DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 3 of 3

Thread: error with “pmem.c” compiling linux source code for android

  1. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #1

    error with “pmem.c” compiling linux source code for android

    I am compiling linux source code for android emulator. When i execute make command(for building and cross-compiling the linux source) i get the following error "pmem.c" file.

    root@ubuntu:~# cd common
    root@ubuntu:~/common# make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-x86
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    CC drivers/misc/pmem.o
    drivers/misc/pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’
    /home/preetam/common/arch/x86/include/asm/pgtable.h:383: note: previous declaration of ‘phys_mem_access_prot’ was here
    drivers/misc/pmem.c: In function ‘flush_pmem_file’:
    drivers/misc/pmem.c:805: error: implicit declaration of function ‘dmac_flush_range’
    drivers/misc/pmem.c: In function ‘pmem_setup’:
    drivers/misc/pmem.c:1265: error: implicit declaration of function ‘ioremap_cached’
    drivers/misc/pmem.c:1266: warning: assignment makes pointer from integer without a cast
    make[2]: *** [drivers/misc/pmem.o] Error 1
    make[1]: *** [drivers/misc] Error 2
    make: *** [drivers] Error 2
    root@ubuntu:~/common#


    how to resolve this error. It seems that there may some problems in the "pmem.c" file and i'll have to choose different git repository. but that would be a very complex thing, as now i have already done most of the things till here. I might have to see correct version of this file. please someone tell what should i do?

    how to solve this errors.

    please help..thankyou!
  2. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #2
    You didn't setup your make correctly, you need to Specify what board to make for even if its just the emulator.

    Sent from my Droid using Tapatalk
  3. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #3
    Quote Originally Posted by jeffv2 View Post
    You didn't setup your make correctly, you need to Specify what board to make for even if its just the emulator.

    Sent from my Droid using Tapatalk
    actually pmem.c file has some errors, so i deleted the file and removed it from the makefile reference... and i got it.

    thank you very much.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Replies: 2
    Last Post: 03-19-2011, 01:35 AM
  2. error while compiling linux kernel source for android
    By preetb123 in forum Android Hacks and Help
    Replies: 0
    Last Post: 03-17-2011, 08:33 PM
  3. jdk-5 error while building android source code
    By preetb123 in forum Android Roms
    Replies: 0
    Last Post: 03-16-2011, 09:48 AM
  4. Replies: 7
    Last Post: 01-22-2011, 06:06 PM
  5. Android 2.0 Source Code Available
    By JohnDroid in forum Android News
    Replies: 5
    Last Post: 11-30-2010, 07:32 AM

Search tags for this page

config android pmem
,

conflicting types for phys mem access prot

,

drivers/misc/pmem.c:441: error: conflicting types for phys m

,

drivers/misc/pmem.c:441: error: conflicting types for ?phy

,
drivers/misc/pmem.c:804: error: implicit declaration of func
,
drivers/misc/pmem.c:805: error: implicit declaration of func
,

error: conflicting types for phys mem access prot

,
error: conflicting types for ?phys mem access prot?
,

error: implicit declaration of function ?dmac flush range?

,
pmem.c
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+