[BRLTTY] Can't compile brltty

Mario Lang mlang at delysid.org
Wed Mar 5 05:09:48 EST 2008


"mrkiko.rs at gmail.com" <mrkiko.rs at gmail.com> writes:


[...]

> ../autogen && ./configure --disable-relocatable-install \
> --disable-table-selection --disable-contracted-braille \
> --enable-beeper-support --disable-midi-support --disable-fm-support \
> --disable-pm-configfile --disable-api --enable-standalone-programs \
                          ^^^^^^^^^^^^^

[...]

> gcc -Wall -g -O2 -I. -I. -I./../Programs -I../Programs -I./.. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -DHAVE_CONFIG_H -fPIC -c ./brlapi_client.c
> ar rc libbrlapi.a brlapi_client.o
> ranlib libbrlapi.a
> gcc -Wall -static -Wl,-export-dynamic -o tbltest tbltest.o program.o options.o misc.o io_misc.o queue.o async.o keyboard.o sys_linux.o lock.o charset.o tbl.o tbl_native.o tbl_gnome.o -ldl -lpthread -lsupc++  -L. -lbrlapi -lncurses 
> ../libbrlapi.a(brlapi_client.o): In function `tryHost':
> /home/mrkiko/src/brltty/Programs/./brlapi_client.c:468: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> ../libbrlapi.a(brlapi_client.o): In function `brlapi__waitForPacket':
> brlapi_client.c:(.text+0x136e): undefined reference to `sem_init'
> brlapi_client.c:(.text+0x1387): undefined reference to `sem_wait'
> brlapi_client.c:(.text+0x138f): undefined reference to `sem_destroy'
> brlapi_client.c:(.text+0x15ba): undefined reference to `sem_post'
> brlapi_client.c:(.text+0x16dd): undefined reference to `sem_post'
> ../libbrlapi.a(brlapi_client.o): In function `brlapi__openConnection':
> brlapi_client.c:(.text+0x289f): undefined reference to `pthread_mutexattr_init'
> brlapi_client.c:(.text+0x28c9): undefined reference to `pthread_mutex_init'
> brlapi_client.c:(.text+0x28d8): undefined reference to `pthread_mutex_init'
> brlapi_client.c:(.text+0x28e7): undefined reference to `pthread_mutex_init'
> brlapi_client.c:(.text+0x28f6): undefined reference to `pthread_mutex_init'
> brlapi_client.c:(.text+0x2948): undefined reference to `pthread_mutex_init'
> ../libbrlapi.a(brlapi_client.o):brlapi_client.c:(.text+0x29a6): more undefined references to `pthread_mutex_init' follow
> collect2: ld returned 1 exit status

So it looks as if --disable-api is broken due to the newly
added api-usage in tbltest.c.

-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang at db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>


More information about the BRLTTY mailing list