Opened 11 years ago

Closed 16 months ago

#43330 closed defect (fixed)

bahamut @2.0.7: Undefined symbols: "_res_mkquery"

Reported by: robotoad (Preston Sumner) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: bahamut

Description

Build fails on fresh MacPorts installation on OS X 10.9.2. Attached is main.log.

Snippet of console output:

--->  Fetching distfiles for bahamut
--->  Verifying checksums for bahamut
--->  Extracting bahamut
--->  Applying patches to bahamut
--->  Configuring bahamut
--->  Building bahamut
--->  Staging bahamut into destroot
Error: org.macports.destroot for port bahamut returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/work/destroot/opt/local/ircd": no such file or directory
Please see the log file for port bahamut for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_bahamut/bahamut/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port bahamut failed

Attachments (1)

main.log (54.2 KB) - added by robotoad (Preston Sumner) 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by robotoad (Preston Sumner)

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I see the same on my system. There are numerous problems. First, the configure script checks for res_mkquery, but doesn't find it:

:info:configure checking for res_mkquery... no
:info:configure checking for res_mkquery in -lresolv... no
:info:configure checking for __res_mkquery... no
:info:configure checking for __res_mkquery in -lresolv... no

Instead of reporting that failure and exiting, the configure script continues. The build then fails because res_mkquery is undefined:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_res_mkquery", referenced from:
:info:build       _query_name in res.o

Instead of reporting that failure and exiting, the build continues. This leads to the destroot phase failing to copy the ircd program, because it wasn't compiled because of the above problem.

I believe res_mkquery is usually in -lresolv on OS X so I don't know why the configure script didn't find it there.

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

Would you report this to the developers of bahamut please? From the log:

******************************************************************************
* For help with bahamut, please refer to http://bahamut.dal.net/             *
* If you encouter serious security related bugs, please mail coders@dal.net  *
* For other bug reports and inquiries, please mail dalnet-src@dal.net        *
* Thank you for choosing Bahamut!  - The DALnet coding team                  *
******************************************************************************

comment:3 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted
Summary: bahamut 2.0.7: build failsbahamut @2.0.7: Undefined symbols: "_res_mkquery"

Since the latest version 2.2.2 is still affected by these three problems, I guess nobody reported them to the developers yet, or they forgot about the problems, so I filed some issues:

Workarounds for these issues will be included in the upcoming 2.2.2 update of this port.

comment:4 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In c7f06016fa06224c70ad49ad330bdcc66a9b13f4/macports-ports (master):

bahamut: Update to 2.2.2

Closes: #43330
Closes: #58964

Note: See TracTickets for help on using tickets.