Package Details: ptpd 2.3.1-2

Git Clone URL: https://aur.archlinux.org/ptpd.git (read-only, click to copy)
Package Base: ptpd
Description: The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as defined by the relevant IEEE 1588 standard. PTP Version 2 implements IEEE-1588-2008. PTP was developed to provide very precise time coordination of LAN connected computers.
Upstream URL: https://github.com/ptpd/ptpd
Licenses: BSD
Provides: ptpd
Submitter: gin078
Maintainer: gin078
Last Packager: gin078
Votes: 4
Popularity: 0.000045
First Submitted: 2015-11-08 16:58 (UTC)
Last Updated: 2020-05-18 13:49 (UTC)

Latest Comments

micwoj92 commented on 2022-07-27 01:22 (UTC)

Oh, I see it was already reported, in that case you should apply that patch so this package here build, it's task of maintainer...

micwoj92 commented on 2022-07-27 01:21 (UTC)

build fails

In file included from /usr/include/net-snmp/library/scapi.h:14,
                 from /usr/include/net-snmp/snmpv3_api.h:29,
                 from /usr/include/net-snmp/net-snmp-includes.h:35,
                 from dep/snmp.c:40:
/usr/include/openssl/ossl_typ.h:92:30: error: conflicting types for ‘EVP_MD_CTX’; have ‘struct evp_md_ctx_st’
   92 | typedef struct evp_md_ctx_st EVP_MD_CTX;
      |                              ^~~~~~~~~~
In file included from dep/../ptpd.h:153,
                 from dep/snmp.c:37:
dep/../dep/ntpengine/ntp_isc_md5.h:83:41: note: previous declaration of ‘EVP_MD_CTX’ with type ‘EVP_MD_CTX’ {aka ‘isc_md5_t’}
   83 |   typedef MD5_CTX                       EVP_MD_CTX;
      |                                         ^~~~~~~~~~
dep/snmp.c: In function ‘snmpScalars’:
dep/snmp.c:224:16: error: unknown type name ‘U64’
  224 |         static U64 counter64_ret;               \
      |                ^~~
dep/snmp.c:283:5: note: in expansion of macro ‘SNMP_LOCAL_VARIABLES’
  283 |     SNMP_LOCAL_VARIABLES;
      |     ^~~~~~~~~~~~~~~~~~~~
dep/snmp.c: In function ‘snmpSystemTable’:
dep/snmp.c:224:16: error: unknown type name ‘U64’
  224 |         static U64 counter64_ret;               \
      |                ^~~
dep/snmp.c:302:9: note: in expansion of macro ‘SNMP_LOCAL_VARIABLES’
  302 |         SNMP_LOCAL_VARIABLES;
      |         ^~~~~~~~~~~~~~~~~~~~
dep/snmp.c: In function ‘snmpSystemDomainTable’:
dep/snmp.c:224:16: error: unknown type name ‘U64’
  224 |         static U64 counter64_ret;               \
      |                ^~~
dep/snmp.c:326:9: note: in expansion of macro ‘SNMP_LOCAL_VARIABLES’
  326 |         SNMP_LOCAL_VARIABLES;
      |         ^~~~~~~~~~~~~~~~~~~~
dep/snmp.c: In function ‘snmpClockDSTable’:
dep/snmp.c:224:16: error: unknown type name ‘U64’
  224 |         static U64 counter64_ret;               \
      |                ^~~
dep/snmp.c:350:9: note: in expansion of macro ‘SNMP_LOCAL_VARIABLES’
  350 |         SNMP_LOCAL_VARIABLES;
      |         ^~~~~~~~~~~~~~~~~~~~
dep/snmp.c:254:24: error: request for member ‘low’ in something not a structure or union
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                        ^
dep/snmp.c:366:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  366 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->offsetFromMaster);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:24: error: request for member ‘high’ in something not a structure or union
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                        ^
dep/snmp.c:366:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  366 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->offsetFromMaster);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:254:48: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                                                ^
dep/snmp.c:366:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  366 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->offsetFromMaster);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:49: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                                                 ^
dep/snmp.c:366:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  366 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->offsetFromMaster);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:254:24: error: request for member ‘low’ in something not a structure or union
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                        ^
dep/snmp.c:368:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  368 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->meanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:24: error: request for member ‘high’ in something not a structure or union
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                        ^
dep/snmp.c:368:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  368 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->meanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:254:48: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                                                ^
dep/snmp.c:368:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  368 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->meanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:49: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                                                 ^
dep/snmp.c:368:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  368 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->meanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c: In function ‘snmpClockPortTable’:
dep/snmp.c:224:16: error: unknown type name ‘U64’
  224 |         static U64 counter64_ret;               \
      |                ^~~
dep/snmp.c:438:9: note: in expansion of macro ‘SNMP_LOCAL_VARIABLES’
  438 |         SNMP_LOCAL_VARIABLES;
      |         ^~~~~~~~~~~~~~~~~~~~
dep/snmp.c:254:24: error: request for member ‘low’ in something not a structure or union
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                        ^
dep/snmp.c:504:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  504 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->peerMeanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:24: error: request for member ‘high’ in something not a structure or union
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                        ^
dep/snmp.c:504:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  504 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->peerMeanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:254:48: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  254 |           counter64_ret.low = htonl(bigint.lsb),        \
      |                                                ^
dep/snmp.c:504:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  504 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->peerMeanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:255:49: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  255 |           counter64_ret.high = htonl(bigint.msb),       \
      |                                                 ^
dep/snmp.c:504:24: note: in expansion of macro ‘SNMP_TIMEINTERNAL’
  504 |                 return SNMP_TIMEINTERNAL(snmpPtpClock->peerMeanPathDelay);
      |                        ^~~~~~~~~~~~~~~~~
dep/snmp.c:247:24: error: request for member ‘low’ in something not a structure or union
  247 |         ( counter64_ret.low = (V) & 0xffffffff, \
      |                        ^
dep/snmp.c:535:24: note: in expansion of macro ‘SNMP_COUNTER64’
  535 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.receivedPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:248:24: error: request for member ‘high’ in something not a structure or union
  248 |           counter64_ret.high = (V) >> 32,       \
      |                        ^
dep/snmp.c:535:24: note: in expansion of macro ‘SNMP_COUNTER64’
  535 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.receivedPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:247:47: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  247 |         ( counter64_ret.low = (V) & 0xffffffff, \
      |                                               ^
dep/snmp.c:535:24: note: in expansion of macro ‘SNMP_COUNTER64’
  535 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.receivedPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:248:41: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  248 |           counter64_ret.high = (V) >> 32,       \
      |                                         ^
dep/snmp.c:535:24: note: in expansion of macro ‘SNMP_COUNTER64’
  535 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.receivedPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:247:24: error: request for member ‘low’ in something not a structure or union
  247 |         ( counter64_ret.low = (V) & 0xffffffff, \
      |                        ^
dep/snmp.c:537:24: note: in expansion of macro ‘SNMP_COUNTER64’
  537 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.sentPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:248:24: error: request for member ‘high’ in something not a structure or union
  248 |           counter64_ret.high = (V) >> 32,       \
      |                        ^
dep/snmp.c:537:24: note: in expansion of macro ‘SNMP_COUNTER64’
  537 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.sentPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:247:47: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  247 |         ( counter64_ret.low = (V) & 0xffffffff, \
      |                                               ^
dep/snmp.c:537:24: note: in expansion of macro ‘SNMP_COUNTER64’
  537 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.sentPacketsTotal);
      |                        ^~~~~~~~~~~~~~
dep/snmp.c:248:41: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  248 |           counter64_ret.high = (V) >> 32,       \
      |                                         ^
dep/snmp.c:537:24: note: in expansion of macro ‘SNMP_COUNTER64’
  537 |                 return SNMP_COUNTER64(snmpPtpClock->netPath.sentPacketsTotal);
      |                        ^~~~~~~~~~~~~~
make[2]: *** [Makefile:629: dep/snmp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

gin078 commented on 2017-03-26 18:55 (UTC)

Looks like that compile error was fixed in https://github.com/ptpd/ptpd/pull/26, which was merged after the latest release (2.3.1). Building from git should be sufficient (https://aur.archlinux.org/packages/ptpd-git/).

hakunamenta commented on 2017-03-26 17:25 (UTC)

i get a compile error because of a missing type: dep/snmp.c: In Funktion »snmpScalars«: dep/snmp.c:224:9: Fehler: unbekannter Typname: »U64« static U64 counter64_ret; \ it seems that the net-snmp version (5.7.3-3) current in arch is not compatible with this source code. Please either patch the types or upgrade the PKGBUILD to a newer version of ptpd that supports a current net-snmp. Btw: this is not an optional dependency: libtool: link: gcc -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o ptpd2 arith.o bmc.o dep/ipv4_acl.o dep/msg.o dep/net.o dep/eventtimer.o ptp_timers.o dep/servo.o dep/iniparser/dictionary.o dep/iniparser/iniparser.o dep/daemonconfig.o dep/startup.o dep/sys.o display.o management.o signaling.o protocol.o dep/ntpengine/ntp_isc_md5.o dep/ntpengine/ntpdcontrol.o timingdomain.o ptpd.o dep/statistics.o dep/outlierfilter.o dep/eventtimer_posix.o -L/usr/lib -lpcap -lrt -lm dep/startup.o: In function `ptpdShutdown': startup.c:(.text+0x933): undefined reference to `snmpShutdown' dep/startup.o: In function `ptpdStartup': startup.c:(.text+0x1127): undefined reference to `snmpInit' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:590: ptpd2] Fehler 1

hakunamenta commented on 2017-03-23 16:48 (UTC)

the dependency on net-snmp is missing.