LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-21-2006, 07:19 PM   #1
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Rep: Reputation: 15
bmon make error [in_netlink.o]


hi,

I'm trying to install bmon on my server, but it won't compile. The server is running slackware-current with the 2.6.17 kernel. Here's the make output:

Code:
/download/bmon-2.1.0$ make
Entering src
  DEP out_audio.c
  DEP out_curses.c
  DEP out_xml_state.c
  DEP out_xml_event.c
  DEP out_distribution.c
  DEP out_html.c
  DEP out_format.c
  DEP out_ascii.c
  DEP out_null.c
  DEP in_netstat.c
  DEP in_distribution.c
  DEP in_sysctl.c
  DEP in_sysfs.c
  DEP in_netlink.c
in_netlink.c:47:29: netlink/helpers.h: No such file or directory
in_netlink.c:51:34: netlink/route/filter.h: No such file or directory
  DEP in_kstat.c
  DEP in_proc.c
  DEP in_dummy.c
  DEP in_null.c
  DEP itemtab.c
  DEP bindings.c
  DEP signal.c
  DEP graph.c
  DEP item.c
  DEP node.c
  DEP conf.c
  DEP output.c
  DEP input.c
  DEP utils.c
  DEP bmon.c
  CC bmon.c
  CC utils.c
  CC input.c
  CC output.c
  CC conf.c
  CC node.c
  CC item.c
  CC graph.c
  CC signal.c
  CC bindings.c
  CC itemtab.c
  CC in_null.c
  CC in_dummy.c
  CC in_proc.c
  CC in_kstat.c
  CC in_netlink.c
In file included from /usr/local/include/netlink/netlink.h:23,
                 from in_netlink.c:45:
/usr/local/include/netlink/netlink-kernel.h:222: error: syntax error before "__u32"
/usr/local/include/netlink/netlink-kernel.h:232: error: syntax error before "__u16"
In file included from /usr/local/include/netlink/netlink.h:24,
                 from in_netlink.c:45:
/usr/local/include/netlink/rtnetlink-kernel.h:281: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:283: error: syntax error before "rta_expires"
/usr/local/include/netlink/rtnetlink-kernel.h:284: error: syntax error before "rta_error"
/usr/local/include/netlink/rtnetlink-kernel.h:285: error: syntax error before "rta_used"
/usr/local/include/netlink/rtnetlink-kernel.h:288: error: syntax error before "rta_id"
/usr/local/include/netlink/rtnetlink-kernel.h:289: error: syntax error before "rta_ts"
/usr/local/include/netlink/rtnetlink-kernel.h:290: error: syntax error before "rta_tsage"
/usr/local/include/netlink/rtnetlink-kernel.h:342: error: syntax error before "__u8"
/usr/local/include/netlink/rtnetlink-kernel.h:346: error: syntax error before "__u16"
/usr/local/include/netlink/rtnetlink-kernel.h:351: error: syntax error before "__u8"
/usr/local/include/netlink/rtnetlink-kernel.h:353: error: syntax error before "ident"
/usr/local/include/netlink/rtnetlink-kernel.h:356: error: syntax error before "spi"
/usr/local/include/netlink/rtnetlink-kernel.h:358: error: syntax error before '}' token
/usr/local/include/netlink/rtnetlink-kernel.h:403: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:405: error: syntax error before "cstamp"
/usr/local/include/netlink/rtnetlink-kernel.h:406: error: syntax error before "tstamp"
/usr/local/include/netlink/rtnetlink-kernel.h:431: error: syntax error before "__u16"
/usr/local/include/netlink/rtnetlink-kernel.h:433: error: syntax error before "ndm_type"
/usr/local/include/netlink/rtnetlink-kernel.h:477: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:479: error: syntax error before "ndm_updated"
/usr/local/include/netlink/rtnetlink-kernel.h:480: error: syntax error before "ndm_refcnt"
/usr/local/include/netlink/rtnetlink-kernel.h:498: error: syntax error before "__u64"
/usr/local/include/netlink/rtnetlink-kernel.h:500: error: syntax error before "ndts_hash_grows"
/usr/local/include/netlink/rtnetlink-kernel.h:501: error: syntax error before "ndts_res_failed"
/usr/local/include/netlink/rtnetlink-kernel.h:502: error: syntax error before "ndts_lookups"
/usr/local/include/netlink/rtnetlink-kernel.h:503: error: syntax error before "ndts_hits"
/usr/local/include/netlink/rtnetlink-kernel.h:504: error: syntax error before "ndts_rcv_probes_mcast"
/usr/local/include/netlink/rtnetlink-kernel.h:505: error: syntax error before "ndts_rcv_probes_ucast"
/usr/local/include/netlink/rtnetlink-kernel.h:506: error: syntax error before "ndts_periodic_gc_runs"
/usr/local/include/netlink/rtnetlink-kernel.h:507: error: syntax error before "ndts_forced_gc_runs"
/usr/local/include/netlink/rtnetlink-kernel.h:533: error: syntax error before "__u8"
/usr/local/include/netlink/rtnetlink-kernel.h:535: error: syntax error before "ndtm_pad2"
/usr/local/include/netlink/rtnetlink-kernel.h:540: error: syntax error before "__u16"
/usr/local/include/netlink/rtnetlink-kernel.h:542: error: syntax error before "ndtc_entries"
/usr/local/include/netlink/rtnetlink-kernel.h:543: error: syntax error before "ndtc_last_flush"
/usr/local/include/netlink/rtnetlink-kernel.h:544: error: syntax error before "ndtc_last_rand"
/usr/local/include/netlink/rtnetlink-kernel.h:545: error: syntax error before "ndtc_hash_rnd"
/usr/local/include/netlink/rtnetlink-kernel.h:546: error: syntax error before "ndtc_hash_mask"
/usr/local/include/netlink/rtnetlink-kernel.h:547: error: syntax error before "ndtc_hash_chain_gc"
/usr/local/include/netlink/rtnetlink-kernel.h:548: error: syntax error before "ndtc_proxy_qlen"
/usr/local/include/netlink/rtnetlink-kernel.h:622: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:629: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:631: error: syntax error before "rx_bytes"
/usr/local/include/netlink/rtnetlink-kernel.h:632: error: syntax error before "tx_bytes"
/usr/local/include/netlink/rtnetlink-kernel.h:633: error: syntax error before "rx_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:634: error: syntax error before "tx_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:635: error: syntax error before "rx_dropped"
/usr/local/include/netlink/rtnetlink-kernel.h:636: error: syntax error before "tx_dropped"
/usr/local/include/netlink/rtnetlink-kernel.h:637: error: syntax error before "multicast"
/usr/local/include/netlink/rtnetlink-kernel.h:638: error: syntax error before "collisions"
/usr/local/include/netlink/rtnetlink-kernel.h:641: error: syntax error before "rx_length_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:642: error: syntax error before "rx_over_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:643: error: syntax error before "rx_crc_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:644: error: syntax error before "rx_frame_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:645: error: syntax error before "rx_fifo_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:646: error: syntax error before "rx_missed_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:649: error: syntax error before "tx_aborted_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:650: error: syntax error before "tx_carrier_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:651: error: syntax error before "tx_fifo_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:652: error: syntax error before "tx_heartbeat_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:653: error: syntax error before "tx_window_errors"
/usr/local/include/netlink/rtnetlink-kernel.h:656: error: syntax error before "rx_compressed"
/usr/local/include/netlink/rtnetlink-kernel.h:657: error: syntax error before "tx_compressed"
/usr/local/include/netlink/rtnetlink-kernel.h:663: error: syntax error before "__u64"
/usr/local/include/netlink/rtnetlink-kernel.h:665: error: syntax error before "base_addr"
/usr/local/include/netlink/rtnetlink-kernel.h:666: error: syntax error before "irq"
/usr/local/include/netlink/rtnetlink-kernel.h:667: error: syntax error before "dma"
/usr/local/include/netlink/rtnetlink-kernel.h:668: error: syntax error before "port"
/usr/local/include/netlink/rtnetlink-kernel.h:751: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:753: error: syntax error before "reachable_time"
/usr/local/include/netlink/rtnetlink-kernel.h:754: error: syntax error before "retrans_time"
/usr/local/include/netlink/rtnetlink-kernel.h:767: error: syntax error before "__u32"
/usr/local/include/netlink/rtnetlink-kernel.h:769: error: syntax error before "tcm_info"
in_netlink.c:47:29: netlink/helpers.h: No such file or directory
in_netlink.c:51:34: netlink/route/filter.h: No such file or directory
in_netlink.c:55: error: variable `nl_h' has initializer but incomplete type
in_netlink.c:55: warning: implicit declaration of function `NL_INIT_HANDLE'
in_netlink.c:56: error: variable `link_cache' has initializer but incomplete type
in_netlink.c:56: warning: implicit declaration of function `RTNL_INIT_LINK_CACHE'
in_netlink.c:127: warning: "struct nl_common" declared inside parameter list
in_netlink.c:127: warning: its scope is only this definition or declaration, which is probably not what you want
in_netlink.c:162: warning: "struct nl_common" declared inside parameter list
in_netlink.c: In function `handle_class':
in_netlink.c:175: error: dereferencing pointer to incomplete type
in_netlink.c:176: warning: implicit declaration of function `nl_handle2str'
in_netlink.c:176: error: dereferencing pointer to incomplete type
in_netlink.c:176: warning: passing arg 1 of `lookup_map' makes pointer from integer without a cast
in_netlink.c:177: error: dereferencing pointer to incomplete type
in_netlink.c:179: error: dereferencing pointer to incomplete type
in_netlink.c:181: error: dereferencing pointer to incomplete type
in_netlink.c:194: error: dereferencing pointer to incomplete type
in_netlink.c:195: error: dereferencing pointer to incomplete type
in_netlink.c:196: error: dereferencing pointer to incomplete type
in_netlink.c:197: error: dereferencing pointer to incomplete type
in_netlink.c:198: error: dereferencing pointer to incomplete type
in_netlink.c:199: error: dereferencing pointer to incomplete type
in_netlink.c:200: error: dereferencing pointer to incomplete type
in_netlink.c:201: error: dereferencing pointer to incomplete type
in_netlink.c:202: error: dereferencing pointer to incomplete type
in_netlink.c:208: warning: passing arg 1 of `handle_qdisc' from incompatible pointer type
in_netlink.c: At top level:
in_netlink.c:215: warning: "struct nl_common" declared inside parameter list
in_netlink.c:216: error: conflicting types for 'handle_qdisc'
in_netlink.c:127: error: previous declaration of 'handle_qdisc' was here
in_netlink.c:216: error: conflicting types for 'handle_qdisc'
in_netlink.c:127: error: previous declaration of 'handle_qdisc' was here
in_netlink.c: In function `handle_qdisc':
in_netlink.c:227: error: dereferencing pointer to incomplete type
in_netlink.c:228: error: dereferencing pointer to incomplete type
in_netlink.c:228: warning: passing arg 1 of `lookup_map' makes pointer from integer without a cast
in_netlink.c:229: error: dereferencing pointer to incomplete type
in_netlink.c:231: error: dereferencing pointer to incomplete type
in_netlink.c:233: error: dereferencing pointer to incomplete type
in_netlink.c:245: error: dereferencing pointer to incomplete type
in_netlink.c:246: error: dereferencing pointer to incomplete type
in_netlink.c:247: error: dereferencing pointer to incomplete type
in_netlink.c:248: error: dereferencing pointer to incomplete type
in_netlink.c:249: error: dereferencing pointer to incomplete type
in_netlink.c:250: error: dereferencing pointer to incomplete type
in_netlink.c:251: error: dereferencing pointer to incomplete type
in_netlink.c:252: error: dereferencing pointer to incomplete type
in_netlink.c:253: error: dereferencing pointer to incomplete type
in_netlink.c:254: error: dereferencing pointer to incomplete type
in_netlink.c:256: error: dereferencing pointer to incomplete type
in_netlink.c:257: error: dereferencing pointer to incomplete type
in_netlink.c:258: error: dereferencing pointer to incomplete type
in_netlink.c:259: error: dereferencing pointer to incomplete type
in_netlink.c:260: error: dereferencing pointer to incomplete type
in_netlink.c:261: error: dereferencing pointer to incomplete type
in_netlink.c:262: error: dereferencing pointer to incomplete type
in_netlink.c:263: error: dereferencing pointer to incomplete type
in_netlink.c:264: error: dereferencing pointer to incomplete type
in_netlink.c:270: warning: passing arg 3 of `rtnl_qdisc_foreach_child' from incompatible pointer type
in_netlink.c: In function `handle_tc':
in_netlink.c:286: warning: implicit declaration of function `rtnl_class_build_cache'
in_netlink.c:286: error: dereferencing pointer to incomplete type
in_netlink.c:286: warning: assignment makes pointer from integer without a cast
in_netlink.c:290: warning: implicit declaration of function `rtnl_qdisc_get_root'
in_netlink.c:290: error: dereferencing pointer to incomplete type
in_netlink.c:290: warning: assignment makes pointer from integer without a cast
in_netlink.c:291: warning: passing arg 1 of `handle_qdisc' from incompatible pointer type
in_netlink.c:292: error: dereferencing pointer to incomplete type
in_netlink.c:293: warning: passing arg 1 of `handle_qdisc' from incompatible pointer type
in_netlink.c:295: warning: implicit declaration of function `rtnl_qdisc_get_ingress'
in_netlink.c:295: error: dereferencing pointer to incomplete type
in_netlink.c:295: warning: assignment makes pointer from integer without a cast
in_netlink.c:296: warning: passing arg 1 of `handle_qdisc' from incompatible pointer type
in_netlink.c:298: warning: implicit declaration of function `nl_cache_destroy_and_free'
in_netlink.c: At top level:
in_netlink.c:301: warning: "struct nl_common" declared inside parameter list
in_netlink.c: In function `do_link':
in_netlink.c:307: error: dereferencing pointer to incomplete type
in_netlink.c:310: error: dereferencing pointer to incomplete type
in_netlink.c:313: error: dereferencing pointer to incomplete type
in_netlink.c:321: error: dereferencing pointer to incomplete type
in_netlink.c:323: error: dereferencing pointer to incomplete type
in_netlink.c:323: error: dereferencing pointer to incomplete type
in_netlink.c:325: error: dereferencing pointer to incomplete type
in_netlink.c:325: error: dereferencing pointer to incomplete type
in_netlink.c:328: error: dereferencing pointer to incomplete type
in_netlink.c:328: error: dereferencing pointer to incomplete type
in_netlink.c:331: error: dereferencing pointer to incomplete type
in_netlink.c:331: error: dereferencing pointer to incomplete type
in_netlink.c:334: error: dereferencing pointer to incomplete type
in_netlink.c:335: error: dereferencing pointer to incomplete type
in_netlink.c:337: error: dereferencing pointer to incomplete type
in_netlink.c:338: error: dereferencing pointer to incomplete type
in_netlink.c:340: error: dereferencing pointer to incomplete type
in_netlink.c:341: error: dereferencing pointer to incomplete type
in_netlink.c:342: error: dereferencing pointer to incomplete type
in_netlink.c:343: error: dereferencing pointer to incomplete type
in_netlink.c:344: error: dereferencing pointer to incomplete type
in_netlink.c:345: error: dereferencing pointer to incomplete type
in_netlink.c:346: error: dereferencing pointer to incomplete type
in_netlink.c:347: error: dereferencing pointer to incomplete type
in_netlink.c:348: error: dereferencing pointer to incomplete type
in_netlink.c:350: error: dereferencing pointer to incomplete type
in_netlink.c:351: error: dereferencing pointer to incomplete type
in_netlink.c: In function `netlink_read':
in_netlink.c:367: warning: implicit declaration of function `rtnl_qdisc_build_cache'
in_netlink.c:367: warning: assignment makes pointer from integer without a cast
in_netlink.c:376: warning: passing arg 2 of `nl_cache_foreach' from incompatible pointer type
in_netlink.c: In function `netlink_do_init':
in_netlink.c:389: warning: implicit declaration of function `nl_use_default_handlers'
in_netlink.c: In function `netlink_probe':
in_netlink.c:402: warning: implicit declaration of function `nl_cache_destroy'
in_netlink.c: At top level:
in_netlink.c:55: error: storage size of `nl_h' isn't known
in_netlink.c:56: error: storage size of `link_cache' isn't known
in_netlink.c:127: warning: 'handle_qdisc' declared `static' but never defined
make[1]: *** [in_netlink.o] Error 1
make: *** [all] Error 2
Does anyone know how to fix this?

thanks,

harkov

Last edited by Harkov; 10-21-2006 at 07:21 PM.
 
Old 11-12-2006, 09:31 AM   #2
yam103
LQ Newbie
 
Registered: Nov 2006
Location: Paris
Distribution: Fedora Core 6
Posts: 1

Rep: Reputation: 0
hello,

I have exactely the same problem with bmon.
I use Fedora core 6, kernel 2.6.18-1.2798.fc6.

I found a workaround, by disabling libnl, by using two methods:
- remove libnl-devel package (may be another name under slackware)
OR
- disable libnl from compilation. As I coudn't find any configuration switch, I had to manually edit 'configure' file. , and change the following line (line number 7328):

if test $ac_cv_lib_nl_nl_connect = yes; then

with:

if test $ac_cv_lib_nl_nl_connect = foo; then

Then rerun ./configure,

But I got other compilation messages:

out_xml_event.c:130: erreur: expected ‘=’ before ‘xml_event_shutdown’
out_audio.c:144: erreur: expected ‘=’ before ‘audio_shutdown’
out_db.c:682: erreur: expected ‘=’ before ‘db_shutdown’

So I had to edit src/out_xml_event.c, src/out_audio.c and etc/out_db.c files, and add the '=' char where it is expected....

After these operations, I was able to make & install bmon.

Last edited by yam103; 11-12-2006 at 09:38 AM.
 
Old 11-12-2006, 10:59 AM   #3
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks,

Disabeling that if statement did the trick.

-harkov
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 06:06 PM
Really, really Weird trouble with make (make error 2) flyeater Suse/Novell 5 06-20-2005 01:05 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 12:19 PM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 04:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM


All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration