Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#5804 closed defect (fixed)

BUG: eggdrop 1.6.17 fails on compile

Reported by: cleric@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

This error is the same on both compiling (I can do everything up to 'make') with the source manually vs darwinports. I am on Apple OS X 10.4.3 Tiger Server. with XCode 2.2 and DarwinPorts base version 1.102. The only other software installed is wget, nmap and gnupg from darwin ports.

This is the same error I recieve on my iBook with the same software versions. It is reproduced easily on both systems regularly.

This is the error that is recieved...


cleric$ sudo port install eggdrop ---> Fetching eggdrop ---> Verifying checksum(s) for eggdrop ---> Extracting eggdrop ---> Configuring eggdrop ---> Building eggdrop with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_irc_eggdrop/ work/eggdrop1.6.17" && make all" returned error 2 Command output: .././dns.mod/coredns.c:571: error: for each function it appears in.) .././dns.mod/coredns.c:571: error: 'C_IN' undeclared (first use in this function) .././dns.mod/coredns.c:569: warning: unused variable 'buf' .././dns.mod/coredns.c: In function 'resendrequest': .././dns.mod/coredns.c:594: error: 'T_A' undeclared (first use in this function) .././dns.mod/coredns.c:597: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/coredns.c: In function 'parserespacket': .././dns.mod/coredns.c:713: error: 'NOERROR' undeclared (first use in this function) .././dns.mod/coredns.c:737: error: 'MAXDNAME' undeclared (first use in this function) .././dns.mod/coredns.c:756: error: 'C_IN' undeclared (first use in this function) .././dns.mod/coredns.c:762: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/coredns.c:769: error: 'T_A' undeclared (first use in this function) .././dns.mod/coredns.c:871: error: 'T_CNAME' undeclared (first use in this function) .././dns.mod/coredns.c:896: error: 'NXDOMAIN' undeclared (first use in this function) .././dns.mod/coredns.c: In function 'dns_check_expires': .././dns.mod/coredns.c:973: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/coredns.c:982: error: 'T_A' undeclared (first use in this function) .././dns.mod/coredns.c: In function 'dns_lookup': .././dns.mod/coredns.c:1007: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/coredns.c: In function 'dns_forward': .././dns.mod/coredns.c:1044: error: 'T_A' undeclared (first use in this function) .././dns.mod/dns.c: In function 'dns_event_success': .././dns.mod/dns.c:48: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/dns.c:51: error: 'T_A' undeclared (first use in this function) .././dns.mod/dns.c: In function 'dns_event_failure': .././dns.mod/dns.c:62: error: 'T_PTR' undeclared (first use in this function) .././dns.mod/dns.c:68: error: 'T_A' undeclared (first use in this function) make[2]: * dns.o Error 1 make[1]: * [dns.mod_o] Error 2 make: * [static] Error 2


I hope this is enough information to have the problem solved. Sorry I couldn't offer more.

#cleric@…

Attachments (1)

Portfile.diff (361 bytes) - added by dreness (Andre LaBranche) 19 years ago.
Diff for eggdrop Portfile; now works in Tiger

Download all attachments as: .zip

Change History (4)

comment:1 Changed 19 years ago by mww@…

Owner: changed from olegb@… to darwinports-bugs@…
Summary: eggdrop 1.6.17 fails on compileBUG: eggdrop 1.6.17 fails on compile

comment:2 Changed 19 years ago by dreness (Andre LaBranche)

Here's the fix. I'm not sure how to make a patch file for this, but doing the following after eggdrop fails to build should allow the compile and install to succeed. This has been tested on 10.4.3 server.

1) cd to /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_irc_eggdrop/ work/eggdrop1.6.17/src/mod/dns.mod

2) Edit coredns.c, replacing #include <arpa/nameser.h> with #include <arpa/nameser_compat.h>

3) move up to the main eggdrop directory to /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_irc_eggdrop/ work/eggdrop1.6.17

3) Edit Makefile by appending -lresolv to the XLIBS definition, so that it appears as follows: XLIBS = @XLIBS@ -lresolv

4) sudo port install eggdrop

... and an even nicer way is to simply append:

platform darwin 8 { configure.env CFLAGS="-DBIND_8_COMPAT" }

to the end of the eggdrop portfile. I'll sign up and committ this myself :)

Changed 19 years ago by dreness (Andre LaBranche)

Attachment: Portfile.diff added

Diff for eggdrop Portfile; now works in Tiger

comment:3 Changed 19 years ago by matt@…

Resolution: fixed
Status: newclosed

Committed. Thanks Andre!

Note: See TracTickets for help on using tickets.