Bug 71456 - Cannot build kdeprint from CVS
Summary: Cannot build kdeprint from CVS
Status: CLOSED WORKSFORME
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-29 23:19 UTC by Casey Allen Shobe
Modified: 2008-12-31 13:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Allen Shobe 2003-12-29 23:19:27 UTC
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
Comment 1 Michael Goffioul 2004-02-23 16:20:18 UTC
"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?
Comment 2 Tom Yedwab 2004-03-14 08:58:48 UTC
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.
Comment 3 Alexander Uritsky 2004-03-14 12:28:54 UTC
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
Comment 4 Zack Cerza 2005-05-09 05:02:33 UTC
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.
Comment 5 Thomas Downing 2005-08-29 17:21:05 UTC
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.
Comment 6 Cristian Tibirna 2005-08-29 19:06:51 UTC
Which cups version?
Comment 7 Michael Goffioul 2005-08-30 09:03:56 UTC
Starting from 1.2.

Michael.
Comment 8 Kurt Pfeifle 2007-01-13 03:27:29 UTC
I'm sure the original bug report is no longer valid.

Please report any new compile bugs in new reports.
Comment 9 John Layt 2008-12-31 13:32:00 UTC
Closing old Resolved status bug.