There is a clue in your compiler output. > cc1: all warnings being treated as errors
If you tell the compiler to not treat Warnings as Errors then the compile will complete. ./configure CFLAGS=-w Adding the CFLAGS=-w to the configure turns off the setting without you needing to modify and of the downloaded source code. You will still see the warning but make will continue and succeed. Obviously, this should not need to be done, and I believe it has already been fixed for the 1.6 release of Guacamole but this works in the meantime. Regards, Vincent ________________________________ From: Jim Ham <jim...@porcine.com> Sent: Saturday 27 January 2024 00:33 To: user@guacamole.apache.org <user@guacamole.apache.org> Subject: server fails to compile - found a work-around It's a kludge, but by disabling the warnings on those two lines the project compiled without errors. Diff below. Regards, Jim <code> *** video.c~ 2023-11-26 11:10:14.000000000 -0800 --- video.c 2024-01-26 16:19:19.158357528 -0800 *************** *** 61,70 **** goto fail_codec; } ! container_format = container_format_context->oformat; /* Pull codec based on name */ AVCodec* codec = avcodec_find_encoder_by_name(codec_name); if (codec == NULL) { guacenc_log(GUAC_LOG_ERROR, "Failed to locate codec \"%s\".", codec_name); --- 61,74 ---- goto fail_codec; } ! _Pragma("GCC diagnostic push") ! _Pragma("GCC diagnostic ignored \"-Wdiscarded-qualifiers\"") ! ! container_format = container_format_context->oformat; /* Pull codec based on name */ AVCodec* codec = avcodec_find_encoder_by_name(codec_name); + _Pragma("GCC diagnostic pop") if (codec == NULL) { guacenc_log(GUAC_LOG_ERROR, "Failed to locate codec \"%s\".", codec_name); <\code> > Guacamole 1.5.4, from the tar on the website. I did the ./configure > and then ./make. Many files compile just fine, but the task ends with > the following error: > > <code> > CC guacenc-video.o > video.c: In function ‘guacenc_video_alloc’: > video.c:64:22: error: assignment discards ‘const’ qualifier from > pointer target type [-Werror=discarded-qualifiers] > 64 | container_format = container_format_context->oformat; > | ^ > video.c:67:22: error: initialization discards ‘const’ qualifier from > pointer target type [-Werror=discarded-qualifiers] > 67 | AVCodec* codec = avcodec_find_encoder_by_name(codec_name); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > <\code> > > I'm compiling on a Raspberry Pi 4. GCC gives me the following version: > > gcc (Raspbian 12.2.0-14+rpi1) 12.2.0 > Copyright (C) 2022 Free Software Foundation, Inc. > > Any suggestions? Regards, Jim Ham -- Porcine Associates LLC 244 O'Connor St. Menlo Park, CA 94025 USA +1(650)326-2669 fax +1(650)326-1071 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org For additional commands, e-mail: user-h...@guacamole.apache.org IT Solutions Email Disclaimer - The information contained in this email message, including any files transmitted with it, is confidential and may be legally privileged. This e-mail is intended only for the personal attention of the stated addressee(s). Any access to this email, including any files transmitted with it, by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the accuracy or completeness of the information contained in this email or any files transmitted with it. If you have received this email in error, please inform the sender immediately and delete it and all copies from your system. You may not forward this email without the permission of the authorised sender. The views expressed in this email are those of the author, and do not necessarily represent the views of IT Solutions or its affiliates. Internet communications are not secure and IT Solutions cannot therefore accept legal responsibility for the contents of this message nor for any damage caused by viruses. This email has been scanned at the originating end. For further information on IT Solutions visit https://www.itsolutions.ie