android-shmem icon indicating copy to clipboard operation
android-shmem copied to clipboard

cannot compile it in nethunter chroot android 7.1.2

Open papuruth opened this issue 6 years ago • 6 comments

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

papuruth avatar Aug 06 '18 07:08 papuruth

same questions

darksty avatar Sep 04 '18 01:09 darksty

same here

Anonymous1p avatar Sep 20 '18 02:09 Anonymous1p

is some one knows that please tell us

kianoosh21 avatar Nov 06 '19 09:11 kianoosh21

😢😢

kianoosh21 avatar Nov 10 '19 09:11 kianoosh21

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

Reno-Axel avatar Mar 08 '20 18:03 Reno-Axel

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

m1kuwu avatar Jul 21 '21 15:07 m1kuwu