Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9167 closed defect (worksforme)

libnet1 package doesn't build

Reported by: yahoo@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


I believe that the changes made in /changeset/24417.html mean that the libnet1 package probably builds ok on the patch-author's machine, but it doesn't build anywhere else.
I'm no build-systems ninja ;) but it seems to me like the automake/autoconf source files (*.m4, *.am, *.in, etc.) get patched, but then automake/autoconf themselves don't get run during the OpenWRT build process for libnet1, and thus the "old versions" of configure, etc get used instead of the updated ones.

As it stands currently, when trying to build libnet1 from OpenWRT trunk, it fails with this error:

In file included from libnet_asn1.c:60:
../include/libnet.h:117:10: error: macro names must be identifiers

I eventually managed to track down the problem and updated feeds/packages/libs/libnet-1.1.x/patches/160-endian_cache.patch (updated version attached) so that it updates 'configure' as well as acinclude.m4 and that allows the build to get a bit further, but then it fails with (paths shortened for brevity):

cp -fpR ..../libnet/ipkg-install/usr/lib/* ..../libnet/ipkg-rdc/libnet1/usr/lib/
cp: cannot stat `..../libnet/ipkg-install/usr/lib/*': No such file or directory

because there's a libnet.a, but no files get built. I think this is due to the changes in feeds/packages/libs/libnet-1.1.x/patches/100-debian-subset.patch again being applied to the automake "source files", and then neither running automake, nor patching the automake "output files".

I'm afraid I'm not at all familiar with how autoconf/automake/libtool work, so I wasn't able to get the required changes worked out for this second part of the problem.

Attachments (1)

160-endian_cache.patch (990 bytes) - added by yahoo@… 7 years ago.
Updated version of the existing patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by yahoo@…

Updated version of the existing patch

comment:1 Changed 6 years ago by nico

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

comment:2 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

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

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

Note: See TracTickets for help on using tickets.