Modify

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#4704 closed defect (fixed)

collectd compile error when adding plugin

Reported by: eddier Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:

Description

I am trying to add my own plugin into collectd, but I seem to be having problems with the build script.
I have followed the development guide carefully and added the necessary lines to collectd's Makefile.
When I build I get an error when it is compiling liboconfig library.
Something that was not touched.

make[8]: Entering directory `/home/user/kamikaze_save/trunk/build_dir/target-mipsel_uClibc-0.9.29/collectd-4.4.4_d/src/liboconfig'
/bin/bash ../../libtool --tag=CC --mode=compile mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../src -I/home/user/kamikaze_save/trunk/staging_dir/target-mipsel_uClibc-0.9.29/usr/include/libxml2 -I/home/user/kamikaze_save/trunk/staging_dir/target-mipsel_uClibc-0.9.29/usr/include -I/home/user/kamikaze_save/trunk/staging_dir/target-mipsel_uClibc-0.9.29/include -fpic -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -c -o oconfig.lo oconfig.c
../../libtool: line 818: X--tag=CC: command not found
../../libtool: line 851: libtool: ignoring unknown tag : command not found

It looks as if the CONFIGURE_OPTS is not get applied to the sub-directories.
CONFIGURE_VARS+= \

CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS $(FPIC)" \
KERNEL_DIR="$(LINUX_DIR)"

Is there is anything special I need to do get the the build process to apply the Configure var in sub-directory?

If I diff a working vs my modified version, I see these missing lines in the Makefile
CXX = mipsel-openwrt-linux-uclibc-g++
CXXCPP = mipsel-openwrt-linux-uclibc-g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts

Attachments (1)

collectd-4.4.4a.patch (12.4 KB) - added by eddier 9 years ago.
Patch file that shows error

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by eddier

Patch file that shows error

comment:1 Changed 9 years ago by eddier

Added patch file that creates new plugin for collect. Shows error

comment:2 Changed 8 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

see r18890.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.