Advertising (This ad goes away for registered users. You can Login or Register)

Help finding library files / porting software process

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
MrWombat
Posts: 1
Joined: Fri Jan 13, 2017 8:41 am

Help finding library files / porting software process

Post by MrWombat » Fri Jan 13, 2017 9:47 am

Dear all, I bookmark the sections so you can get straight to the point XD

[INTRO]:

Being this my first post, I feel a small introduction is recommended. I'm a senior software developer with wide experience in high level languages, and looking to strengthen one of my weakest fields: pure good ol' C. I've been following closely the development of this PSVita scene since I got mine, almost a year ago, and now I want to start contributing to it somehow.

[THANKS]:

I would like to thank Team Molecule, I find no words to describe such a demonstration of perseverance, self-improvement, professionality and altruism, hats off! and last but not least, Mr. Wololo for his outstanding work keeping the community together. I really feel privileged to have the chance to live something like this. Long live the (handheld) Queen!

[POST]:

My first goal is to port a light SMB library, so I can get used to the compiling/linking tools. I have found this one, which looks quite affordable: https://github.com/videolabs/libdsm So far, I've reached to a point in which I need to compile another lib: https://www.gnu.org/software/libtasn1/

I've already managed to compile both without problems on linux, but I have reached a dead end with the VitaSDK. I need to use the alarm function, which is defined in unistd.h, but I can't find the library where the function is exported.

My investigations at the moment show that in linux, the function is located inside /lib/x86_64-linux-gnu/libc-2.23.so from that I can elicit that this is a system function. However, when I browse the vitasdk folders, I find that the function is present in /usr/local/vitasdk/arm-vita-eabi/include/unistd.h, but I can't find any lib.a or .so that is exporting it. My best try was by this command: /usr/local/vitasdk$ "find . -name '*.a*' -exec nm -s --print-file-name --defined-only {} \; | grep alarm" and some variations, but no success for this function.

How can I solve this and similar situations in the future? If possible don't give me fish but teach me fishing ;)

Thank you thank you thank you.

PS: If something sounds awkward, it's just that English is not my first tongue. Also I promise following posts will be much much shorter, this time I succumbed to the thrill of the first-timer...
Advertising

Post Reply

Return to “Programming and Security”