Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529450 - sci-geosciences/gpsd-9999 fails to build
Summary: sci-geosciences/gpsd-9999 fails to build
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-11-16 10:27 UTC by Michal Privoznik
Modified: 2014-11-16 17:32 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,5.08 KB, application/x-info)
2014-11-16 10:27 UTC, Michal Privoznik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Privoznik 2014-11-16 10:27:00 UTC
Created attachment 389478 [details]
emerge --info

I'm encountering the following problem when trying to build gpsd-9999:

MAKEOPTS="-j1" ebuild /usr/portage/sci-geosciences/gpsd/gpsd-9999.ebuild compile

<snip/>

x86_64-pc-linux-gnu-g++ -o gps_maskdump-qt.os -c -O2 -pipe -march=native -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -pthread -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include gps_maskdump.c
x86_64-pc-linux-gnu-g++ -o hex-qt.os -c -O2 -pipe -march=native -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -pthread -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include hex.c
x86_64-pc-linux-gnu-gcc -o json-qt.os -c -O2 -pipe -march=native -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -pthread -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include json.c
x86_64-pc-linux-gnu-g++ -o libgps_core-qt.os -c -O2 -pipe -march=native -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -pthread -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include libgps_core.c
In file included from libgps_core.c:19:0:
gps_json.h:41:28: error: conflicting declaration of 'int json_ais_read(const char*, char*, size_t, ais_t*, const char**)' with 'C' linkage
     /*@null@*/const char **);
                            ^
In file included from libgps_core.c:18:0:
libgps.h:34:12: note: previous declaration with 'C++' linkage
 extern int json_ais_read(const char *, char *, size_t, struct ais_t *,
            ^
scons: *** [libgps_core-qt.os] Error 1
scons: building terminated because of errors.
 * ERROR: sci-geosciences/gpsd-9999::gentoo failed (compile phase):
 *   escons failed.
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4960:  Called escons
 *   environment, line 2132:  Called die
 * The specific snippet of code:
 *       [[ ${ret} -ne 0 ]] && has "${EAPI:-0}" 4 5 && die "escons failed.";
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/gpsd-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/gpsd-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/gpsd-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/gpsd-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-geosciences/gpsd-9999/work/gpsd-9999'
 * S: '/var/tmp/portage/sci-geosciences/gpsd-9999/work/gpsd-9999'

I've reported the issue and proposed a patch on the gpsd-dev list a while ago, but unfortunately recieved no answer:

http://lists.nongnu.org/archive/html/gpsd-dev/2014-10/msg00009.html
Comment 1 SpanKY gentoo-dev 2014-11-16 17:32:48 UTC
well, it's an ebuild that builds live upstream code, so if upstream's code is broken, the answer is to go through them.  we don't carry patches in live vcs ebuilds to fix their problems because we aren't upstream.