Legor 0 Posted July 11, 2016 Share Posted July 11, 2016 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. Link to comment Share on other sites More sharing options...
MichaelM 40 Posted July 11, 2016 Share Posted July 11, 2016 The current source its written exclusively for FreeBSD, sadly. Link to comment Share on other sites More sharing options...
Legor 0 Posted July 11, 2016 Author Share Posted July 11, 2016 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 More sharing options...
MichaelM 40 Posted July 11, 2016 Share Posted July 11, 2016 The source its too old and obsolete to compile it on linux, even if you manage to port everything. Last year there was a project that aimed to repair the whole source and to port it to linux, but they dropped the project. Link to comment Share on other sites More sharing options...
Legor 0 Posted July 13, 2016 Author Share Posted July 13, 2016 On 11/7/2016 at 6:15 PM, MichaelM said: The source its too old and obsolete to compile it on linux, even if you manage to port everything. Last year there was a project that aimed to repair the whole source and to port it to linux, but they dropped the project. Ok, I was not aware. thanks for the tip Link to comment Share on other sites More sharing options...
ds_aim 241 Posted July 13, 2016 Share Posted July 13, 2016 (edited) 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 September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Vanilla 1455 Posted July 13, 2016 Share Posted July 13, 2016 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now