Date: Mon, 18 Mar 2019 18:02:18 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: multimedia@freebsd.org, Thomas Zander <riggs@freebsd.org> Subject: Porting current version of avidmux Message-ID: <CAN6yY1uEHPyHGubac5ru7UF3FjOY0dt07uYXbKNNQyEyG_Ye_w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
As avidemux-qr4 had been removed from ports along with the rest of the ports that depend on qr4, I am working on porting the latest release of avidemux which uses qt5 for its GUI. I have made a fair bit of progress, but I am really not a programmer and have hit what seems like a trivial issue, but have failed to figure out the problem and am looking for some guidance. static __sighandler_t oldSignalHandlerSigInt; static __sighandler_t oldSignalHandlerSigSev; void sig_segfault_handler(int signo); void sig_sigint_handler(int signo); void installSigHandler(void) { oldSignalHandlerSigSev=signal(SIGSEGV, sig_segfault_handler); // show stacktrace on default oldSignalHandlerSigInt=signal(SIGINT, sig_sigint_handler); // show stacktrace on default } I converted the sighandler_t in the code to __sighandler_t, which fixed errors on the typedefs, but get this on the assignments: /home/oberman/avidemux_2.7.1/avidemux_core/ADM_core/src/ADM_crashdump_unix.cpp:63:27: error: non-object type '__sighandler_t' (aka 'void (int)') is not assignable oldSignalHandlerSigSev=signal(SIGSEGV, sig_segfault_handler); // show stacktrace on default Would anyone be able to help out so this very useful port can be restored? I do know that there are differences between Linux and BSD sighandler. BTW, the name of the application is terrible as it is no longer AVI specific nor just a demultiplexer. It supports most popular video multiplexers. It is a simple, light-weight GUI based video editor/converter. Anybody willing to lend a hand? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uEHPyHGubac5ru7UF3FjOY0dt07uYXbKNNQyEyG_Ye_w>