Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.3.1 OS: Linux Reported on mailing list a couple months ago when the problem first appeared - no useful response, and no change to the situation since then. Just your standard 'make -f Makefile.cvs; ./configure --enable-debug=full --prefix=$KDEDIR; make': if /bin/sh ../../../libtool --silent --mode=compile gcc -s -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../dcop -I../../../kio/kssl -I../../.. -I../../../kio -I../../../kfile -I../../../dcop -I../../../libltdl -I../../../kdefx -I../../../kdecore -I../../../kdeui -I../../../kio -I../../../kio/kio -I../../../kio/kfile -I../../.. -I/opt/qt-copy/include -I/usr/X11R6/include -I/opt/kde-cvs/include -DQT_THREAD_SUPPORT -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -g3 -fno-inline -O2 -mcpu=i686 -Wformat-security -Wmissing-format-attribute -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 ".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: error: union has no member named `sin_addr' make[4]: *** [cups-util.lo] Error 1 make[4]: Leaving directory `/home/sigthor/compile/kdelibs/kdeprint/cups/cupsdconf2' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/sigthor/compile/kdelibs/kdeprint/cups' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/sigthor/compile/kdelibs/kdeprint' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/sigthor/compile/kdelibs' make: *** [all] Error 2
"sin_addr" is a member of "struct sockaddr_in" that is defined in /usr/include/netinet/in.h. Don't you have these on your system?
This happened to me. I looked at the CUPS headers, and on my system the expression: ntohl(http->hostaddr.sin_addr.s_addr) works with: ntohl(http->hostaddr.ipv4.sin_addr.s_addr) or something more complicated if ipv6 is involved... I just want this to compile. We'll see later if it works.
Hi, I have the same problem. i've installed cups 1.2.x from cvs successfully. When trying to compile kdelibs I recieve the same error above. ./configure --prefix=/opt/kde/ --with-qt-dir=/usr/local/qt make >> in the /usr/include/netinet/in.h i have the sin_addr struct definition
Hmm. I'm reproducing this on a Debian sid/experimental box. I think found the problem, too. In cups 1.2 there is a union http_addr_t in http.h, whereas there wasn't in 1.1. http->hostaddr is a http_addr.
The problem is that in http_t as defined in include/cups/http.h hostaddr is now a union. The method cups_local_auth() must be updated to handle ipv4 vs. ipv6 (at least) and use the correct union member.
Which cups version?
Starting from 1.2. Michael.
I'm sure the original bug report is no longer valid. Please report any new compile bugs in new reports.
Closing old Resolved status bug.