|Anonymous | Login | Signup for a new account||2019-01-20 08:55 WET|
|Main | My View | View Issues | Change Log | Roadmap | Docs | My Account|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000056||[MyDNS-NG] Global||minor||always||2010-05-12 17:41||2014-08-09 15:20|
|Summary||0000056: Current code assumes AI_ADDRCONFIG is always present in netdb.h|
Current mydns-ng code blindly assumes if netdb.h is present that AI_ADDRCONFIG is defined. This isn't the always the case especially on legacy platforms.
Using the attached patch and adding -llwres to the configure line will build properly. For example: ./configure --without-mysql LIBS=-llwres
There must be cleaner ways to do this but I'm including this as is in order to help other legacy compilers.
AI_ADDRCONFIG is only used once in notify.c and without lwres on legacy platforms the build may fail as follows:
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../.. -I../../lib -I../../src/lib -I../../intl -I/usr/local/pgsql/include -g -O2 -finline-functions -funsigned-char -MT notify.o -MD -MP -MF .deps/notify.Tpo -c -o notify.o notify.c
notify.c: In function `name_servers2ip':
notify.c:790: `AI_ADDRCONFIG' undeclared (first use in this function)
notify.c:790: (Each undeclared identifier is reported only once
notify.c:790: for each function it appears in.)
make: *** [notify.o] Error 1
make: Leaving directory `/home/src/foo/mydns-1.2.8/src/mydns'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/src/foo/mydns-1.2.8/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/src/foo/mydns-1.2.8'
|Tags||No tags attached.|
mydns-18.104.22.168.1-lwres.diff [^] (302 bytes) 2010-05-12 17:41
mydns-22.214.171.124.1-build_fail.log [^] (18,563 bytes) 2010-05-12 18:46
what if you try this before ./configure
Doing export CPPFLAGS="-I/usr/include/lwres" results in quite a blowup/build failure.
See attached mydns-126.96.36.199.1-build_fail.log
This makes me wonder if notify is really broken in the legacy compile and the compiler isn't showing it....
Notify wasn't working properly on ubuntu LTS 10.04 either so I'm not sure.
|do you have libc6-dev installed in your ubuntu box ?|
|I have the equivalent on the system. This legacy compile was an old Redhat box. I suspect my notify problem is a different issue. I'll get into notify another day and likely in a different bug report.|
do you have glibc-headers in your old redhat box ?
what are your distro version of your old redhat box ?
I'm seeing the issue just now on Redhat 9. glibc headers are installed:
[root@redhat-9-32bit mydns-1.2.8]# rpm -qa|grep glibc
what are your ubuntu version ?
buntu LTS 10.04 ?
I will download it and try to compile.
|Ive restructured some of the ifdef's and precompiler if's in the notify.c file that, probably wont, but might fix the problem. Is this still an issue? (no comments in 4 years - trying to clean up the bug report db).|
|Please close this ticket as I'm no longer using this software.|
|2010-05-12 17:41||rhardy||New Issue|
|2010-05-12 17:41||rhardy||File Added: mydns-188.8.131.52.1-lwres.diff|
|2010-05-12 17:49||itamarjp||Note Added: 0000150|
|2010-05-12 18:02||rhardy||Note Added: 0000152|
|2010-05-12 18:46||rhardy||Note Added: 0000153|
|2010-05-12 18:46||rhardy||Note Deleted: 0000153|
|2010-05-12 18:46||rhardy||File Added: mydns-184.108.40.206.1-build_fail.log|
|2010-05-13 15:30||itamarjp||Note Added: 0000154|
|2010-05-13 17:18||rhardy||Note Added: 0000156|
|2010-05-14 14:09||itamarjp||Note Added: 0000157|
|2010-06-04 23:03||toddr||Note Added: 0000158|
|2010-06-04 23:05||toddr||Issue Monitored: toddr|
|2010-06-29 19:49||jwarnier||Issue Monitored: jwarnier|
|2010-11-22 18:40||itamarjp||Note Added: 0000187|
|2014-08-05 23:49||jameno123||Relationship added||related to 0000057|
|2014-08-05 23:49||jameno123||Relationship added||related to 0000018|
|2014-08-05 23:51||jameno123||Note Added: 0000206|
|2014-08-05 23:51||jameno123||Assigned To||=> jameno123|
|2014-08-05 23:51||jameno123||Status||new => feedback|
|2014-08-09 15:20||rhardy||Note Added: 0000216|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|