#760387 dvi2ps: FTBFS with clang instead of gcc

Package:
dvi2ps
Source:
dvi2ps
Description:
TeX DVI-driver for NTT JTeX, MulTeX and ASCII pTeX
Submitter:
Nicolas Sévelin-Radiguet
Date:
2025-03-31 22:09:01 UTC
Severity:
minor
Tags:
#760387#5
Date:
2014-09-03 14:37:27 UTC
From:
To:
Dear Maintainer,

Your package fails to build with clang instead of gcc. [-Wreturn-type]
The attached patch fixes it.
Buildlogs and patch are here:
https://github.com/nonas/debian-clang/tree/master/buildlogs/dvi2ps

Regards,
Nicolas

#760387#10
Date:
2025-03-28 22:09:26 UTC
From:
To:
On 03.09.14 Nicolas Sévelin-Radiguet (nicosr@free.fr) wrote:

Hello Nicolas,

sorry, late response!
While working on recovering the dvi2ps package we tried to apply your
patch, but noticed that it does not compile using GGC 14 after
application. Is the request still valid?

Hilmar

#760387#15
Date:
2025-03-30 15:50:35 UTC
From:
To:
Hi,

No idea, it has been a while.
As long as it builds fine for both GCC and clang, I do not care.

Unfortunately, I do not plan to spend time on updating this patch. You
can discard it if it helps.

Cheers,
Nicolas

#760387#20
Date:
2025-03-31 22:00:03 UTC
From:
To:

#760387#25
Date:
2025-03-31 22:00:03 UTC
From:
To:

#760387#30
Date:
2025-03-31 22:05:40 UTC
From:
To:
On 03.09.14 Nicolas Sévelin-Radiguet (nicosr@free.fr) wrote:

Hello,

Unfortunately the patch breaks the build with gcc 14, hence I remove
the tag patch and add tag help. When trying to build the upcoming
version dvi2ps_5.1j-2 using clang 19 it still fails, but one gets a
different message e.g.:

dviconv.c:256:6: error: conflicting types for 'setdir'
  256 | void setdir(d)
      |      ^

gcc spits the same message, but there it is just a warning.

The bug report is still valid.

Hilmar