[netperf-talk] Request for help in compiling netperf in Solaris 2.7

Jay Kim jay.m.kim at samsung.com
Mon Jan 7 16:34:12 PST 2008


Thanks a lot, Andrew.
Now I've successfully got the binary at Solaris 2.7.
In summary, I've done the following two things in my environment;

1) After configure, I've commented out 'HAVE_BINDPROCESSOR' definitive in config.h
/* Define to 1 if you have the `bindprocessor' function. */
/* #undef HAVE_BINDPROCESSOR */

2) For the Set_errno fix, I've added your patch in different location in src/missing/inet_ntop.c. Your patch inserts it into the section for Win32 platform.

54    #ifndef WIN32
55    #include <errno.h>
56    #include <sys/socket.h>
57    #include <netinet/in.h>
58 + #define Set_errno(num) (errno = (num))
59    #else   /* WIN32 */

- jay


----- Original Message ----- 
From: "Andrew Gallatin" <gallatin at cs.duke.edu>
To: "Jay Kim" <jay.m.kim at samsung.com>
Cc: "Andrew Gallatin" <gallatin at cs.duke.edu>; <netperf-talk at netperf.org>
Sent: Monday, January 07, 2008 10:35 PM
Subject: Re: [netperf-talk] Request for help in compiling netperf in Solaris 2.7


> 
> Jay Kim writes:
> 
> > Moreover, removing 'HAVE_PROCESSOR_BIN' definition made a different error. 
> 
> You just got further in the build than you did before and hit another
> error.
> 
> > Would you please look at the following and give me another suggestion to fix it?
> > 
> > $ gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'netcpu_kstat.c' || echo './'`netcpu_kstat.c
> > gcc  -g -O2   -o netperf  netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_kstat.o missing/libcompat.a -lkstat -lnsl -lsocket -lm 
> > Undefined                       first referenced
> >  symbol                             in file
> > Set_errno                           missing/libcompat.a(inet_ntop.o)
> > 
> > This time, 'Set_errno' macro cannot be found. What can be wrong?
> 
> According to comments in src/missing/inet_ntop.c, the errno
> abstraction #defines are copied from netlib.h.  Apparently, not
> enough of them are copied.  Try the attached patch.
> 
> Drew
>


More information about the netperf-talk mailing list