Zaptel
  1. Zaptel
  2. ZAP-92

During compile: syntax error before "zone_lock"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Major Major
    • Resolution: Unresolved
    • Component/s: wcfxo
    • Labels:
      None
    • Mantis ID:
      6425
    • Regression:
      No

      Description

      cc -o fxotune fxotune.o -lm
      /lib/modules/2.6.9-27.EL/build
      make -C /lib/modules/2.6.9-27.EL/build SUBDIRS=/usr/src/zaptel-1.2.3 modules
      make[1]: Entering directory `/usr/src/kernels/2.6.9-27.EL-i686'
      CC [M] /usr/src/zaptel-1.2.3/zaptel.o
      /usr/src/zaptel-1.2.3/zaptel.c:384: error: syntax error before "zone_lock"
      /usr/src/zaptel-1.2.3/zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock'
      /usr/src/zaptel-1.2.3/zaptel.c:384: error: incompatible types in initialization
      /usr/src/zaptel-1.2.3/zaptel.c:384: error: initializer element is not constant
      /usr/src/zaptel-1.2.3/zaptel.c:384: warning: data definition has no type or storage class
      /usr/src/zaptel-1.2.3/zaptel.c:385: error: syntax error before "chan_lock"
      /usr/src/zaptel-1.2.3/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock'
      /usr/src/zaptel-1.2.3/zaptel.c:385: error: incompatible types in initialization
      /usr/src/zaptel-1.2.3/zaptel.c:385: error: initializer element is not constant
      /usr/src/zaptel-1.2.3/zaptel.c:385: warning: data definition has no type or storage class
      /usr/src/zaptel-1.2.3/zaptel.c:188: warning: 'fcstab' defined but not used
      make[2]: *** [/usr/src/zaptel-1.2.3/zaptel.o] Error 1
      make[1]: *** [_module_/usr/src/zaptel-1.2.3] Error 2
      make[1]: Leaving directory `/usr/src/kernels/2.6.9-27.EL-i686'
      make: *** [linux26] Error 2
      [root@guentis zaptel-1.2.3]#

                • ADDITIONAL INFORMATION ******

      ZAPTEL-1.2.3 & ZAPTEL-1.2.2

      Server: RedHat 4 AS latest update.

      I believe that I could compile a month ago successfully (before applying the patches), then had to reinstall the OS and immediately up2date'd.

      I could imagine that it is an issue with the new (linux-)sources installed during update?

      When using an earlier RHEL source (2.6.9-5.EL) it compiles flawlessly (!!!) but that's not the binary I am running (2.6.9-27.EL).

      Googling for 'syntax error before "zone_lock"' I found one single message (in duplicates) regarding BSD and I am not even sure it is related:

      http://archives.free.net.ph/message/20051227.200252.7ddbef8e.en.html

      I can not compile ergo not load the zaptel subsystem and that's a serious problem for me. I am only surprised that I seem to be the only 'fortunate'.

      I appreciate any hints allowing me a fix.

        Activity

        Hide
        Ivan Mitev added a comment -

        hmm sorry strubinsky, i've mixed up two different things - the include/ stuff was not for zaptel

        i just tried to rebuild zaptel against a linux-2.6.9-22.0.1.EL tree (from centos4, rhel4 clone), and i don't have any problem (make KSRC=/home/build/kernel/linux-2.6.9-22.0.1.EL)

        did you do a "make prepare" in /usr/src/kernels/2.6.9-27.EL-i686 ?
        is this folder from a rpm ? (kernel-sourcecode ?) ; you may want to try fetch the kernel source rpm and do a rpmbuild -bp kernel-2.6.spec

        Show
        Ivan Mitev added a comment - hmm sorry strubinsky, i've mixed up two different things - the include/ stuff was not for zaptel i just tried to rebuild zaptel against a linux-2.6.9-22.0.1.EL tree (from centos4, rhel4 clone), and i don't have any problem (make KSRC=/home/build/kernel/linux-2.6.9-22.0.1.EL) did you do a "make prepare" in /usr/src/kernels/2.6.9-27.EL-i686 ? is this folder from a rpm ? (kernel-sourcecode ?) ; you may want to try fetch the kernel source rpm and do a rpmbuild -bp kernel-2.6.spec
        Hide
        Ivan Mitev added a comment -

        i just tried to compile zaptel 1.2.3 with the kernel tree from the 2.6.9-27.EL srpm from centos 4.3beta, and i got the same problem
        seems to be a redhat issue ...

        Show
        Ivan Mitev added a comment - i just tried to compile zaptel 1.2.3 with the kernel tree from the 2.6.9-27.EL srpm from centos 4.3beta, and i got the same problem seems to be a redhat issue ...
        Hide
        guenter strubinsky added a comment -

        That's enough for me to send a bug report to RedHat.

        I will post the relevant responses from them here as I receive it.

        Show
        guenter strubinsky added a comment - That's enough for me to send a bug report to RedHat. I will post the relevant responses from them here as I receive it.
        Hide
        guenter strubinsky added a comment -

        it's confirmed to be a typo and will be fixed by sub 4

        In the meantime change the single line as above and it'll compile flawlessly.

        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568

        guenter

        [closed] as what I am concerned.

        Show
        guenter strubinsky added a comment - it's confirmed to be a typo and will be fixed by sub 4 In the meantime change the single line as above and it'll compile flawlessly. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568 guenter [closed] as what I am concerned.
        Hide
        Kevin P. Fleming (Inactive) added a comment -

        Closing at poster's request.

        Show
        Kevin P. Fleming (Inactive) added a comment - Closing at poster's request.

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development