Home/Support/Support Forum/Red Hat Enterprise 5 dgnc wont compile
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Red Hat Enterprise 5 dgnc wont compile

0 votes
Hi all,

I am trying to install the digi neo 8 port software version 40002369_E.src.rpm on Red Hat Enterprise 5. I know that this version is not yet supported but I am wondering if there is patch or later version that supports this OS.

Some information about the system that I am trying to do the install on.

# uname -a
Linux hostname 2.6.18-8.1.1.el5 SMP

Install errors...

make[1]: Entering directory `/usr/src/redhat/BUILD/dgnc-1.3/driver'
make -C /lib/modules/2.6.18-8.1.1.el5/build SUBDIRS=$PWD modules MYPWD=/usr/src/redhat/BUILD/dgnc-1.3/driver
make[2]: Entering directory `/usr/src/kernels/2.6.18-8.1.1.el5-i686'
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_cls.o
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_driver.o
In file included from /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_driver.c:37:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated. CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_mgmt.o
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_neo.o
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_proc.o
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_trace.o
CC [M] /usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.o
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c: In function 'dgnc_tty_register':
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c:197: error: 'TTY_DRIVER_NO_DEVFS' undeclared (first use in this function)
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c:197: error: (Each undeclared id entifier is reported only once
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c:197: error: for each function it appears in.)
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c: In function 'dgnc_input':
/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.c:800: error: 'TTY_DONT_FLIP' undeclared (first use in this function)
make[3]: *** [/usr/src/redhat/BUILD/dgnc-1.3/driver/dgnc_tty.o] Error 1
make[2]: *** [_module_/usr/src/redhat/BUILD/dgnc-1.3/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.1.1.el5-i686'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/dgnc-1.3/driver'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.32327 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.32327 (%build)

Google finds this...

"devfs has renamed TTY_DRIVER_NO_DEVFS to TTY_DRIVER_DYNAMIC_DEV in tty_driver.h" and " Remove TTY_DONT_FLIP tty flag. This flag was introduced
in 2.1.X kernels to prevent the N_TTY line discipline
functions read_chan() and n_tty_receive_buf() from running
at the same time. 2.2.15 introduced tty->read_lock to protect
access to the N_TTY read buffer, which is the only state
requiring protection between these two functions.

The current TTY_DONT_FLIP implementation is broken
for SMP, and is not universally honored by drivers
that send data directly to the line discipline receive_buf function.

Because TTY_DONT_FLIP is not necessary, is broken in implementation,
and is not universally honored, it is removed. in tty.h"

Taking a look at the source in dgnc_tty.c the hash def
TTY_DRIVER_NO_DEVFS can be renamed but the reference to "
if (test_bit(TTY_DONT_FLIP, &tp->flags))
len = 0;" could cause some issues if its removed.

Has anyone else come across this?
asked Apr 30, 2007 in Serial Cards by mbooka New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
Please give the latest pre-release driver candidate a try with this Distribution version:

ftp://ftp1.digi.com/support/beta/linux/dgnc/dgnc-1.3-13.src.rpm
answered Apr 30, 2007 by userid0 Veteran of the Digi Community (2,158 points)
0 votes
Hi all,

I would just like to confirm that using the beta version dgnc-1.3.13.src.rpm has successfully installed and have tested with a serial device. Thanks for the prompt reply userid0 and to the digi support team.
answered May 1, 2007 by mbooka New to the Community (1 point)
...