pelya / android-shmem

System V shared memory emulation on Android, using ashmem. That includes shmget, shmat, shmdt and shmctl functions.
BSD 3-Clause "New" or "Revised" License
203 stars 43 forks source link

cannot compile it in nethunter chroot android 7.1.2 #10

Open papuruth opened 6 years ago

papuruth commented 6 years ago

please tell me how to compile it i have tried many times but failed as i have to use in kali nethunter chrooted for running postgresql

darksty commented 6 years ago

same questions

Anonymous1p commented 6 years ago

same here

kianoosh21 commented 5 years ago

is some one knows that please tell us

kianoosh21 commented 5 years ago

😢😢

Reno-Axel commented 4 years ago

You have to compile it in Linux with the compiler that you need, for example:

My phone use armv7 processor so I need to compile with armhf compiler in Kali Linux

To compile just do: ./build.sh

PD: to use it in PostgreSQL server on a nethunter, you need to change the code, setting the key to IPC_PRIVATE in shmget function, line 115, before the if statement

/* Get shared memory segment.  */
int shmget (key_t key, size_t size, int flags)
{
    char buf[256];
    int idx;
    DBG ("%s: key %d size %zu flags 0%o (flags are ignored)", __PRETTY_FUNCTION__, key, size, flags);
    key=IPC_PRIVATE;
    if (key != IPC_PRIVATE)
    ...
}

But I don’t know the implications of this change

m1kuwu commented 3 years ago

You have to compile it in Linux with the compiler that you need, for example:

My phone use armv7 processor so I need to compile with armhf compiler in Kali Linux

To compile just do: ./build.sh

PD: to use it in PostgreSQL server on a nethunter, you need to change the code, setting the key to IPC_PRIVATE in shmget function, line 115, before the if statement

/* Get shared memory segment.  */
int shmget (key_t key, size_t size, int flags)
{
  char buf[256];
  int idx;
  DBG ("%s: key %d size %zu flags 0%o (flags are ignored)", __PRETTY_FUNCTION__, key, size, flags);
  key=IPC_PRIVATE;
  if (key != IPC_PRIVATE)
  ...
}

But I don’t know the implications of this change

What to change everything is same