Bug 72867

Summary: compilation of kdelibs-3.1.5 crash with cups-util.c
Product: [Unmaintained] kdelibs Reporter: Christos Francheteau <redcfm>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christos Francheteau 2004-01-18 01:25:01 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    RedHat RPMs
Compiler:          gcc-3.2.2-5 make-3.79.1-17
OS:          Linux

HOW TO REPRODUCE
./configure --with-ssl-dir=/usr/local/ssl
make

ERROR MESSAGE
if /bin/sh ../../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../kio -I../..
/../kfile -I../../../dcop -I../../../libltdl -I../../../kdecore -I../../../kdeui -I../../../kio -I../../../kio/kio -I../../.
./kio/kfile -I../../.. -I/usr/local/qt/include -I/usr/X11R6/include -I/usr/local/kde/include   -DQT_THREAD_SUPPORT  -D_REENT
RANT -I/usr/local/include  -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_S
OURCE=500 -D_BSD_SOURCE -O2   -MT cups-util.lo -MD -MP -MF ".deps/cups-util.Tpo" \
  -c -o cups-util.lo `test -f 'cups-util.c' || echo './'`cups-util.c; \
then mv -f ".deps/cups-util.Tpo" ".deps/cups-util.Plo"; \
else rm -f ".deps/cups-util.Tpo"; exit 1; \
fi
cups-util.c:18: warning: no previous prototype for `cupsGetConf'
cups-util.c:221: warning: no previous prototype for `cupsPutConf'
cups-util.c: In function `cups_local_auth':
cups-util.c:445: union has no member named `sin_addr'
make[4]: *** [cups-util.lo] Erreur 1
make[4]: Quitte le répertoire `/var/tmp/kdelibs-3.1.5/kdeprint/cups/cupsdconf2'
make[3]: *** [all-recursive] Erreur 1
make[3]: Quitte le répertoire `/var/tmp/kdelibs-3.1.5/kdeprint/cups'
make[2]: *** [all-recursive] Erreur 1
make[2]: Quitte le répertoire `/var/tmp/kdelibs-3.1.5/kdeprint'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/var/tmp/kdelibs-3.1.5'
make: *** [all] Erreur 2

INFORMATIONS
[root@phoenix tmp]# find / -name cups-util*
/var/tmp/kdelibs-3.1.5/kdeprint/cups/cupsdconf2/cups-util.c
/var/tmp/kdelibs-3.1.5/kdeprint/cups/cupsdconf2/cups-util.h
/var/tmp/kdelibs-3.1.5/kdeprint/cups/cupsdconf2/cups-util.loT

=> Where can be define cupsGetConf, cupsPutConf or sin_addr?

Environnement
Red Hat 9 kernel 2.4.20-28.9
gcc-3.2.2-5
make-3.79.1-17
qt-x11-free-3.3.0b1
kde3.1-10 Red Hat
openssl-0.9.7c

EXPECTED BEHAVIOUR
compilation Ok
Comment 1 Christos Francheteau 2004-01-18 13:09:28 UTC
As cups-1.2.x from http://www.cups.org/software.php?SOFTWARE=v1_2 seems not properly installed.
Even if I didn't notice any issue; I was not able to print with 'CUPS server' message.
I reinstalled the following rpm packages:
cups-1.1.17-13.i386.rpm
cups-devel-1.1.17-13.i386.rpm
cups-libs-1.1.17-13.i386.rpm

kdelibs-3.1.5 compilation is done.