Search the web
Sign In
New User? Sign Up
ftpbench · To develop an open-source FTP benchmark application,
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Error compiling on FreeBSD 4.10. Cant find 'SIGRTMIN' def.   Message List  
Reply | Forward Message #275 of 282 |
RE: [ftpbench] Error compiling on FreeBSD 4.10. Cant find 'SIGRTMIN' def.




> -----Original Message-----
> From: Dan Kegel [mailto:dank@...]
>
> SIGRTMIN is part of the Real Time Signals optional section of POSIX.
> It would be nice if dkftpbench did not require Real Time Signals to
> compile.
>
> Sounds like Poller_test.cc should conditionalize this line
> CHECK(0, m_p.setSignum(SIGRTMIN));
> with #ifdef SIGRTMIN.
>
> As for your second error:
>
> > Poller_test.cc:251: aggregate `struct sockaddr_in sin' has incomplete
> type
> > and cannot be initialized ...
>
> Poller_test.cc has the lines
>
> #include <sys/socket.h>
> #include <arpa/inet.h>
> #include <sys/socket.h>
>
> Hmm, maybe one of those should be sys/types.h instead? Anyway,
> some .h file is missing. Should be easy to fix. Let us know what
> it is.
> - Dan

Thanks Dan :)
Here is a patch. (Use with caution!)

%cat patch
--- Poller_test.cc.old Wed Jul 31 07:59:52 2002
+++ Poller_test.cc Sun Oct 31 23:16:49 2004
@@ -36,6 +36,10 @@
#include <arpa/inet.h>
#include <sys/socket.h>

+/* Added to compile on FreeBSD.
+Also conditionalize statements using SIGRTMIN */
+#include <netinet/in.h>
+
/*----------------------------------------------------------------------
Portable function to set a socket into nonblocking mode.
----------------------------------------------------------------------*/
@@ -136,7 +140,9 @@
void testMondo()
{
CHECK(0, m_p.init());
+ #ifdef SIGRTMIN /* FreeBSD does not have this
defined */
CHECK(0, m_p.setSignum(SIGRTMIN));
+ #endif

clear();

@@ -238,7 +244,9 @@
void testRejection(const char *theHost, int thePort)
{
CHECK(0, m_p.init());
+ #ifdef SIGRTMIN
CHECK(0, m_p.setSignum(SIGRTMIN));
+ #endif

DPRINT(("Connect to a port that will refuse connections,
verify error reported.\n"));
// Requires theHost = a nonlocal IP adr, thePort = port
where that host will refuse a connection
@@ -309,7 +317,9 @@
void testWakeUp()
{
CHECK(0, m_p.init());
+ #ifdef SIGRTMIN
CHECK(0, m_p.setSignum(SIGRTMIN));
+ #endif

DPRINT(("testWakeUp: Set up a wakeup pipe\n"));
CHECK(0, m_p.initWakeUpPipe());
@@ -337,7 +347,9 @@
{
DPRINT(("testCaching\n"));
CHECK(0, m_p.init());
+ #ifdef SIGRTMIN
CHECK(0, m_p.setSignum(SIGRTMIN));
+ #endif

// Create a pipe so we have file descriptors to watch with
Poller.
// We use a pipe rather than a file or socket because it's
easy to
%


I know it compiles without a warning. Now to see if it works ;-)


- Nirav Jasapara.
http://www-scf.usc.edu/~jasapara/

"A professional is just an amateur who didn't quit" - Richard Bach.







Mon Nov 1, 2004 7:29 am

jasapara@...
Send Email Send Email

Forward
Message #275 of 282 |
Expand Messages Author Sort by Date

Hi, I am not able to built the sources. I run ./configure and then run make all. I get the following error. ... %uname -a FreeBSD ted.isi.edu 4.10-STABLE...
Nirav Jasapara
jasapara@...
Send Email
Nov 1, 2004
4:41 am

... SIGRTMIN is part of the Real Time Signals optional section of POSIX. It would be nice if dkftpbench did not require Real Time Signals to compile. Sounds...
Dan Kegel
dankegel
Offline Send Email
Nov 1, 2004
5:03 am

... Thanks Dan :) Here is a patch. (Use with caution!) %cat patch ... +++ Poller_test.cc Sun Oct 31 23:16:49 2004 @@ -36,6 +36,10 @@ #include...
Nirav Jasapara
jasapara@...
Send Email
Nov 1, 2004
2:52 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help