[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gphoto-devel
Subject:    [gphoto-devel] Bug#6619: Solaris 2.5.1 compile problems
From:       Rainer Canavan canavan () cs ! bonn ! edu
Date:       2000-02-26 16:30:23
[Download RAW message or body]

Package: gphoto
Version: 0.4.2


0.4.2 does not compile with solaris 2.5.1+gcc. Numerous modifications are
neccesary, like additional libraries or header files. Some function calls
(namely all ???nprintf, like snprintf) don not exist (at least not in the
header files I have ;-)), and cfmakeraw (rsony works fine without it). 

There must be some autoconf-compatible wrapper for *nprintf somewhere. I'd
guess that that's a common problem. If everything fails, there's
xc/lib/misc/snprintf.[ch] from XFree86, which defines vsnprintf and snprintf. 

In addition to that the conditions under which B115200 is used is faulty in
some drivers (namely the sony, which I am using). Imho the "#if defined(WIN32)
|| defined(OS2) || defined(BSD) || defined(DOS)" should at least be extended to
include  "|| defined(B115200)". The same applies to B57600. I think this
problem should be solved in one single header file (probably even already in
config.h) which would then be used everywhere to determine the availability of
higher Bitrates. btw, sys/termios.h, where those are defined, has an AT&T
copyright on solaris, i.e. this should be available on SYSV.

The OS dependand conditional define is found in 
./casio/command.c
./casio/casio_qv.c
./sony/chotplay.c
while others user only #if defined(B115200).


cfmakeraw() is used in 
./kodak/init_dc20.c
./nikon/coolpix600.c
./photopc/eph_open.c
./sony/dscf55/serio.c

snprintf()
./kodak/kodak_dc210.c
./kodak/kodak_dc2x.c
./minolta/dimage_v_util.c
./src/util.c
./src/callbacks.c

./kodak/pics_to_file.c
asprintf()  not available on solaris


./directory/dir.h
#include <feature.h>  (does not exist on Solaris 2.5.1, and is not needed)


./kodak/dc20.h should probably define __progname in case it's not already
available (it isn't on Solaris).

./konica_qmxxx/os.c
needs
#include <sys/filio.h> for FIONREAD

./konica_qmxxx/log.c
vsnprintf() not available

./src/gphoto needs "-ljpeg -ldl -lposix4", many others need "-ldl" or "-ljpeg"


Rainer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic