Menu

#929 5.1 build failure on OS X

closed
agent (1105)
5
2012-11-08
2003-12-10
No

When I try to build 5.1 on my OS X 10.2.8 box I get this:

gcc -I../../include -I../../include -I. -I../.. -I.
-I./../.. -I./../../snmplib -I./.. -I.. -g -O2
-Ddarwin6 -c ucd-snmp/disk.c -fno-common -DPIC -o
ucd-snmp/disk.lo
ucd-snmp/disk.c: In function `find_device':
ucd-snmp/disk.c:529: error: parse error before "else"
ucd-snmp/disk.c: At top level:
ucd-snmp/disk.c:541: error: parse error before "return"
make[2]: *** [ucd-snmp/disk.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1

also I noticed in the configure output, althought I
don't know if it's related or anything to be concerned
about:

checking net/route.h presence... yes
configure: WARNING: net/route.h: present but cannot be
compiled
configure: WARNING: net/route.h: check for missing
prerequisite headers?
configure: WARNING: net/route.h: proceeding with the
preprocessor's result
configure: WARNING: ##
------------------------------------ ##
configure: WARNING: ## Report this to
bug-autoconf@gnu.org. ##
configure: WARNING: ##
------------------------------------ ##

for this and a fair number of other system headers.

Discussion

  • Sean McGovern

    Sean McGovern - 2003-12-16

    Logged In: YES
    user_id=60475

    a closer look at find_device() in
    agent/mibgroup/ucd-snmp/disk.c reveals severe Preprocessor
    Soup. This is barely readable.

     
  • Niels Baggesen

    Niels Baggesen - 2003-12-18
     
  • Niels Baggesen

    Niels Baggesen - 2003-12-18

    Logged In: YES
    user_id=88647

    This is really a mess. Could you try applying this patch to
    see if it fixes it?

     
  • Sean McGovern

    Sean McGovern - 2003-12-19

    Logged In: YES
    user_id=60475

    Yes that works now, thank you very much.

     

Log in to post a comment.