Home  >  Support  >  Support Forum  >  macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.
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 2.6.33.9-rt31.70.el5rt 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/2.6.33.9-rt31.70.el5rt-x86_64'
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:

dgnc-1.3-24.src.rpm
dgnc-1.3-26.src.rpm
dgnc-1.3-28.src.rpm

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?

Thanks!

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

Please log in or register to answer this question.

Your M2M Expert™for Businessfor Developers
Newsletter SignupYouTubeGoogle+FacebookCopyright © 1996-2013 Digi International Inc. All rights reserved. Legal
...