Home/Support/Support Forum/macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given

0 votes
I'm trying to compile the dgnc-1.3 series driver against RedHat's kernel, and am getting the following error message:

/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:72:41: error: macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:72: warning: type defaults to âintâ in declaration of âDEFINE_SEMAPHOREâ
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c: In function âdgnc_tty_writeâ:
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: âdgnc_TmpWriteSemâ undeclared (first use in this function)
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: for each function it appears in.)
make[3]: *** [/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.o] Error 1
make[2]: *** [_module_/usr/src/redhat/BUILD/dgnc-1.3/driver/build] Error 2
make[2]: Leaving directory `/usr/src/kernels/'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/dgnc-1.3/driver/2.6.27'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.33130 (%build)

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

I've tried building with:


Using the following command:

rpmbuild --rebuild --define DISTRO=FEDORA dgnc-1.3-<version>.src.rpm

and without the DISTRO varible:

rpmbuild --rebuild dgnc-1.3-<version>.src.rpm

Without luck. Can anyone assist?


asked Aug 2, 2013 in Serial Cards by gdebruin New to the Community (0 points)

Please log in or register to answer this question.

Contact a Digi expert and get started today! Contact Us