Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000057 [MyDNS-NG] Global block always 2010-06-22 20:55 2014-08-07 18:54
Reporter jwarnier View Status public  
Assigned To jameno123
Priority normal Resolution fixed  
Status resolved   Product Version 1.2.8.27
Summary 0000057: Fails to build on OpenSolaris
Description MyDNS-NG 1.2.8.27, as well as current trunk (1.2.8.30?), both fail to build on OpenSolaris (x86_64) b134e (actually Nexenta Core Platform 3.0 RC1).
Additional Information Here is the error message, enjoy:
make[3]: Entering directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk'
make[3]: Leaving directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk'
/bin/sh ../missing --run sed -f ../version.sed mydns.8.in | tr -s '\n' > mydns.8
/bin/sh ../missing --run sed -f ../version.sed mydnscheck.8.in | tr -s '\n' > mydnscheck.8
/bin/sh ../missing --run sed -f ../version.sed mydns.conf.5.in | tr -s '\n' > mydns.conf.5
/bin/sh ../missing --run sed -f ../version.sed mydns-conf.8.in | tr -s '\n' > mydns-conf.8
/bin/sh ../missing --run sed -f ../version.sed mydnsexport.8.in | tr -s '\n' > mydnsexport.8
/bin/sh ../missing --run sed -f ../version.sed mydnsimport.8.in | tr -s '\n' > mydnsimport.8
/bin/sh ../missing --run sed -f ../version.sed mydnsptrconvert.8.in | tr -s '\n' > mydnsptrconvert.8
make[2]: Leaving directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk/doc'
Making all in lib
make[2]: Entering directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk/lib'
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I/usr/include/mysql -g -O2 -finline-functions -funsigned-char -MT alloca.o -MD -MP -MF .deps/alloca.Tpo -c -o alloca.o alloca.c
mv -f .deps/alloca.Tpo .deps/alloca.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I/usr/include/mysql -g -O2 -finline-functions -funsigned-char -MT cidr.o -MD -MP -MF .deps/cidr.Tpo -c -o cidr.o cidr.c
In file included from cidr.c:21:
mydnsutil.h:540: error: duplicate 'extern'
mydnsutil.h:540: error: two or more data types in declaration specifiers
mydnsutil.h:541: warning: data definition has no type or storage class
mydnsutil.h:541: error: conflicting types for 'inet_ntop'
/usr/include/arpa/inet.h:64: error: previous declaration of 'inet_ntop' was here
make[2]: *** [cidr.o] Error 1
make[2]: Leaving directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/jwarnier/ControlPanel/mydns-ng/mydns/trunk'
make: *** [all] Error 2
Tags No tags attached.
Attached Files

- Relationships
has duplicate 0000018resolvedjameno123 Syntax error in notify.c 
related to 0000056feedbackjameno123 Current code assumes AI_ADDRCONFIG is always present in netdb.h 

-  Notes
(0000185)
itamarjp (developer)
2010-11-16 19:32

can you try to compile the git version adding a comment in line


898 of notify.c

// }

?
(0000186)
itamarjp (developer)
2010-11-16 19:33

compiled fine in my openindiana machine
(0000190)
jwarnier (reporter)
2011-10-05 10:50

Just tried with 1.2.8.31, and I get the following error:

i386-pc-solaris2.11-gcc -DLOCALEDIR=\"/usr/share/locale\" -I. -I../.. -I../../lib -I../../src/lib -I../../intl -I/usr/include/mysql -g -Wall -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function 'master_shutdown':
main.c:662: warning: format '%d' expects type 'int', but argument 3 has type 'pid_t'
main.c: At top level:
main.c:1035: warning: 'purge_bad_tasks' defined but not used
mv -f .deps/main.Tpo .deps/main.Po
i386-pc-solaris2.11-gcc -DLOCALEDIR=\"/usr/share/locale\" -I. -I../.. -I../../lib -I../../src/lib -I../../intl -I/usr/include/mysql -g -Wall -O2 -MT message.o -MD -MP -MF .deps/message.Tpo -c -o message.o message.c
mv -f .deps/message.Tpo .deps/message.Po
i386-pc-solaris2.11-gcc -DLOCALEDIR=\"/usr/share/locale\" -I. -I../.. -I../../lib -I../../src/lib -I../../intl -I/usr/include/mysql -g -Wall -O2 -MT notify.o -MD -MP -MF .deps/notify.Tpo -c -o notify.o notify.c
notify.c:906: error: expected ')' before numeric constant
notify.c:907: error: expected ')' before numeric constant
notify.c:913: error: expected identifier or '(' before 'return'
notify.c:918: error: expected identifier or '(' before '}' token
make[4]: *** [notify.o] Error 1
make[4]: Leaving directory `/export/home/jwarnier/debian/mydns-1.2.8.31/src/mydns'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/export/home/jwarnier/debian/mydns-1.2.8.31/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/jwarnier/debian/mydns-1.2.8.31'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/jwarnier/debian/mydns-1.2.8.31'
make: *** [build-mysql] Error 2

Though I did not test the above patch for notify.c. I will right away.
(0000191)
jwarnier (reporter)
2011-10-05 11:02

And indeed, it builds with that tiny patch. Though I'm not sure I understand what it exactly does and why it works.
(0000202)
jameno123 (administrator)
2014-08-05 23:02

This *should* be fixed fully in the latest git-master (and hopefully wont create any new ones like it):
https://sourceforge.net/p/mydns-ng/code/ci/c4b73474301b8b3ef32759aa9dcb33dbbece91ff/ [^]

Found a case of mis-aligned scoping brackets under certain compiler options. Adjusted the scoping bracket locations to correct the problem. Please re-open if there is any troubles with the latest commits.

- Issue History
Date Modified Username Field Change
2010-06-22 20:55 jwarnier New Issue
2010-06-29 19:49 jwarnier Issue Monitored: jwarnier
2010-11-16 19:32 itamarjp Note Added: 0000185
2010-11-16 19:33 itamarjp Note Added: 0000186
2011-10-05 10:50 jwarnier Note Added: 0000190
2011-10-05 11:02 jwarnier Note Added: 0000191
2014-08-05 23:00 jameno123 Status new => assigned
2014-08-05 23:00 jameno123 Assigned To => jameno123
2014-08-05 23:02 jameno123 Note Added: 0000202
2014-08-05 23:02 jameno123 Status assigned => resolved
2014-08-05 23:02 jameno123 Fixed in Version => Trunk
2014-08-05 23:02 jameno123 Resolution open => fixed
2014-08-05 23:39 jameno123 Relationship added has duplicate 0000018
2014-08-05 23:49 jameno123 Relationship added related to 0000056
2014-08-07 18:54 jameno123 Fixed in Version Trunk => 1.2.8.32
2014-08-07 18:54 jameno123 Target Version => 1.2.8.32


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker