Jump to content

Recommended Posts

Problem with compiling the server on a newer compiler

Hello,
I would like to gradually upgrade my server to a newer standard, but I’m currently facing the first problem, which is the compiler. I have FreeBSD 9.3 32-bit with GCC version 4.2.1. I tried to get compilation on new FreeBSD 13 and 14 with various available GCC versions. I even downloaded a pre-built VDI with FreeBSD 13 and prepared MySQL 5.6, but I keep running into the same issue.

First, the server compiled on the new FreeBSD required updated libraries. I solved this by statically linking everything I could into the binary. However, then a second problem appeared: the server prints:
 

Real Server
  Log OffTHECORE: starting init
  THECORE: setting up signals
  THECORE: initializing log and pid
  THECORE: initializing GOST
  THECORE: creating heart
  THECORE: init finished
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-auth
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-ch1-core1
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-ch1-core2
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-ch2-core1
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-ch2-core2
  [root@floor-server:~/floor-server]# GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: skipping interface em0
  GetIPInfo: found interface em0 IP 10.0.0.118
  INTERNAL_IP: 10.0.0.118 interface em0
  GetIPInfo: skipping interface em1
  GetIPInfo: found interface em1 IP 192.168.56.101
  INTERNAL_IP: 192.168.56.101 interface em1
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  GetIPInfo: skipping interface lo0
  INTERNAL_IP -> PUBLIC_IP: 192.168.56.101
  HOSTNAME: main-ch99-core99

The server does not start—it crashes immediately, and the syserr log is empty. This happens on all the newest GCC versions.

I’m not an expert in C++ or in this area, so I’m asking if it’s even possible to solve this. I’m not concerned about upgrading the code itself—that’s something I want to tackle later. My main goal is to maintain a functional compiler. I would really appreciate if someone could help me with this;

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.