[Lcdproc] [patch] autoconf cleanup

Markus Dolze bsdfan@nurfuerspam.de
Wed Oct 31 22:25:01 2007


This is a multi-part message in MIME format.
--------------090401090709000602090805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello Thomas,

Thomas Jarosch wrote:
> Hello Markus,
>
> thanks for your feedback.
>
> On Tuesday, 30. October 2007, Markus Dolze wrote:
>   
>> While I am a friend of making things easier, I have the following comments:
>> - Lcdproc runs on other platforms than Linux, too. On these pkg-config
>> may not be available by default (I can only speak for the BSDs) adding
>> an extra dependency.
>>     
>
> This is also true for Linux, but like I said, pkgconfig is around since 2003 
> or even longer. pkgconfig is only needed if you compile from source
> and want libusb/libftdi support. Is it possible to set
> build requirements for BSD packages?
>   
Yes, this is no big problem.
>   
>> - LibFTDI is not a completely portable library. And the shuttfleVFD
>> driver fails horribly if libftdi is enabled on FreeBSD. So I personally
>> don't like the idea of enabling it by default (and will disable it for
>> the package if it is turned on by default).
>>     
>
> Can you send me the output of that? There are already two drivers that
> need libftdi and I will add two more, so it would be nice if we
> can leave the autodetection enabled.
>   
Attached. But I was wrong in claiming it to be the shuttleVFD driver, it
was hd44780-lis instead. This is even more painfull as I cannot disable
hd44780 driver.

Regards
Markus

--------------090401090709000602090805
Content-Type: text/plain;
 name="make.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="make.log"

make  all-recursive
Making all in server
Making all in drivers
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT lcd_lib.o -MD -MP -MF ".deps/lcd_lib.Tpo" -c -o lcd_lib.o lcd_lib.c;  then mv -f ".deps/lcd_lib.Tpo" ".deps/lcd_lib.Po"; else rm -f ".deps/lcd_lib.Tpo"; exit 1; fi
rm -f libLCD.a
ar cru libLCD.a lcd_lib.o 
ranlib libLCD.a
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT adv_bignum.o -MD -MP -MF ".deps/adv_bignum.Tpo" -c -o adv_bignum.o adv_bignum.c;  then mv -f ".deps/adv_bignum.Tpo" ".deps/adv_bignum.Po"; else rm -f ".deps/adv_bignum.Tpo"; exit 1; fi
rm -f libbignum.a
ar cru libbignum.a adv_bignum.o 
ranlib libbignum.a
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT bayrad.o -MD -MP -MF ".deps/bayrad.Tpo" -c -o bayrad.o bayrad.c;  then mv -f ".deps/bayrad.Tpo" ".deps/bayrad.Po"; else rm -f ".deps/bayrad.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o bayrad.so  bayrad.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT CFontz.o -MD -MP -MF ".deps/CFontz.Tpo" -c -o CFontz.o CFontz.c;  then mv -f ".deps/CFontz.Tpo" ".deps/CFontz.Po"; else rm -f ".deps/CFontz.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o CFontz.so  CFontz.o libLCD.a libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT CFontz633.o -MD -MP -MF ".deps/CFontz633.Tpo" -c -o CFontz633.o CFontz633.c;  then mv -f ".deps/CFontz633.Tpo" ".deps/CFontz633.Po"; else rm -f ".deps/CFontz633.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT CFontz633io.o -MD -MP -MF ".deps/CFontz633io.Tpo" -c -o CFontz633io.o CFontz633io.c;  then mv -f ".deps/CFontz633io.Tpo" ".deps/CFontz633io.Po"; else rm -f ".deps/CFontz633io.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o CFontz633.so  CFontz633.o CFontz633io.o libLCD.a libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT CFontzPacket.o -MD -MP -MF ".deps/CFontzPacket.Tpo" -c -o CFontzPacket.o CFontzPacket.c;  then mv -f ".deps/CFontzPacket.Tpo" ".deps/CFontzPacket.Po"; else rm -f ".deps/CFontzPacket.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o CFontzPacket.so  CFontzPacket.o CFontz633io.o libLCD.a libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT curses_drv.o -MD -MP -MF ".deps/curses_drv.Tpo" -c -o curses_drv.o curses_drv.c;  then mv -f ".deps/curses_drv.Tpo" ".deps/curses_drv.Po"; else rm -f ".deps/curses_drv.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o curses.so  curses_drv.o -lncurses -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT CwLnx.o -MD -MP -MF ".deps/CwLnx.Tpo" -c -o CwLnx.o CwLnx.c;  then mv -f ".deps/CwLnx.Tpo" ".deps/CwLnx.Po"; else rm -f ".deps/CwLnx.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o CwLnx.so  CwLnx.o libLCD.a libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT ea65.o -MD -MP -MF ".deps/ea65.Tpo" -c -o ea65.o ea65.c;  then mv -f ".deps/ea65.Tpo" ".deps/ea65.Po"; else rm -f ".deps/ea65.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o ea65.so  ea65.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT EyeboxOne.o -MD -MP -MF ".deps/EyeboxOne.Tpo" -c -o EyeboxOne.o EyeboxOne.c;  then mv -f ".deps/EyeboxOne.Tpo" ".deps/EyeboxOne.Po"; else rm -f ".deps/EyeboxOne.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o EyeboxOne.so  EyeboxOne.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT glk.o -MD -MP -MF ".deps/glk.Tpo" -c -o glk.o glk.c;  then mv -f ".deps/glk.Tpo" ".deps/glk.Po"; else rm -f ".deps/glk.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT glkproto.o -MD -MP -MF ".deps/glkproto.Tpo" -c -o glkproto.o glkproto.c;  then mv -f ".deps/glkproto.Tpo" ".deps/glkproto.Po"; else rm -f ".deps/glkproto.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o glk.so  glk.o glkproto.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780.o -MD -MP -MF ".deps/hd44780-hd44780.Tpo" -c -o hd44780-hd44780.o `test -f 'hd44780.c' || echo './'`hd44780.c;  then mv -f ".deps/hd44780-hd44780.Tpo" ".deps/hd44780-hd44780.Po"; else rm -f ".deps/hd44780-hd44780.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-serial.o -MD -MP -MF ".deps/hd44780-hd44780-serial.Tpo" -c -o hd44780-hd44780-serial.o `test -f 'hd44780-serial.c' || echo './'`hd44780-serial.c;  then mv -f ".deps/hd44780-hd44780-serial.Tpo" ".deps/hd44780-hd44780-serial.Po"; else rm -f ".deps/hd44780-hd44780-serial.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-lis2.o -MD -MP -MF ".deps/hd44780-hd44780-lis2.Tpo" -c -o hd44780-hd44780-lis2.o `test -f 'hd44780-lis2.c' || echo './'`hd44780-lis2.c;  then mv -f ".deps/hd44780-hd44780-lis2.Tpo" ".deps/hd44780-hd44780-lis2.Po"; else rm -f ".deps/hd44780-hd44780-lis2.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-4bit.o -MD -MP -MF ".deps/hd44780-hd44780-4bit.Tpo" -c -o hd44780-hd44780-4bit.o `test -f 'hd44780-4bit.c' || echo './'`hd44780-4bit.c;  then mv -f ".deps/hd44780-hd44780-4bit.Tpo" ".deps/hd44780-hd44780-4bit.Po"; else rm -f ".deps/hd44780-hd44780-4bit.Tpo"; exit 1; fi
In file included from hd44780-4bit.c:68:
port.h: In function `port_in':
port.h:240: warning: comparison is always true due to limited range of data type
port.h: In function `port_out':
port.h:245: warning: comparison is always true due to limited range of data type
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-ext8bit.o -MD -MP -MF ".deps/hd44780-hd44780-ext8bit.Tpo" -c -o hd44780-hd44780-ext8bit.o `test -f 'hd44780-ext8bit.c' || echo './'`hd44780-ext8bit.c;  then mv -f ".deps/hd44780-hd44780-ext8bit.Tpo" ".deps/hd44780-hd44780-ext8bit.Po"; else rm -f ".deps/hd44780-hd44780-ext8bit.Tpo"; exit 1; fi
In file included from hd44780-ext8bit.c:59:
port.h: In function `port_in':
port.h:240: warning: comparison is always true due to limited range of data type
port.h: In function `port_out':
port.h:245: warning: comparison is always true due to limited range of data type
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-lcd_sem.o -MD -MP -MF ".deps/hd44780-lcd_sem.Tpo" -c -o hd44780-lcd_sem.o `test -f 'lcd_sem.c' || echo './'`lcd_sem.c;  then mv -f ".deps/hd44780-lcd_sem.Tpo" ".deps/hd44780-lcd_sem.Po"; else rm -f ".deps/hd44780-lcd_sem.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-winamp.o -MD -MP -MF ".deps/hd44780-hd44780-winamp.Tpo" -c -o hd44780-hd44780-winamp.o `test -f 'hd44780-winamp.c' || echo './'`hd44780-winamp.c;  then mv -f ".deps/hd44780-hd44780-winamp.Tpo" ".deps/hd44780-hd44780-winamp.Po"; else rm -f ".deps/hd44780-hd44780-winamp.Tpo"; exit 1; fi
In file included from hd44780-winamp.c:69:
port.h: In function `port_in':
port.h:240: warning: comparison is always true due to limited range of data type
port.h: In function `port_out':
port.h:245: warning: comparison is always true due to limited range of data type
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-serialLpt.o -MD -MP -MF ".deps/hd44780-hd44780-serialLpt.Tpo" -c -o hd44780-hd44780-serialLpt.o `test -f 'hd44780-serialLpt.c' || echo './'`hd44780-serialLpt.c;  then mv -f ".deps/hd44780-hd44780-serialLpt.Tpo" ".deps/hd44780-hd44780-serialLpt.Po"; else rm -f ".deps/hd44780-hd44780-serialLpt.Tpo"; exit 1; fi
In file included from hd44780-serialLpt.c:57:
port.h: In function `port_in':
port.h:240: warning: comparison is always true due to limited range of data type
port.h: In function `port_out':
port.h:245: warning: comparison is always true due to limited range of data type
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-bwct-usb.o -MD -MP -MF ".deps/hd44780-hd44780-bwct-usb.Tpo" -c -o hd44780-hd44780-bwct-usb.o `test -f 'hd44780-bwct-usb.c' || echo './'`hd44780-bwct-usb.c;  then mv -f ".deps/hd44780-hd44780-bwct-usb.Tpo" ".deps/hd44780-hd44780-bwct-usb.Po"; else rm -f ".deps/hd44780-hd44780-bwct-usb.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT hd44780-hd44780-lcd2usb.o -MD -MP -MF ".deps/hd44780-hd44780-lcd2usb.Tpo" -c -o hd44780-hd44780-lcd2usb.o `test -f 'hd44780-lcd2usb.c' || echo './'`hd44780-lcd2usb.c;  then mv -f ".deps/hd44780-hd44780-lcd2usb.Tpo" ".deps/hd44780-hd44780-lcd2usb.Po"; else rm -f ".deps/hd44780-hd44780-lcd2usb.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o hd44780.so  hd44780-hd44780.o libLCD.a hd44780-hd44780-serial.o hd44780-hd44780-lis2.o hd44780-hd44780-4bit.o hd44780-hd44780-ext8bit.o hd44780-lcd_sem.o hd44780-hd44780-winamp.o hd44780-hd44780-serialLpt.o hd44780-hd44780-bwct-usb.o hd44780-hd44780-lcd2usb.o -L/usr/local/lib -lusb   libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT icp_a106.o -MD -MP -MF ".deps/icp_a106.Tpo" -c -o icp_a106.o icp_a106.c;  then mv -f ".deps/icp_a106.Tpo" ".deps/icp_a106.Po"; else rm -f ".deps/icp_a106.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o icp_a106.so  icp_a106.o libLCD.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT imon.o -MD -MP -MF ".deps/imon.Tpo" -c -o imon.o imon.c;  then mv -f ".deps/imon.Tpo" ".deps/imon.Po"; else rm -f ".deps/imon.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o imon.so  imon.o libLCD.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -I/usr/local/include   -fPIC -Wall  -O3 -Wno-unused-function -MT IOWarrior-IOWarrior.o -MD -MP -MF ".deps/IOWarrior-IOWarrior.Tpo" -c -o IOWarrior-IOWarrior.o `test -f 'IOWarrior.c' || echo './'`IOWarrior.c;  then mv -f ".deps/IOWarrior-IOWarrior.Tpo" ".deps/IOWarrior-IOWarrior.Po"; else rm -f ".deps/IOWarrior-IOWarrior.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o IOWarrior.so  IOWarrior-IOWarrior.o -L/usr/local/lib -lusb   libLCD.a libbignum.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT lb216.o -MD -MP -MF ".deps/lb216.Tpo" -c -o lb216.o lb216.c;  then mv -f ".deps/lb216.Tpo" ".deps/lb216.Po"; else rm -f ".deps/lb216.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o lb216.so  lb216.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT lcdm001.o -MD -MP -MF ".deps/lcdm001.Tpo" -c -o lcdm001.o lcdm001.c;  then mv -f ".deps/lcdm001.Tpo" ".deps/lcdm001.Po"; else rm -f ".deps/lcdm001.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o lcdm001.so  lcdm001.o  -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT lcterm.o -MD -MP -MF ".deps/lcterm.Tpo" -c -o lcterm.o lcterm.c;  then mv -f ".deps/lcterm.Tpo" ".deps/lcterm.Po"; else rm -f ".deps/lcterm.Tpo"; exit 1; fi
gcc -fPIC -Wall  -O3 -Wno-unused-function -shared  -o lcterm.so  lcterm.o libLCD.a -lkvm
if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -fPIC -Wall  -O3 -Wno-unused-function -MT lis.o -MD -MP -MF ".deps/lis.Tpo" -c -o lis.o lis.c;  then mv -f ".deps/lis.Tpo" ".deps/lis.Po"; else rm -f ".deps/lis.Tpo"; exit 1; fi
lis.c:58:17: usb.h: No such file or directory
lis.c:59:18: ftdi.h: No such file or directory
In file included from lis.c:68:
lis.h:64: error: field `ftdic' has incomplete type
lis.c: In function `lis_ftdi_write_command':
lis.c:192: warning: implicit declaration of function `ftdi_write_data'
lis.c: In function `lis_read_thread':
lis.c:295: warning: implicit declaration of function `ftdi_read_data'
lis.c: In function `lis_init':
lis.c:434: warning: implicit declaration of function `ftdi_init'
lis.c:439: warning: implicit declaration of function `ftdi_usb_open'
lis.c:449: warning: implicit declaration of function `ftdi_set_line_property'
lis.c:449: error: `BITS_7' undeclared (first use in this function)
lis.c:449: error: (Each undeclared identifier is reported only once
lis.c:449: error: for each function it appears in.)
lis.c:449: error: `STOP_BIT_1' undeclared (first use in this function)
lis.c:449: error: `EVEN' undeclared (first use in this function)
lis.c:456: warning: implicit declaration of function `ftdi_setdtr'
lis.c:456: error: `SIO_SET_DTR_MASK' undeclared (first use in this function)
lis.c:456: error: `SIO_SET_DTR_HIGH' undeclared (first use in this function)
lis.c:463: warning: implicit declaration of function `ftdi_setrts'
lis.c:463: error: `SIO_SET_RTS_MASK' undeclared (first use in this function)
lis.c:463: error: `SIO_SET_RTS_HIGH' undeclared (first use in this function)
lis.c:470: warning: implicit declaration of function `ftdi_set_baudrate'
lis.c:492: warning: implicit declaration of function `ftdi_usb_reset'
lis.c:499: warning: implicit declaration of function `ftdi_set_latency_timer'
lis.c:512: warning: implicit declaration of function `clone'
lis.c:512: error: `CLONE_VM' undeclared (first use in this function)
lis.c:512: error: `CLONE_THREAD' undeclared (first use in this function)
lis.c:512: error: `CLONE_SIGHAND' undeclared (first use in this function)
lis.c:541: warning: implicit declaration of function `ftdi_setflowctrl'
lis.c:541: error: `SIO_DISABLE_FLOW_CTRL' undeclared (first use in this function)
lis.c:599: error: `NONE' undeclared (first use in this function)
lis.c:957: error: `BITS_8' undeclared (first use in this function)
lis.c:1148: warning: implicit declaration of function `ftdi_usb_close'
lis.c:1149: warning: implicit declaration of function `ftdi_deinit'
lis.c: In function `lis_close':
lis.c:1180: warning: implicit declaration of function `ftdi_usb_purge_buffers'
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/testing/server/drivers.
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/testing/server.
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/testing.
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/testing.

--------------090401090709000602090805--