Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706080 - net-libs/farstream-0.2.8-r2: fs-enumtypes.c:6:1: error: stray '\' in program
Summary: net-libs/farstream-0.2.8-r2: fs-enumtypes.c:6:1: error: stray '\' in program
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: make-4.3
  Show dependency tree
 
Reported: 2020-01-22 10:25 UTC by Kobboi
Modified: 2020-03-18 11:56 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,80.91 KB, text/plain)
2020-01-22 10:26 UTC, Kobboi
Details
farstream-make43.patch (farstream-make43.patch,1.89 KB, patch)
2020-01-22 11:49 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff
net-libs/farstream-0.2.8-r2 with make-4.3 Patch (net-libs_farstream.patch,1.22 KB, patch)
2020-02-28 03:29 UTC, Phazeus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2020-01-22 10:25:46 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -g -Wno-error=deprecated-declarations -pthread -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -c fs-enumtypes.c  -fPIC -DPIC -o .libs/libfarstream_0.2_la-fs-enumtypes.o
fs-enumtypes.c:6:1: error: stray '\' in program
    6 | \#include "fs-candidate.h"
      | ^
fs-enumtypes.c:6:2: error: stray '#' in program
    6 | \#include "fs-candidate.h"
      |  ^
fs-enumtypes.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
    6 | \#include "fs-candidate.h"
      |           ^~~~~~~~~~~~~~~~
fs-enumtypes.c:7:1: error: stray '\' in program
    7 | \#include "fs-codec.h"
      | ^
fs-enumtypes.c:7:2: error: stray '#' in program
    7 | \#include "fs-codec.h"
      |  ^
fs-enumtypes.c:8:1: error: stray '\' in program
    8 | \#include "fs-participant.h"
      | ^
fs-enumtypes.c:8:2: error: stray '#' in program
    8 | \#include "fs-participant.h"
      |  ^
fs-enumtypes.c:9:1: error: stray '\' in program
    9 | \#include "fs-session.h"
      | ^
fs-enumtypes.c:9:2: error: stray '#' in program
    9 | \#include "fs-session.h"
      |  ^
fs-enumtypes.c:10:1: error: stray '\' in program
   10 | \#include "fs-stream.h"
      | ^
fs-enumtypes.c:10:2: error: stray '#' in program
   10 | \#include "fs-stream.h"
      |  ^
fs-enumtypes.c:11:1: error: stray '\' in program
   11 | \#include "fs-conference.h"
      | ^
fs-enumtypes.c:11:2: error: stray '#' in program
   11 | \#include "fs-conference.h"
      |  ^
fs-enumtypes.c:12:1: error: stray '\' in program
   12 | \#include "fs-utils.h"
      | ^
fs-enumtypes.c:12:2: error: stray '#' in program
   12 | \#include "fs-utils.h"
      |  ^
fs-enumtypes.c: In function 'fs_network_protocol_get_type':
fs-enumtypes.c:39:9: error: 'FS_NETWORK_PROTOCOL_UDP' undeclared (first use in this function)
   39 |       { FS_NETWORK_PROTOCOL_UDP, "FS_NETWORK_PROTOCOL_UDP", "udp" },
      |         ^~~~~~~~~~~~~~~~~~~~~~~
fs-enumtypes.c:39:9: note: each undeclared identifier is reported only once for each function it appears in
fs-enumtypes.c:40:9: error: 'FS_NETWORK_PROTOCOL_TCP' undeclared (first use in this function)
   40 |       { FS_NETWORK_PROTOCOL_TCP, "FS_NETWORK_PROTOCOL_TCP", "tcp" },
      |         ^~~~~~~~~~~~~~~~~~~~~~~
fs-enumtypes.c:41:9: error: 'FS_NETWORK_PROTOCOL_TCP_PASSIVE' undeclared (first use in this function)
   41 |       { FS_NETWORK_PROTOCOL_TCP_PASSIVE, "FS_NETWORK_PROTOCOL_TCP_PASSIVE", "tcp-passive" },
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs-enumtypes.c:42:9: error: 'FS_NETWORK_PROTOCOL_TCP_ACTIVE' undeclared (first use in this function)
   42 |       { FS_NETWORK_PROTOCOL_TCP_ACTIVE, "FS_NETWORK_PROTOCOL_TCP_ACTIVE", "tcp-active" },
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs-enumtypes.c:43:9: error: 'FS_NETWORK_PROTOCOL_TCP_SO' undeclared (first use in this function)
   43 |       { FS_NETWORK_PROTOCOL_TCP_SO, "FS_NETWORK_PROTOCOL_TCP_SO", "tcp-so" },
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs-enumtypes.c: In function 'fs_component_type_get_type':
fs-enumtypes.c:57:9: error: 'FS_COMPONENT_NONE' undeclared (first use in this function)
   57 |       { FS_COMPONENT_NONE, "FS_COMPONENT_NONE", "none" },
      |         ^~~~~~~~~~~~~~~~~


Reproducible: Always
Comment 1 Kobboi 2020-01-22 10:26:19 UTC
Again the same error with make-4.3
Comment 2 Kobboi 2020-01-22 10:26:43 UTC
Created attachment 603944 [details]
build.log
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-01-22 11:49:32 UTC
Created attachment 603946 [details, diff]
farstream-make43.patch

Possible fix. Please submit to upstream if possible.
Comment 4 Bernd Feige 2020-02-22 08:02:37 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #3)
> Created attachment 603946 [details, diff] [details, diff]
> farstream-make43.patch
> 
> Possible fix. Please submit to upstream if possible.

Thanks for the diff - however, it doesn't apply here, as farstream/Makefile.am doesn't contain the patched line (net-libs/farstream-0.2.8-r2).
Also, when using only the patch to common-modified/gst-glib-gen.mak, the merge fails because aclocal should be run, and when I do run it (aclocal-1-16 here) I get :

configure.ac:18: error: possibly undefined macro: AS_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:21: error: possibly undefined macro: AS_NANO
configure.ac:59: error: possibly undefined macro: AS_LIBTOOL
configure.ac:75: error: possibly undefined macro: AS_AUTOTOOLS_ALTERNATE
configure.ac:104: error: possibly undefined macro: AS_AC_EXPAND
configure.ac:204: error: possibly undefined macro: AS_PATH_PYTHON
Comment 5 Dennis Schridde 2020-02-23 16:59:36 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #3)
> Created attachment 603946 [details, diff] [details, diff]
> farstream-make43.patch
> 
> Possible fix. Please submit to upstream if possible.

done: https://gitlab.freedesktop.org/farstream/farstream/issues/17

Based on your patch I created one for 0.2.8-r2, which solves the issue for me: https://github.com/devurandom/gentoo-overlay/commit/b3e7763b81fb580d895ad721c7e8eee28e3b0697
Comment 6 Bernd Feige 2020-02-26 06:44:14 UTC
(In reply to Dennis Schridde from comment #5)
> (In reply to Lars Wendler (Polynomial-C) from comment #3)
> > Created attachment 603946 [details, diff] [details, diff] [details, diff]
> > farstream-make43.patch
> > 
> > Possible fix. Please submit to upstream if possible.
> 
> done: https://gitlab.freedesktop.org/farstream/farstream/issues/17
> 
> Based on your patch I created one for 0.2.8-r2, which solves the issue for
> me:
> https://github.com/devurandom/gentoo-overlay/commit/
> b3e7763b81fb580d895ad721c7e8eee28e3b0697

Works nicely here, thanks!
Comment 7 Phazeus 2020-02-28 03:29:29 UTC
Created attachment 616408 [details, diff]
net-libs/farstream-0.2.8-r2 with make-4.3 Patch
Comment 8 Ștefan Talpalaru 2020-03-06 16:41:11 UTC
A patched farstream-0.2.8-r3 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 9 Larry the Git Cow gentoo-dev 2020-03-18 11:56:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e04eab18475790eb27332c2890798821134927fb

commit e04eab18475790eb27332c2890798821134927fb
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-03-18 11:56:10 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-03-18 11:56:10 +0000

    net-libs/farstream: Fix for >=make-4.3
    
    Closes: https://bugs.gentoo.org/706080
    Package-Manager: Portage-2.3.94, Repoman-2.3.21
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-libs/farstream/farstream-0.2.8-r2.ebuild       |  4 ++
 .../farstream/files/farstream-0.2.8-make43.patch   | 60 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)