Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.13
    • Target Release Version/s: None
    • Component/s: General
    • Security Level: None
    • Labels:
      None
    • Environment:
      Debian 7.0 (Wheezy)
    • Regression:
      No

      Description

      Building libpri with the right build flags fails:

      gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pritest.o -MF .pritest.o.d -MP -c -o pritest.o pritest.c
      pritest.c: In function 'do_channel':
      pritest.c:71:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]

      Attached a patch to check the output of write(2) and exit the main loop of pri_test in case of a failed write.

        Activity

        Hide
        SirLouen added a comment -

        This patch works, but I believe must be solved. I've tried to install today libpri under Ubuntu 12.10 Server and found this problem also

        Show
        SirLouen added a comment - This patch works, but I believe must be solved. I've tried to install today libpri under Ubuntu 12.10 Server and found this problem also

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development