[Bug 4994] New: Compiler error when building ntpd without NTPD_SERVER

bugzilla at busybox.net bugzilla at busybox.net
Wed Mar 28 13:59:44 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4994

           Summary: Compiler error when building ntpd without NTPD_SERVER
           Product: Busybox
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Networking
        AssignedTo: unassigned at busybox.net
        ReportedBy: christian.kaestner at uni-marburg.de
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Affects the current development version since commit 97e52816:

When compiling any configuration with CONFIG_NTPD and without
CONFIG_FEATURE_NTPD_SERVER, the compiler issues an error:

  CC      networking/ntpd.o
networking/ntpd.c: In function ntpd_main:
networking/ntpd.c:2128:44: error: struct globals has no member named listen_fd


The problem is member listen_fd of struct globals, which is only defined if
CONFIG_FEATURE_NTPD_SERVER is selected, but it is referenced in all
configurations in line 2128. Instead of an if, there probably should be an #if,
but the code is to complicated for me to suggest a proper patch.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list