[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little errors on FreeBSD 5.3



On Sat, Nov 20, 2004 at 10:04:43PM +0300, Igor S Chencov wrote:
> Hello All !
> 
> I get some mystake during compilation zmailer on FreeBSD v 5.3 -
> 
> smtpserver/mxverify.c
> 
> mxverify.c: In function 'sender_dns_verify':
> mxverify.c:706: error: 'EAI_NODATA' undeclared (first use in this function)
> mxverify.c:706: error: (Each undeclared identifier is reported only once
> mxverify.c:706: error: for each function it appears in.)
> *** Error code 1     

These are most strange...
The EAI_NODATA should be present in  <netdb.h>  header file, if it
support IPv6 APIs at all...

Oh..  RFC 3493 has dropped  EAI_NODATA  and so has FreeBSD 5.3, too...
Perhaps it has been an intention of folding the error code into EAI_NONAME?

....

> router/router.c
> 
> making all in router
> gcc -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I.. -I./../libsh
> -I../libsh -I.  -c router.c
> router.c: In function 'sigact_segv':
> router.c:64: error: structure has no member named 'si_utime'
> router.c:64: error: structure has no member named 'si_stime'
> router.c:64: error: union has no member named 'sival_ptr'
> router.c:65: error: structure has no member named 'si_int'
> router.c:65: error: structure has no member named 'si_ptr'
> router.c:66: error: structure has no member named 'si_fd'
> router.c: In function 'sigact_bus':
> router.c:80: error: structure has no member named 'si_utime'
> router.c:80: error: structure has no member named 'si_stime'
> router.c:80: error: union has no member named 'sival_ptr'
> router.c:81: error: structure has no member named 'si_int'
> router.c:81: error: structure has no member named 'si_ptr'
> router.c:82: error: structure has no member named 'si_fd'
> *** Error code 1

Yes. The test code was highly Linux specific, so that error isn't
really a mystery...

....
> /usr/Files/zmailer/router/router.c:339: undefined reference to
> 'SIGNAL_ACTION'
> router.o(.text+0xa38):/usr/Files/zmailer/router/router.c:340: undefined
> reference to 'SIGNAL_ACTION'
> daemonsub.o(.text+0x17ab): In function 'start_child':
> /usr/Files/zmailer/router/daemonsub.c:248: undefined reference to
> 'SIGNAL_ACTION'
> daemonsub.o(.text+0x17b9):/usr/Files/zmailer/router/daemonsub.c:249:
> undefined reference to 'SIGNAL_ACTION'
> *** Error code 1


Yeah right..  Could it be save and possible to prefer POSIX.1 stuff 
in ZMailer's  include/zmsignal.h  file ?  The FreeBSD will likely
handle the sigaction() just fine, but that header matches in order:
  - BSDism ?               Use it!
  - POSIX.1 sigaction() ?  Use it!
  - sigaction w/o SA_INTERRUPT ?  Use it!
  - and finally: "nothing known, presume SVR3"


> Stop in /usr/Files/zmailer/router.
> *** Error code 1
> 
> Stop in /usr/Files/zmailer.
> 
> Bye, bye !
> ==
> Igor S Chencov
> System Administrator

-- 
/Matti Aarnio	<mea@nic.funet.fi>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi