Hello,

I'm working on patch to add two new configuration options for opkg
in the menuconfig. These are OPKG_ENABLE_CURL and OPKG_ENABLE_GPG.

A problem occurs when enabling OPKG_ENABLE_CURL and therefore enabling
the compile flag --enable-curl, the package does not compile properly.

The last output from make is (all outputs have some parts of the paths
stripped):

make[5]: Entering directory `.../build_dir/linux-ar71xx/opkg-513/libopkg'
mips-openwrt-linux-uclibc-ar:
-L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib: No such file or
directory
make[5]: *** [libopkg.a] Error 1

I tracked this down to the following command in the Makefile:

mips-openwrt-linux-uclibc-ar cru libopkg.a opkg.o opkg_cmd.o
opkg_configure.o opkg_download.o opkg_install.o opkg_upgrade.o opkg_remove.o
opkg_conf.o opkg_utils.o pkg.o pkg_depends.o pkg_extract.o hash_table.o
pkg_hash.o pkg_parse.o pkg_vec.o file_util.o opkg_message.o md5.o
sprintf_alloc.o xregex.o xsystem.o  sha256.o conffile.o conffile_list.o
nv_pair.o nv_pair_list.o pkg_dest.o pkg_dest_list.o pkg_src.o pkg_src_list.o
str_list.o void_list.o active_list.o ../libbb/libbb.a
-L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib
-L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib
-lcurl -lcrypto -lssl -lz
-L.../staging_dir/target-mips_r2_uClibc-0.9.30.1/usr//lib
-lssl -lcrypto -ldl

Invoking the above command manually without the parameters after libbb.a
seems to work. So I guess this is some misconfiguration in the Makefile.am.
However I do not know how to fix this. Can someone provide a patch for
the issue above, so I can finish my patch?

Thanks,

Oliver Ripka
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to