Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148073 - net-print/hpoj won't compile w/ gcc-4.x
Summary: net-print/hpoj won't compile w/ gcc-4.x
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-18 08:26 UTC by ivo
Modified: 2006-09-18 08:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivo 2006-09-18 08:26:21 UTC
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo- r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 18 Sep 2006 14:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=nocona -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr /share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf /tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarle t-internet.nl/pub/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts berkdb bitmap-fonts cli crypt cups dlloader dri  eds elibc_glibc emboss encode esd euse foomaticdb fortran gdbm gif gnome gpm gs treamer gtk gtk2 imlib input_devices_joystick input_devices_keyboard input_devic es_mouse input_devices_void ipv6 isdnlog jpeg kde kernel_linux libg++ libwww mad  mikmod motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl  ssl tcpd truetype truetype-fonts type1-fonts udev userland_GNU video_cards_dumm y video_cards_fbdev video_cards_i810 video_cards_nv video_cards_nvidia video_car ds_v4l video_cards_vesa video_cards_vga vorbis xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTA GE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 ivo 2006-09-18 08:30:32 UTC
This is a solution
http://article.gmane.org/gmane.linux.drivers.hpofficejet.devel/2252

> xjpg_fix.c: In function 
Comment 2 ivo 2006-09-18 08:30:32 UTC
This is a solution
http://article.gmane.org/gmane.linux.drivers.hpofficejet.devel/2252

> xjpg_fix.c: In function jpgFix_getActualTraits:
> xjpg_fix.c:512: error: invalid lvalue in assignment
> xjpg_fix.c:533: error: invalid lvalue in assignment
> xjpg_fix.c:549: error: invalid lvalue in assignment
> xjpg_fix.c:560: error: invalid lvalue in assignment
> xjpg_fix.c:581: error: invalid lvalue in assignment
> xjpg_fix.c:587: error: invalid lvalue in assignment
> xjpg_fix.c:595: error: invalid lvalue in assignment
> xjpg_fix.c:605: error: invalid lvalue in assignment
> xjpg_fix.c:610: error: invalid lvalue in assignment
> make[1]: *** [xjpg_fix.shared.o] Error 1
> make[1]: Leaving directory
> `/home/Lioness/Desktop/installs/hpoj-0.91/lib/hpojip'make: ***
> [just_compile] Error 2

--- hpoj-0.91.orig/lib/hpojip/xjpg_fix.c
+++ hpoj-0.91/lib/hpojip/xjpg_fix.c
 <at>  <at>  -389,7 +389,7  <at>  <at> 
 \*****************************************************************************/

 
-#define MYLOCATE(p) (void *)(p)=(g->headerBuffer+lenAddedHeader)
+#define MYLOCATE(p) p=(g->headerBuffer+lenAddedHeader)
 #define MYWRITE(p) lenAddedHeader+=sizeof(*(p))
 #define MYWRITEBUF(data,datalen) \
     do { \
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-18 08:33:37 UTC
p.masked and deprecated

# Stefan Schweizer <genstef@gentoo.org> (06 Feb 2006)
# deprecated - please use net-print/hplip now
net-print/hpoj