Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900891 - sci-geosciences/gpsd-3.25 - libgps_core.c:(.text+<snip>): undefined reference to gps_unpack
Summary: sci-geosciences/gpsd-3.25 - libgps_core.c:(.text+<snip>): undefined reference...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
Depends on:
Blocks: 904597
  Show dependency tree
Reported: 2023-03-11 19:38 UTC by Toralf Förster
Modified: 2023-05-24 19:42 UTC (History)
2 users (show)

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

emerge-info.txt (emerge-info.txt,19.45 KB, text/plain)
2023-03-11 19:38 UTC, Toralf Förster
emerge-history.txt.bz2 (emerge-history.txt.bz2,70.73 KB, application/x-bzip)
2023-03-11 19:38 UTC, Toralf Förster
environment (environment,150.40 KB, text/plain)
2023-03-11 19:39 UTC, Toralf Förster
etc.clang.tar.bz2 (etc.clang.tar.bz2,697 bytes, application/x-bzip)
2023-03-11 19:39 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.53 KB, application/x-bzip)
2023-03-11 19:39 UTC, Toralf Förster
sci-geosciences:gpsd-3.25:20230311-190825.log (sci-geosciences:gpsd-3.25:20230311-190825.log,33.08 KB, text/plain)
2023-03-11 19:39 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,37.07 KB, application/x-bzip)
2023-03-11 19:39 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-03-11 19:38:56 UTC
too long lines were shrinked:

ar rc gpsd-3.25/libgps_static.a gpsd-3.25/libgps/ais_json.o gpsd-3.25/libgps/bits.o gpsd-3.25/libgps/gpsdclient.o gpsd-3.25/libgps/gps_maskdump.o gpsd-3.25/libgps/gpsutils.o gpsd-3.25/libgps/hex.o gpsd-3.25/libgps/json.o gpsd-3.25/libgps/libgps_core.o gpsd-3.25/libgps/libgps_dbus.o gpsd-3.25/libgps/
x86_64-pc-linux-gnu-gcc -o gpsd-3.25/drivers/driver_evermore.o -c -pipe -march=native -fno-diagnostics-color -O2 -pthread -Wall -Wextra -fexcess-precision=standard -Wcast-align -Wcast-qual -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uniniti
ranlib gpsd-3.25/libgps_static.a
x86_64-pc-linux-gnu-gcc -o gpsd-3.25/drivers/driver_garmin.o -c -pipe -march=native -fno-diagnostics-color -O2 -pthread -Wall -Wextra -fexcess-precision=standard -Wcast-align -Wcast-qual -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uninitial
x86_64-pc-linux-gnu-gcc -o gpsd-3.25/clients/gps2udp -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pthread gpsd-3.25/clients/gps2udp.o -Lgpsd-3.25 gpsd-3.25/libgps_static.a -lm -lrt -lnsl -ldbus-1
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: gpsd-3.25/libgps_static.a(libgps_core.o): in function `gps_read':
libgps_core.c:(.text+0x4a8): undefined reference to `gps_unpack'
collect2: error: ld returned 1 exit status
scons: *** [gpsd-3.25/clients/gps2udp] Error 1


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j5-20230308-120020


gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
Python 3.10.10
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 6f003436ee81131731e1aa3ac975bf9be0b364b3
Author: Repository mirror & CI <>
Date:   Sat Mar 11 17:46:50 2023 +0000

    2023-03-11 17:46:49 UTC

emerge -qpvO sci-geosciences/gpsd
[ebuild  N    ] sci-geosciences/gpsd-3.25  USE="bluetooth cxx dbus ipv6 python shm udev usb -X -debug -latency-timing -ncurses -ntp -qt5 -sockets -static -systemd -test" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar gpsclock greis isync itrax navcom nmea2000 oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox" PYTHON_TARGETS="python3_10 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2023-03-11 19:38:57 UTC
Created attachment 857309 [details]
Comment 2 Toralf Förster gentoo-dev 2023-03-11 19:38:58 UTC
Created attachment 857311 [details]
Comment 3 Toralf Förster gentoo-dev 2023-03-11 19:39:00 UTC
Created attachment 857313 [details]
Comment 4 Toralf Förster gentoo-dev 2023-03-11 19:39:01 UTC
Created attachment 857315 [details]
Comment 5 Toralf Förster gentoo-dev 2023-03-11 19:39:02 UTC
Created attachment 857317 [details]
Comment 6 Toralf Förster gentoo-dev 2023-03-11 19:39:03 UTC
The file size of ./files/logs.tar.bz2 is too big (1.5M) for an upload. For about 8 weeks the link is valid.
Comment 7 Toralf Förster gentoo-dev 2023-03-11 19:39:04 UTC
Created attachment 857319 [details]
Comment 8 Toralf Förster gentoo-dev 2023-03-11 19:39:05 UTC
Created attachment 857321 [details]
Comment 9 klz 2023-05-24 19:42:56 UTC
i had the same issue: 
<snip/>lude/libusb-1.0 gpsd-3.25/gpsd/crc24q.c
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: gpsd-3.25/libgps_static.a(libgps_core.o): in function `gps_read':
libgps_core.c:(.text+0x3fa): undefined reference to `gps_unpack'

however after adding useflag "sockets" gpsd-3.25 would compile.