Jump to content

Help with Linux lib to compile binary


Recommended Posts

Hello dears,

I'm trying to compile source on my CentOS server. At this time, when I launch Makefile i receive an error with "strlcopy" function, this is BSD's function, so, I've installed the libbsd-devel and now:
It's correct what I'm doing?
How i can specify this library? I've try to specify in Makefile with "-L/usr/lib %allpossiblecombinations%".
This is the first error that I receive, so I think I receive others in future.

Someone that is more prepared than me can please show me the right way?

Thanks a lot, Legor.:D

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

2 hours ago, MichaelM said:

The current source its written exclusively for FreeBSD, sadly.

Yes, but the BSD functions that are necessary are included in libbsd library. In addition, my compilation crashes because it is not found that particular method, not for other reasons. Or am I wrong?

In any case, thanks for the reply :)

Link to comment
Share on other sites

Check m signature. I managed to compile under ubuntu, all tests was passed but i never used in production.

Intro my test server i don't found any issue.

 

https://metin2.download/picture/5kbpNoZOvQcHk1rqsw4749fKNST1a7Wj/.png look

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

strlcpy is not reserved to FreeBSD!

There is an linux equivalent.

http://linux.die.net/man/3/strlcpy

 

Also, you don't even need strlcpy since c++ provides you with everything you need. If you need those size-bound functions you can just use the native c++ ones. strncpy would be the right choice for this case. And this belongs to the std library, not any os-implementations. So you don't need to worry about compiling on bsd, linux or even windows.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 4

      Feeding game source to LLM

    2. 0

      Quest 6/7 Problem

    3. 5

      Effect weapons

    4. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    5. 3

      Crystal Metinstone

    6. 4

      Feeding game source to LLM

    7. 113

      Ulthar SF V2 (TMP4 Base)

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.