Package: gpsd
Version: 2.13-1
Severity: normal

Hello, 
gpsd is heavily dependent on /etc/protocols file. If that one does not
exist GPSD will not start and will not produce adequate error to correct
the missing file without using strace.

It would be fine if this is noted during the installation of deb
package.

Example:
WarPad:~# gpsd -D1000
gpsd: launching (Version 2.13)
gpsd: Can't get "tcp" protocol entry.
gpsd: startup failed, netlib error -1 
WarPad:~# strace gpsd -D1000
execve("/usr/bin/gpsd", ["gpsd", "-D1000"], [/* 16 vars */]) = 0
uname({sys="Linux", node="WarPad", ...}) = 0
brk(0)                                  = 0x804d000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7fe9000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34306, ...}) = 0
old_mmap(NULL, 34306, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe0000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/libgps.so.5", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\36"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=49200, ...}) = 0
old_mmap(NULL, 52492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7fd3000
old_mmap(0xb7fdf000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xb000) = 0xb7fdf000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360Y\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1253924, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7fd2000
old_mmap(NULL, 1260140, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7e9e000
old_mmap(0xb7fc7000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x129000) = 0xb7fc7000
old_mmap(0xb7fcf000, 10860, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fcf000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnsl.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 <\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=73304, ...}) = 0
old_mmap(NULL, 80544, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7e8a000
old_mmap(0xb7e9b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x11000) = 0xb7e9b000
old_mmap(0xb7e9c000, 6816, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e9c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\00005\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=134464, ...}) = 0
old_mmap(NULL, 136944, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7e68000
old_mmap(0xb7e89000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x20000) = 0xb7e89000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7e67000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e67080,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fe0000, 34306)               = 0
brk(0)                                  = 0x804d000
brk(0x806e000)                          = 0x806e000
brk(0)                                  = 0x806e000
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe8000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7fe8000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34306, ...}) = 0
old_mmap(NULL, 34306, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe0000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libnss_db.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0(\23\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=15316, ...}) = 0
old_mmap(NULL, 18644, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7e62000
old_mmap(0xb7e66000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x3000) = 0xb7e66000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\35"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=34748, ...}) = 0
old_mmap(NULL, 38044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7e58000
old_mmap(0xb7e61000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x8000) = 0xb7e61000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/libdb3.so.3", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\311"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=692456, ...}) = 0
old_mmap(NULL, 696044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xb7dae000
old_mmap(0xb7e57000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xa8000) = 0xb7e57000
close(3)                                = 0
munmap(0xb7fe0000, 34306)               = 0
open("/var/lib/misc/services.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/var/lib/misc/services.db", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/etc/services", O_RDONLY)         = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=16708, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe8000
read(3, "# Network services, Internet sty"..., 4096) = 4096
read(3, "zis\t\t206/udp\nqmtp\t\t209/tcp\t\t\t\t# "..., 4096) = 4096
read(3, "adius\ndatametrics\t1645/udp\told-r"..., 4096) = 4096
close(3)                                = 0
munmap(0xb7fe8000, 4096)                = 0
rt_sigaction(SIGHUP, {0x8048fe0, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8049000, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8049000, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x8049000, [QUIT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
write(2, "gpsd: launching (Version 2.13)\n", 31gpsd: launching (Version
2.13)
) = 31
open("/var/lib/misc/services.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/var/lib/misc/services.db", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/etc/services", O_RDONLY)         = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=16708, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe8000
read(3, "# Network services, Internet sty"..., 4096) = 4096
read(3, "zis\t\t206/udp\nqmtp\t\t209/tcp\t\t\t\t# "..., 4096) = 4096
read(3, "adius\ndatametrics\t1645/udp\told-r"..., 4096) = 4096
close(3)                                = 0
munmap(0xb7fe8000, 4096)                = 0
open("/var/lib/misc/protocols.db", O_RDWR|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/var/lib/misc/protocols.db", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/etc/protocols", O_RDONLY)        = -1 ENOENT (No such file or
directory)
write(2, "gpsd: Can\'t get \"tcp\" protocol e"..., 38gpsd: Can't get
"tcp" protocol entry.
) = 38
write(2, "gpsd: startup failed, netlib err"..., 38gpsd: startup failed,
netlib error -1
) = 38
exit_group(2)                           = ?
WarPad:/etc# cp protocols.orig protocols
WarPad:/etc# gpsd -D 1000
gpsd: launching (Version 2.13)
gpsd: listening on port gpsd
gpsd: Selecting Generic NMEA driver...


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages gpsd depends on:
ii  debconf [debconf-2.0]       1.4.46       Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* gpsd/start_daemon: true
* gpsd/device: /dev/ttyUSB0
* gpsd/daemon_options:
  gpsd/device_needed:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to