<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for the fast response.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm pretty sure that if POSIX is an <i>optional</i>​ item, I did <i>not</i>​ build with it (I'm
<i>very</i>​ new to RTEMS, so I've been using what I was given with the "Hello World" Quick Start build).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm glad to give that a try if you point me to some sort of documentation to learn how to enable POSIX.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
That being said, I just want to be clear - we're looking for the 'signal()' function rather than the POSIX 'sigaction()' function.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Brett</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Joel Sherrill <joel@rtems.org><br>
<b>Sent:</b> Tuesday, August 22, 2023 4:14 PM<br>
<b>To:</b> Brett Sterling <brett.sterling@odysseysr.com><br>
<b>Cc:</b> users@rtems.org <users@rtems.org><br>
<b>Subject:</b> Re: "signal()" in RTEMS unresolved</font>
<div> </div>
</div>
<div>
<div id="x_footer" style="background-color:#ffeb9c; width:98%; border:1px solid #FFEB9C; padding:2pt; border-style:solid; border-color:#9C6500">
<font face="Calibri,sans-serif" size="2"><font color="#9C6500">CAUTION:</font><font color="black"> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</font></div>
<br>
</font>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Tue, Aug 22, 2023 at 4:46 PM Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com">brett.sterling@odysseysr.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-3469803292219599600">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
My code calls the 'signal()' function. There are no errors during compile, but when it goes to the link stage, it gets an error:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
: in function `Encore::Framework::Component::Component(unsigned int, double)':
<div>Component.cpp:(.text+0x1338): undefined reference to `signal'</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Did you build with POSIX enabled? POSIX signals are part of the small amount of POSIX functionality that is covered by that switch. </div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-3469803292219599600">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I've seen the documentation that indicates the Posix method is to use 'sigaction()', but we're looking to use the standard C/C++ library functionality. Based on the error, I'm guessing that either</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li style="list-style-type:"a) ""><span>I'm not linking with the correct libraries OR</span></li><li style="list-style-type:"b) ""><span>I need to specify some sort of switch when building the RTEMS tools (in order to include the 'signal()' function in the libraries).</span></li></ol>
<div>I've searched 'the web' but haven't come up with anything that indicates where I'm going wrong.</div>
<div><span><br>
</span></div>
<div><span>Any pointers here would be appreciated :-)</span></div>
<div><span><br>
</span></div>
<div><span>Thanks!</span></div>
<div><span>Brett</span></div>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C32fd9200243347529c7408dba35d2acb%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638283392785714573%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=y8FFLSdf%2Fu6CUWEAYlmU48stE%2BeK8qJA0lHvAFKStNM%3D&reserved=0" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>