Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#52388 closed defect (fixed)

cvs-fast-export: error on 10.12: typedef redefinition with different types ('int' vs 'enum clockid_t')

Reported by: mojca (Mojca Miklavec) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: cvs-fast-export

Description (last modified by mojca (Mojca Miklavec))

On 10.12 cvs-fast-export fails to build with

/usr/bin/clang -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-unused-function -Wno-unused-label -Wno-format-zero-length -pthread -O3  -I. -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cvs-fast-export/cvs-fast-export/work/cvs-fast-export-1.40/ -DVERSION=\"1.40\" -DTHREADS -DREDBLACK  -DUSE_MMAP  -DLINESTATS  -DTREEPACK  -Drestrict=__restrict__  -c -o cvsutil.o cvsutil.c
In file included from main.c:6:
./cvs.h:437:13: error: typedef redefinition with different types ('int' vs 'enum clockid_t')
typedef int clockid_t;
            ^
/usr/include/time.h:171:3: note: previous definition is here
} clockid_t;
  ^

I'm misusing this ticket also for a strange destroot error:

/opt/local/bin/a2x --doctype manpage --format manpage cvssync.asc
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/opt/local/etc/asciidoc/docbook-xsl/manpage.xsl" "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cvs-fast-export/cvs-fast-export/work/cvs-fast-export-1.40/cvssync.xml" returned non-zero exit status 5

from 10.6 10.7 10.9 10.10 10.11. It worked on 10.8. That deserves a separate ticket at some point.

Change History (5)

comment:1 Changed 4 years ago by mojca (Mojca Miklavec)

Description: modified (diff)

comment:2 Changed 4 years ago by mojca (Mojca Miklavec)

Description: modified (diff)

comment:3 in reply to:  description Changed 4 years ago by ryandesign (Ryan Schmidt)

Replying to mojca:

On 10.12 cvs-fast-export fails to build with

/usr/bin/clang -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-unused-function -Wno-unused-label -Wno-format-zero-length -pthread -O3  -I. -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cvs-fast-export/cvs-fast-export/work/cvs-fast-export-1.40/ -DVERSION=\"1.40\" -DTHREADS -DREDBLACK  -DUSE_MMAP  -DLINESTATS  -DTREEPACK  -Drestrict=__restrict__  -c -o cvsutil.o cvsutil.c
In file included from main.c:6:
./cvs.h:437:13: error: typedef redefinition with different types ('int' vs 'enum clockid_t')
typedef int clockid_t;
            ^
/usr/include/time.h:171:3: note: previous definition is here
} clockid_t;
  ^

https://gitlab.com/esr/cvs-fast-export/issues/17

I'm misusing this ticket also for a strange destroot error:

/opt/local/bin/a2x --doctype manpage --format manpage cvssync.asc
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/opt/local/etc/asciidoc/docbook-xsl/manpage.xsl" "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cvs-fast-export/cvs-fast-export/work/cvs-fast-export-1.40/cvssync.xml" returned non-zero exit status 5

from 10.6 10.7 10.9 10.10 10.11. It worked on 10.8. That deserves a separate ticket at some point.

#53943

comment:4 Changed 4 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

In 898ee2781b27a4e60f2f16366f46eb8b60316a47/macports-ports:

cvs-fast-export: Fix build failure on Sierra

Closes: #52388

comment:5 Changed 4 years ago by mojca (Mojca Miklavec)

Thanks a lot for fixing this. I reported it upstream, but only via a private mail that was apparently lost. I didn't know that issue tracker existed.

Note: See TracTickets for help on using tickets.