[BRLTTY] Problem compiling brltty under MingW

Lars Bjørndal lars.bjorndal at broadpark.no
Fri Nov 11 09:50:14 EST 2005


On fre, nov 11, 2005 at 03:22:54 +0100, Samuel Thibault wrote:
> That needs to be make > text.txt 2>&1 because else 2>&1 is actually
> useless.

Thanks a lot!

Her is the output, first from ./configure, and then for make:

> Note: update to latest svn revision, and remember to re-run
  ./configure.

That's done yesterday evening.


>From 'configure': ./configure --disable-speech-support
--with-braille-driver=ht,-all --with-text-table=no-h

configure: loading site script /etc/config.site
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing __cxa_pure_virtual... -lsupc++
checking if the C compiler can compile C++... yes
checking whether we are using the GNU C++ compiler... yes
checking whether gcc accepts -g... yes
checking for ld... ld
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for gawk... gawk
checking whether ln -s works... yes
checking for a BSD-compatible install... /bin/install -c
checking for make relocatable object command... $(LD) -r -o
checking for loadable module creation command... $(CC) -shared  -o
checking for dynamic library creation command... $(CC) -shared -Wl,--out-implib,implib.a,-soname,<name> -o
checking for configure shared object directory command... :
checking if DLL ws2_32 can be loaded... yes
checking for main in -lws2_32... yes
checking if DLL msvcp60 can be loaded... yes
checking for main in -lmsvcp60... yes
checking if DLL winmm can be loaded... yes
checking for main in -lwinmm... yes
checking if function CreateNamedPipe exists and works... yes
checking if function GetConsoleWindow in DLL kernel32 exists... yes
checking if function AttachConsole in DLL kernel32 exists... yes
checking if function ReadConsoleOutputCharacterW exists and works... yes
checking if DLL ntdll can be loaded... yes
checking for main in -lntdll... yes
checking how to run the C preprocessor... gcc -Wall -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for main in -lintl... yes
checking if pthreads are available... yes
checking which curses package to use... checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking for ncurses.h... (cached) no
checking curses.h usability... no
checking curses.h presence... no
checking for curses.h... no

checking for X... no
checking alloca.h usability... no
checking alloca.h presence... no
checking for alloca.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking glob.h usability... no
checking glob.h presence... no
checking for glob.h... no
checking regex.h usability... no
checking regex.h presence... no
checking for regex.h... no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/wait.h usability... no
checking sys/wait.h presence... no
checking for sys/wait.h... no
checking pwd.h usability... no
checking pwd.h presence... no
checking for pwd.h... no
checking grp.h usability... no
checking grp.h presence... no
checking for grp.h... no
checking sys/io.h usability... no
checking sys/io.h presence... no
checking for sys/io.h... no
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking machine/speaker.h usability... no
checking machine/speaker.h presence... no
checking for machine/speaker.h... no
checking linux/vt.h usability... no
checking linux/vt.h presence... no
checking for linux/vt.h... no
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
checking for fchdir... no
checking for fchmod... no
checking for getopt_long... yes
checking for hstrerror... no
checking for realpath... no
checking for shmget... no
checking for shm_open... no
checking for sigaction... no
checking for vsyslog... no
checking if function getaddrinfo in DLL ws2_32 exists... yes
checking if function getnameinfo in DLL ws2_32 exists... yes
checking for gai_strerror... no
checking for key_t... no
checking size of key_t... 0
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking if the compiler understands the __alignof__ operator... yes
checking if the compiler understands __attribute__((format(printf)))... yes
checking if the compiler understands __attribute__((packed))... yes
checking if the compiler understands __attribute__((unused))... yes
checking for system-dependent compilation flags... 
checking for c compiler yacc source flags... -Wno-parentheses -Wno-unused -Wno-uninitialized -Wno-unknown-pragmas
checking for c compiler shared object flags... 
checking for c++ compiler shared object flags... -fPIC
checking for static archive extension... a
checking for shared object run-time search path environment variable... LD_LIBRARY_PATH
checking for linkage editor program creation flags... -export-dynamic -rpath ${exec_prefix}/lib/brltty --enable-auto-import
checking for static linkage flag... -static
checking for library containing dlopen... no
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
configure: WARNING: no USB support on mingw32
configure: WARNING: no bluetooth support on mingw32
configure: WARNING: Libbraille package not found: /usr /usr/local /usr/local/Libbraille /usr/local/libbraille /opt/Libbraille /opt/libbraille
checking for device directory... 
checking for first serial device... COM1
./configure: pkg-config: command not found
configure: creating ./config.status
config.status: creating config.mk
config.status: creating brltty.spec
config.status: creating brltty.lsm
config.status: creating Programs/brltty-config
config.status: creating Documents/brltty.conf
config.status: creating Documents/brltty.1
config.status: creating Documents/BrlAPIref.doxy
config.status: creating BrailleDrivers/Voyager/mkhlp
config.status: creating ./Makefile
config.status: creating Programs/Makefile
config.status: creating Documents/Makefile
config.status: creating BrailleDrivers/Alva/Makefile
config.status: creating BrailleDrivers/Albatross/Makefile
config.status: creating BrailleDrivers/BrlAPI/Makefile
config.status: creating BrailleDrivers/Braudi/Makefile
config.status: creating BrailleDrivers/BrailleLite/Makefile
config.status: creating BrailleDrivers/Baum/Makefile
config.status: creating BrailleDrivers/BrailleNote/Makefile
config.status: creating BrailleDrivers/CombiBraille/Makefile
config.status: creating BrailleDrivers/EcoBraille/Makefile
config.status: creating BrailleDrivers/EuroBraille/Makefile
config.status: creating BrailleDrivers/FreedomScientific/Makefile
config.status: creating BrailleDrivers/HandyTech/Makefile
config.status: creating BrailleDrivers/LogText/Makefile
config.status: creating BrailleDrivers/MultiBraille/Makefile
config.status: creating BrailleDrivers/MDV/Makefile
config.status: creating BrailleDrivers/MiniBraille/Makefile
config.status: creating BrailleDrivers/Papenmeier/Makefile
config.status: creating BrailleDrivers/TechniBraille/Makefile
config.status: creating BrailleDrivers/TSI/Makefile
config.status: creating BrailleDrivers/TTY/Makefile
config.status: creating BrailleDrivers/VideoBraille/Makefile
config.status: creating BrailleDrivers/Voyager/Makefile
config.status: creating BrailleDrivers/Virtual/Makefile
config.status: creating BrailleDrivers/VisioBraille/Makefile
config.status: creating BrailleDrivers/XWindow/Makefile
config.status: creating ScreenDrivers/Windows/Makefile
config.status: creating ScreenDrivers/Screen/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating Programs/api.h
config.status: Programs/api.h is unchanged
config.status: executing brltty-summary commands
config.status: Options Summary:
   execute-root: 
   install-root: 
   libdir: /lib
   sysconfdir: /etc
   program-directory: /bin
   library-directory: /lib/brltty
   data-directory: /etc/brltty
   manpage-directory: /usr/share/man
   include-directory: /usr/include/brltty
   compiler-prefix: 
   init-path: 
   i18n: yes
   api: yes
   api-parameters: 
   preferences-menu: yes
   table-selection: yes
   learn-mode: yes
   contracted-braille: yes
   beeper-support: yes
   pcm-support: yes
   midi-support: yes
   fm-support: yes
   pm-configfile: yes
   gpm: no
   standalone-programs: no
   libbraille-root: 
   external-braille-drivers: 
   internal-braille-drivers: ht
   braille-parameters: 
   braille-device: serial:COM1
   text-table: text.no-h.tbl
   attributes-table: attributes.tbl
   speech-support: no
   external-screen-drivers: 
   internal-screen-drivers: wn sc
   screen-parameters: 
   screen-driver: wn


>From make: make

cd Programs && make all
make[1]: Entering directory `/c/tmp/brltty/Programs'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./main.c
./main.c: In function `awaitRoutingStatus':
./main.c:229: warning: implicit declaration of function `pause'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./config.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./options.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./misc.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./sys_windows.c
In file included from ./sys_windows.c:25:
./sys_boot_none.h:18:2: warning: #warning boot parameter retrieval not available on this platform
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./io_misc.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./queue.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./cut.c
gawk -f ./cmds.awk ./brldefs.h >cmds.auto.h
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./cmd.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./at2.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./tbl.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./ctb_compile.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./ctb_translate.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./serial.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./drivers.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr_base.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr_help.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr_frozen.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr_main.c
./mkdrvtab ScreenDriver scr_driver_ wn sc >scr.auto.h
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./scr_real.c
cd ../ScreenDrivers/Windows && make screen.o
make[2]: Entering directory `/c/tmp/brltty/ScreenDrivers/Windows'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I../.. -I. -I../..  -DHAVE_CONFIG_H  '-DSCRNAME=Windows' '-DSCRCODE=wn' '-DSCRCOMMENT=""' -c ./screen.c
make[2]: Leaving directory `/c/tmp/brltty/ScreenDrivers/Windows'
cd ../ScreenDrivers/Screen && make screen.o
make[2]: Entering directory `/c/tmp/brltty/ScreenDrivers/Screen'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I../.. -I. -I../..  -DHAVE_CONFIG_H  '-DSCRNAME=Screen' '-DSCRCODE=sc' '-DSCRCOMMENT=""' -c ./screen.c
make[2]: Leaving directory `/c/tmp/brltty/ScreenDrivers/Screen'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./route.c
./mkdrvtab BrailleDriver brl_driver_ ht >brl.auto.h
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./tbl2hex.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -o host_tbl.o -c ./tbl.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -o host_opts.o -c ./options.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -o host_misc.o -c ./misc.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -o host_sys.o -c ./sys_windows.c
In file included from ./sys_windows.c:25:
./sys_boot_none.h:18:2: warning: #warning boot parameter retrieval not available on this platform
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -o host_io.o -c ./io_misc.c
gcc -Wall -Wl,-export-dynamic,-rpath,/lib/brltty,--enable-auto-import -o tbl2hex.exe tbl2hex.o host_tbl.o host_opts.o host_misc.o host_sys.o host_io.o -lintl -lntdll -lwinmm -lmsvcp60 -lws2_32 -lsupc++ 
./tbl2hex.exe ../BrailleTables/text.no-h.tbl >text.auto.h
./tbl2hex.exe ../BrailleTables/attributes.tbl >attrib.auto.h
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./brl.c
cd ../BrailleDrivers/HandyTech && make braille.o
make[2]: Entering directory `/c/tmp/brltty/BrailleDrivers/HandyTech'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I../.. -I. -I../..  -DHAVE_CONFIG_H  '-DBRLNAME=HandyTech' '-DBRLCODE=ht' '-DBRLCOMMENT="Modular 20/40/80, Braille Wave 40, Braille Star 40/80, Bookworm, Braillino 20"' '-DBRLHELP="brltty-ht.hlp"' -c ./braille.c
make[2]: Leaving directory `/c/tmp/brltty/BrailleDrivers/HandyTech'
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./tunes.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./beeper.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./pcm.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./midi.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./fm.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./adlib.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./api_server.c
gcc -Wall -g -O2 -DWINVER=0X0501 -I. -I.. -I. -I..  -DHAVE_CONFIG_H -c ./rangelist.c
gcc -Wall -Wl,-export-dynamic,-rpath,/lib/brltty,--enable-auto-import -o brltty.exe main.o config.o options.o misc.o sys_windows.o io_misc.o queue.o cut.o cmd.o at2.o tbl.o ctb_compile.o ctb_translate.o serial.o   drivers.o scr.o scr_base.o scr_help.o scr_frozen.o scr_main.o scr_real.o ../ScreenDrivers/Windows/screen.o ../ScreenDrivers/Screen/screen.o route.o brl.o ../BrailleDrivers/HandyTech/braille.o   tunes.o beeper.o pcm.o midi.o fm.o adlib.o api_server.o rangelist.o    -lintl -lntdll -lwinmm -lmsvcp60 -lws2_32 -lsupc++ 
main.o: In function `main':
c:/tmp/brltty/Programs/./main.c:229: undefined reference to `pause'
collect2: ld returned 1 exit status
make[1]: *** [brltty.exe] Error 1
make[1]: Leaving directory `/c/tmp/brltty/Programs'
make: *** [all] Error 2


Lars


More information about the BRLTTY mailing list