On 4 January 2012 10:28, Tao Zhou <moon...@gmail.com> wrote:
> Thanks Bart for your quick response, I tested as your suggestion, as get the
> below result.
>
> $ grep SIZEOF_ config.status
> D["SIZEOF_SHORT"]=" "
> D["SIZEOF_INT"]=" "
> D["SIZEOF_LONG"]=" "
> D["SIZEOF_LONG_LONG"]=" "
> D["SIZEOF_INTMAX_T"]=" "
> D["SIZEOF_SOCKADDR_UN_SUN_PATH"]=" "

Looks like Bart's suspicion was spot on!

So the next question is to see why these values aren't being
calculated correctly.

Have a look at the file 'config.log', and search for the word "short"
There should be two relevant checks, fairly early on in the file (about 2% in)

It ought to look something like the following:

configure:21799: checking for short
configure:21823: gcc -c -fno-strict-aliasing -g -O2 -Ulinux
-Dlinux=linux  conftest.c >&5
configure:21829: $? = 0
configure:21833: test -z
                         || test ! -s conftest.err
configure:21836: $? = 0
configure:21839: test -s conftest.o
configure:21842: $? = 0
configure:21853: result: yes
configure:21856: checking size of short
configure:22175: gcc -o conftest -fno-strict-aliasing -g -O2 -Ulinux
-Dlinux=linux   conftest.c  >&5
configure:22178: $? = 0
configure:22180: ./conftest
configure:22183: $? = 0
configure:22206: result: 2
configure:22213: checking for int
     <etc, etc>

The line number will almost certainly be different, and the
compilation line may well
be slightly different too.   But the basic flow should be reasonably
similar - a test to
check that the compiler understands "short", followed by a second test
to calculate
the size.

  Qn 1:   Does the first test succeed?   I.e. do you get "result: yes"
             just before the line "checking size of short"

  Qn 2:   What happens with the second test?
             Does the compilation succeed or not?
             What errors are displayed here?

If you're not sure, then please post the section of this file starting
with the line
"checking for short", up to the line "checking for int"
   (Not the whole thing, please!)

Dave

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to