[GH-ISSUE #3469] [APP BUG]: error: use of undeclared identifier 'SIOCGIFHWADDR' #1058

Closed
opened 2026-02-27 21:09:43 +03:00 by kerem · 5 comments
Owner

Originally created by @Martinfx on GitHub (Aug 28, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3469

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

Hi,
i have problem with compilation source code,

clude -O0 -g -fno-omit-frame-pointer -pipe -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=gnu++23 -fPIE -fexperimental-library -fPIC -pthread -MD -MT CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o -MF CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o.d -o CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o -c /usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp
/usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp:95:33: error: use of undeclared identifier 'SIOCGIFHWADDR'
   95 |                 if (ioctl(sock, SIOCGIFHWADDR, &ifr) == 0) {
      |                                 ^
/usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp:104:42: error: no member named 'ifr_hwaddr' in 'ifreq'
  104 |         memcpy(ether_address.data(), ifr.ifr_hwaddr.sa_data, 6);
      |                                      ~~~ ^
2 errors generated.

Reproduction Steps

  1. Clone repo https://github.com/Martinfx/FreeBSD-Ports/tree/master/shadps4
  2. make

Expected Behavior

No response

Specify OS Version

FreeBSD-14.3-RELEASE

CPU

amd64

GPU

nvidia 1060

Amount of RAM in GB

32

Originally created by @Martinfx on GitHub (Aug 28, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3469 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug Hi, i have problem with compilation source code, ``` clude -O0 -g -fno-omit-frame-pointer -pipe -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=gnu++23 -fPIE -fexperimental-library -fPIC -pthread -MD -MT CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o -MF CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o.d -o CMakeFiles/shadps4.dir/src/core/libraries/network/net_util.cpp.o -c /usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp /usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp:95:33: error: use of undeclared identifier 'SIOCGIFHWADDR' 95 | if (ioctl(sock, SIOCGIFHWADDR, &ifr) == 0) { | ^ /usr/home/maxfx/Documents/FreeBSD-Ports/shadps4/work/shadPS4-v.0.10.0/src/core/libraries/network/net_util.cpp:104:42: error: no member named 'ifr_hwaddr' in 'ifreq' 104 | memcpy(ether_address.data(), ifr.ifr_hwaddr.sa_data, 6); | ~~~ ^ 2 errors generated. ``` ### Reproduction Steps 1. Clone repo https://github.com/Martinfx/FreeBSD-Ports/tree/master/shadps4 2. make ### Expected Behavior _No response_ ### Specify OS Version FreeBSD-14.3-RELEASE ### CPU amd64 ### GPU nvidia 1060 ### Amount of RAM in GB 32
kerem closed this issue 2026-02-27 21:09:43 +03:00
Author
Owner

@squidbus commented on GitHub (Aug 29, 2025):

This will probably need some code changes to support FreeBSD as I believe that part of the network code is Linux specific. FreeBSD is not a platform we currently officially support but contributions are welcome.

<!-- gh-comment-id:3236425837 --> @squidbus commented on GitHub (Aug 29, 2025): This will probably need some code changes to support FreeBSD as I believe that part of the network code is Linux specific. FreeBSD is not a platform we currently officially support but contributions are welcome.
Author
Owner

@Martinfx commented on GitHub (Sep 12, 2025):

This will probably need some code changes to support FreeBSD as I believe that part of the network code is Linux specific. FreeBSD is not a platform we currently officially support but contributions are welcome.

ok. I fixed the problem.

<!-- gh-comment-id:3286688378 --> @Martinfx commented on GitHub (Sep 12, 2025): > This will probably need some code changes to support FreeBSD as I believe that part of the network code is Linux specific. FreeBSD is not a platform we currently officially support but contributions are welcome. ok. I fixed the problem.
Author
Owner

@kalaposfos13 commented on GitHub (Sep 12, 2025):

My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence

<!-- gh-comment-id:3286722238 --> @kalaposfos13 commented on GitHub (Sep 12, 2025): My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence
Author
Owner

@ctrlinsert commented on GitHub (Sep 12, 2025):

My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence

Relevant xkcd: https://xkcd.com/979/

<!-- gh-comment-id:3286753999 --> @ctrlinsert commented on GitHub (Sep 12, 2025): > My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence Relevant xkcd: https://xkcd.com/979/
Author
Owner

@Martinfx commented on GitHub (Sep 12, 2025):

My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence

Patch is here https://github.com/Martinfx/FreeBSD-Ports/tree/master/shadps4

<!-- gh-comment-id:3286755464 --> @Martinfx commented on GitHub (Sep 12, 2025): > My guy you cannot just say "I fixed the problem" and not elaborate, think of all the people trying to fix this exact problem then getting blue balled by that sentence Patch is here https://github.com/Martinfx/FreeBSD-Ports/tree/master/shadps4
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1058
No description provided.