# Digiport rebuild RPM on Red Hat Enterprise Linux 8.10 (Ootpa) 'struct task\_struct' has no member named 'state'

**URL:** <https://forums.digi.com/t/digiport-rebuild-rpm-on-red-hat-enterprise-linux-8-10-ootpa-struct-task-struct-has-no-member-named-state/36806>\
**Category:** Realport\
**Created:** [May 14, 2025, 3:24am UTC](https://forums.digi.com/t/digiport-rebuild-rpm-on-red-hat-enterprise-linux-8-10-ootpa-struct-task-struct-has-no-member-named-state/36806 "2025-05-14T03:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leibhold](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leibhold](https://forums.digi.com/u/leibhold)\
**Post date:** [May 14, 2025, 3:24am UTC](https://forums.digi.com/t/digiport-rebuild-rpm-on-red-hat-enterprise-linux-8-10-ootpa-struct-task-struct-has-no-member-named-state/36806/1 "2025-05-14T03:24:56Z")

</div>

Virtualization: vmware  
Operating System: Red Hat Enterprise Linux 8.10 (Ootpa)  
CPE OS Name: cpe:/o:redhat:enterprise\_linux:8::baseos  
Kernel: Linux 4.18.0-553.51.1.el8\_10.x86\_64  
Architecture: x86-64

**When we are rebuilding the RPM from source RPM we get the error**

make[2]: Entering directory ‘/usr/src/kernels/4.18.0-553.51.1.el8\_10.x86\_64’  
CC [M] /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp\_common.o  
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp\_common.c: In function ‘dgrp\_sleep’:  
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp\_common.c:197:11: error: ‘struct task\_struct’ has no member named ‘state’; did you mean ‘\_\_state’?  
current-\>state = TASK\_INTERRUPTIBLE;  
^ ~~~~  
\_\_state  
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp\_common.c:199:11: error: ‘struct task\_struct’ has no member named ‘state’; did you mean ‘\_\_state’?  
current-\>state = TASK\_RUNNING;  
^ ~~~~  
\_\_state  
make[3]: \*\*\* [scripts/Makefile.build:318: /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp\_common.o] Error 1  
make[2]: \*\*\* [Makefile:1619: _module_/root/rpmbuild/BUILD/dgrp-1.9/driver/build] Error 2  
make[2]: Leaving directory ‘/usr/src/kernels/4.18.0-553.51.1.el8\_10.x86\_64’  
make[1]: \*\*\* [Makefile:68: build] Error 2  
make[1]: Leaving directory ‘/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27’  
make: \*\*\* [Makefile:59: build] Error 2  
error: Bad exit status from /var/tmp/rpm-tmp.wDaAzI (%build)

as far as I am aware, the **state** was not changed to **\_\_state** until kernel 5

I am unsure why this is happening on this particular machine when the same process on another VM works.

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![michaelt](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/michaelt/32/92_2.png) [@michaelt](https://forums.digi.com/u/michaelt)\
**Post date:** [May 23, 2025, 6:54pm UTC](https://forums.digi.com/t/digiport-rebuild-rpm-on-red-hat-enterprise-linux-8-10-ootpa-struct-task-struct-has-no-member-named-state/36806/2 "2025-05-23T18:54:03Z")

</div>

Your 4.18 kernel would normally work, but RHEL may have backported some of the kernel changes, which can cause issues. We try detecting the RHEL version which is running, but it may not be working in this case.

The topic of a Linux driver install can get quite involved, so I’d recommend using the command # script before starting your install (so that all the output is captured), then provide us the “typescript” file found at the path you ran “script” from (along with your product Serial Number) when you [create a support case with us](https://www.digi.com/support/submit-support-case#Submit%20a%20Case).

---

<div class="post-metadata">

**Author:** ![leibhold](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leibhold](https://forums.digi.com/u/leibhold)\
**Post date:** [May 23, 2025, 10:13pm UTC](https://forums.digi.com/t/digiport-rebuild-rpm-on-red-hat-enterprise-linux-8-10-ootpa-struct-task-struct-has-no-member-named-state/36806/3 "2025-05-23T22:13:39Z")

</div>

I eventually was able to track this down to an older file on the problem system.

Working System

- /usr/bin/gzip -dc /root/rpmbuild/SOURCES/dgrp-1.9.tgz
- /usr/bin/tar -xvvof -  
drwxrwxr-x paul/paul 0 2024-12-18 02:16 dgrp-1.9/  
Issue system
- /usr/bin/gzip -dc /root/rpmbuild/SOURCES/dgrp-1.9.tgz
- /usr/bin/tar -xvvof -  
drwxr-xr-x root/root 0 2020-01-29 02:31 dgrp-1.9/

Found this yesterday.

Replacing the older file with the file from ftp site corrected the issue.
