<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">It looks like I had a previous partial install that was causing this error. I edited the CMakeLists.txt and got it to build, which in turn cleaned up the edited file. Doing a port clean and installation it’s now working as expected. <div><div><br></div><div><div style="display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://github.com/macports/macports-ports/pull/18291"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://github.com/macports/macports-ports/pull/18291" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center" align="center"><img style="width:300px;filter:brightness(0.97);height:150px;" width="300" height="150" draggable="false" class="lp-rich-link-mediaImage" alt="18291.png" src="cid:60F71E91-DEE9-41F1-9D3B-5BBD6F1D6017"></td></tr><tr><td vertical-align="center"><table bgcolor="#E5E6E9" cellpadding="0" cellspacing="0" width="300" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://github.com/macports/macports-ports/pull/18291" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">nrsc5: new port by trodemaster · Pull Request #18291 · macports/macports-ports</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://github.com/macports/macports-ports/pull/18291" style="text-decoration: none" draggable="false"><font color="#808080" style="color: rgba(0, 0, 0, 0.498039);">github.com</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div><div><br></div><div><br></div><div>Thanks for the help! </div><br><div><blockquote type="cite">MakeLists.txt</blockquote><div><br><blockquote type="cite"><div>On Apr 8, 2023, at 2:09 PM, Joshua Root <jmr@macports.org> wrote:</div><br class="Apple-interchange-newline"><div><div>On 9/4/2023 06:13, blake@netjibbing.com wrote:<br><blockquote type="cite">I have had this nrsc5 port sitting around for a long time in a broken state. Would you happen to have any suggestions on how to address this build error?<br>Full build log: https://gist.github.com/trodemaster/2ef9d94db3b894ff690ebd365afed0cd <https://gist.github.com/trodemaster/2ef9d94db3b894ff690ebd365afed0cd><br>WIP port file: https://github.com/trodemaster/blakeports/blob/main/audio/nrsc5/Portfile <https://github.com/trodemaster/blakeports/blob/main/audio/nrsc5/Portfile><br>/opt/local/var/macports/build/_opt_mports_blakeports_audio_nrsc5/nrsc5/work/nrsc5-59bc2968485635c16c7250696abc3e8ff765b72d/src/nrsc5.c:548:15: error: conflicting types for 'nrsc5_pipe_samples_cu8'<br>NRSC5_API int nrsc5_pipe_samples_cu8(nrsc5_t *st, const uint8_t *samples, unsigned int length)<br> ^<br>/opt/local/include/nrsc5.h:578:5: note: previous declaration is here<br>int nrsc5_pipe_samples_cu8(nrsc5_t *st, uint8_t *samples, unsigned int length);<br> ^<br></blockquote><br>From the log:<br><br>:info:build cd /opt/local/var/macports/build/_opt_mports_blakeports_audio_nrsc5/nrsc5/work/build/src && /usr/bin/clang -DGIT_COMMIT_HASH=\"unknown\" -D_GNU_SOURCE -I/opt/local/include -I/opt/local/var/macports/build/_opt_mports_blakeports_audio_nrsc5/nrsc5/work/build/src -I/opt/local/var/macports/build/_opt_mports_blakeports_audio_nrsc5/nrsc5/work/nrsc5-59bc2968485635c16c7250696abc3e8ff765b72d/include -pipe -Os -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -fPIC --std=gnu11 -O3 -Wall -MD -MT src/CMakeFiles/nrsc5_object.dir/nrsc5.c.o -MF CMakeFiles/nrsc5_object.dir/nrsc5.c.o.d -o CMakeFiles/nrsc5_object.dir/nrsc5.c.o -c /opt/local/var/macports/build/_opt_mports_blakeports_audio_nrsc5/nrsc5/work/nrsc5-59bc2968485635c16c7250696abc3e8ff765b72d/src/nrsc5.c<br><br>The first '-I/opt/local/include' in that command is before the two -I flags specifying locations inside the workpath. The order that -I flags are specified on the command line controls the order in which directories are searched when a header is included. So /opt/local/include/nrsc5.h is found instead of the nrsc5.h in the source directory.<br><br>You'll most likely need to patch the CMakeLists.txt to fix this. Find where those flags are added and ensure that the internal locations are added to the start of the flags, and externally specified flags are added to the end. IIRC, cmake has BEFORE and AFTER options you can specify when adding include directories.<br><br>- Josh<br></div></div></blockquote></div><br></div></div></div></body></html>