Opened 12 years ago

Closed 10 years ago

Last modified 9 years ago

#35691 closed defect (fixed)

net-snmp: No rule to make target `add_mibdir.3', needed by `maninstall'

Reported by: renz@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: squiggledid
Port: net-snmp

Description

--->  Staging net-snmp into destroot
Error: org.macports.destroot for port net-snmp returned: command execution failed
Please see the log file for port net-snmp for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_net-snmp/net-snmp/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port net-snmp failed

Attachments (1)

main.log (482.4 KB) - added by renz@… 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by renz@…

Attachment: main.log added

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…

In the future, please Cc the port maintainer(s).

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: port net-snmp returned: command execution failednet-snmp: No rule to make target `add_mibdir.3', needed by `maninstall'

Strange, the only hit for the error message "No rule to make target `add_mibdir.3', needed by `maninstall'" on Google is http://comments.gmane.org/gmane.network.net-snmp.user/32434 but that was for version 5.6 and the fix mentioned there is already in the version 5.7.1 that you're using.

comment:3 in reply to:  2 ; Changed 10 years ago by squiggledid

Replying to ryandesign@…:

Strange, the only hit for the error message "No rule to make target `add_mibdir.3', needed by `maninstall'" on Google is http://comments.gmane.org/gmane.network.net-snmp.user/32434 but that was for version 5.6 and the fix mentioned there is already in the version 5.7.1 that you're using.

I just got this exact error:

":info:destroot make[1]: * No rule to make target add_mibdir.3', needed by maninstall'. Stop."

while trying to install net-snmp-5.7.2

Version 0, edited 10 years ago by squiggledid (next)

comment:4 in reply to:  3 Changed 10 years ago by squiggledid

Replying to david.mcg.squire@…:

Replying to ryandesign@…:

Strange, the only hit for the error message "No rule to make target `add_mibdir.3', needed by `maninstall'" on Google is http://comments.gmane.org/gmane.network.net-snmp.user/32434 but that was for version 5.6 and the fix mentioned there is already in the version 5.7.1 that you're using.

I just got this exact error:

:info:destroot make[1]: *** No rule to make target `add_mibdir.3', needed by `maninstall'.  Stop."

while trying to install net-snmp-5.7.2

Also, the @EGREP@ fix mentioned in your link above is there in man/Makefile.in, but I still get the error on Mavericks. (NB. @EGREP@ is translated to '/usr/bin/grep -e')

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: david.mcg.squire@… added
Resolution: fixed
Status: newclosed

Thanks for letting me know this was not an isolated incident. I re-examined the original log attached here 20 months ago, and noticed that it was building with -j24 -- in other words, 24 parallel jobs. Unless you've modified macports.conf, this would only occur on a machine with 12 hyperthreaded cores and at least 24 GB RAM, which is not a system I have tested on. But trying to build with build.jobs=24 now, even on my 4-core MacBook Pro, I was able to reproduce the problem. I disabled the parallel build in r118825 and will report this bug to the developers of net-snmp.

comment:6 in reply to:  5 ; Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

and will report this bug to the developers of net-snmp.

https://sourceforge.net/p/net-snmp/bugs/2540/

comment:7 in reply to:  6 Changed 10 years ago by fenner@…

Replying to ryandesign@…:

Replying to ryandesign@…:

and will report this bug to the developers of net-snmp.

https://sourceforge.net/p/net-snmp/bugs/2540/

There's a patch there, if you'd care to see if it fixes the original problem - https://sourceforge.net/p/net-snmp/bugs/_discuss/thread/23e9e381/1c6b/attachment/man-makefile-parallel.diff

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

The patch was committed upstream and included in net-snmp 5.7.3, to which the net-snmp port was updated in r129760.

Note: See TracTickets for help on using tickets.