# memory problem in AIX shared libraries

**URL:** <https://community.unix.com/t/memory-problem-in-aix-shared-libraries/167458>\
**Category:** AIX\
**Created:** [December 7, 2006, 5:39am UTC](https://community.unix.com/t/memory-problem-in-aix-shared-libraries/167458 "2006-12-07T05:39:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinav05252](https://community.unix.com/letter_avatar/abhinav05252/32/6_22734026db12803ebb3e059622ac3534.png) [@abhinav05252](https://community.unix.com/u/abhinav05252)\
**Post date:** [December 7, 2006, 5:39am UTC](https://community.unix.com/t/memory-problem-in-aix-shared-libraries/167458/1 "2006-12-07T05:39:37Z")

</div>

Hi All,

I'm facing the following issue with my shared libraries in AIX.

memory related calls such as memset, memcpy, malloc etc are failing miserably.

there is something wrong with stack/memory which i can't guess.

i've used the following flags to build my libraray:

ld -G -bexpfull -bnoentry -bnogc -o \<shared library name\> \<object files\>

and the follwong option to compile the c files

gcc -maix64 -c -shared -fPIC .

somone please help me out

thanks

Abhinav
