OpenWrt Forum Archive

Topic: does openwrt have a libagrp?

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

libagrp (as is my understanding) comes from libc. I know there is a uclibc equivalent, how do I call it in a program which depends on libagrp?

Here's how wimax-tools the latest software I'm porting failed.

wimaxll-pl-reset.c:36:18: error: argp.h: No such file or directory
In file included from wimaxll-pl-reset.c:40:
../include/wimaxll/cmd.h:73: error: field 'argp' has incomplete type
wimaxll-pl-reset.c:44: error: array type has incomplete element type
wimaxll-pl-reset.c:49: warning: 'struct argp_state' declared inside parameter list
wimaxll-pl-reset.c:49: warning: its scope is only this definition or declaration, which is probably not what you want
wimaxll-pl-reset.c: In function 'reset_parser':
wimaxll-pl-reset.c:51: error: 'ARGP_ERR_UNKNOWN' undeclared (first use in this function)
wimaxll-pl-reset.c:51: error: (Each undeclared identifier is reported only once
wimaxll-pl-reset.c:51: error: for each function it appears in.)
wimaxll-pl-reset.c: In function 'reset_fn':
wimaxll-pl-reset.c:60: error: 'ARGP_IN_ORDER' undeclared (first use in this function)
wimaxll-pl-reset.c:60: error: 'ARGP_PARSE_ARGV0' undeclared (first use in this function)
wimaxll-pl-reset.c: At top level:
wimaxll-pl-reset.c:75: error: field name not in record or union initializer
wimaxll-pl-reset.c:75: error: (near initialization for 'reset_cmd.argp')
wimaxll-pl-reset.c:76: error: field name not in record or union initializer
wimaxll-pl-reset.c:76: error: (near initialization for 'reset_cmd.argp')
wimaxll-pl-reset.c:77: error: field name not in record or union initializer
wimaxll-pl-reset.c:77: error: (near initialization for 'reset_cmd.argp')
wimaxll-pl-reset.c:78: error: field name not in record or union initializer
wimaxll-pl-reset.c:78: error: (near initialization for 'reset_cmd.argp')
make[4]: *** [wimaxll-pl-reset.lo] Error 1
make[4]: Leaving directory `/home/hopper/openwrt_wimax/backfire/build_dir/linux-ar71xx/wimax-tools-1.4.5/bin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hopper/openwrt_wimax/backfire/build_dir/linux-ar71xx/wimax-tools-1.4.5'
make[2]: *** [/home/hopper/openwrt_wimax/backfire/build_dir/linux-ar71xx/wimax-tools-1.4.5/.built] Error 2
make[2]: Leaving directory `/home/hopper/openwrt_wimax/pasty/wimax-tools'
make[1]: *** [package/feeds/pasty/wimax-tools/compile] Error 2
make[1]: Leaving directory `/home/hopper/openwrt_wimax/backfire'
make: *** [package/feeds/pasty/wimax-tools/compile] Error 2

I'd appreciate any insight.

For anyone searching in the future,hnyman was right,  I invoked libargp under uclibc with:

ifdef CONFIG_USE_UCLIBC
CONFIGURE_VARS += \
    LIBS="-largp"
endif

And added the following DEPENDS:

+USE_UCLIBC:argp-standalone

(Last edited by hopp on 18 Aug 2012, 02:40)

The discussion might have continued from here.