Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 440886

Summary: net-print/cups-bjnp-1.1 - In file included from bjnp-io.c:22:0: bjnp-protocol.h:100:5: error: redefinition of typedef 'bjnp_command_t'
Product: Gentoo Linux Reporter: renato gallo <renatogallo>
Component: [OLD] PrintingAssignee: Printing Team <printing>
Severity: normal CC: cryogeno, renatogallo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log
Patch for cups-bjnp-1.1
version 1.2 ebuild

Description renato gallo 2012-11-02 02:26:10 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Werror  -O2 -pipe -march=native -c -o bjnp-bjnp-io.o `test -f 'bjnp-io.c' || echo './'`bjnp-io.c
In file included from bjnp-io.c:22:0:
bjnp-protocol.h:100:5: error: redefinition of typedef 'bjnp_command_t'
bjnp.h:124:30: note: previous declaration of 'bjnp_command_t' was here
bjnp-protocol.h:157:3: error: redefinition of typedef 'bjnp_response_t'
bjnp.h:125:31: note: previous declaration of 'bjnp_response_t' was here
make[1]: *** [bjnp-bjnp-io.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cups-bjnp-1.1/work/cups-bjnp-1.1'
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
1.emerge cups-bjnp
Actual Results:  
it fails to compile

Expected Results:  
it compiles smoothly

emerge --info
Portage (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.16.0, 3.5.4-gentoo x86_64)
System uname: Linux-3.5.4-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-2.2
Timestamp of tree: Thu, 01 Nov 2012 17:45:01 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1, 3.3.0
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.4.5, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo zugaina sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -march=native"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/sunrise"
USE="X a52 aac aalib acl alsa amd64 apng atmo auto-hinter autoipd avahi bash-completion berkdb bidi bittorrent bluetooth bzip2 cairo cdda cddb cdr cjk cli cnijtools consolekit cracklib crypt ctrls cups curl cxx dbus dc1394 declarative desktopglobe dga dirac directfb djvu dri dts dvb dvd eds encode epydoc esd examples exif extras fbcon ffmpeg flac fluidsynth fontconfig fontforge foomaticdb fortran g3dvl gd gdbm ggi gif gimp gme gnome gphoto2 gpm gstreamer gtk gtk3 gudev httpd hwdb iconv id3tag ieee1394 ip1900 ip3600 ip4600 ipv6 ix6550 java jce jpeg jpeg2k kate kde lame lapack lcms libass libcaca libnotify libproxy libtiger libv4l2 lirc live lua lzma mad matroska mdnsresponder-compat minizip mmx mng modplug modules mp190 mp240 mp3 mp540 mp630 mpeg mtp mudflap multilib musepack mx360 mx410 mx420 mx880 mythtv ncurses networkmanager nls nptl nsplugin nspluginwrapper ocr odbc odk ogg openexr opengl openmp openssl optimisememory oss ovftool pam pango pasteafter pcre pdf pdfimport perl phonon php plasma png policykit ppds pppd projectm ps pulseaudio pvr python python2 python3 qalculate qt3support qt4 qwt raw readline remoteosd romio rtsp run-as-root samba sasl scanner schroedinger scim screensaver script sdk sdl sdl-image semantic-desktop server session shaper shine shout skins slp smbsharemodes smp speex sql sqlite sse sse2 ssl stream svg swat system-libvncserver taglib tcpd templates theora threads tiff tilepath tk tools truetype truetype-debugger twolame type3 udev udisks unicode upnp usb utils v4l2 vaapi vala vcdx vdpau vix vlm vmware-tools vmware_guest_freebsd vmware_guest_linux vmware_guest_netware vmware_guest_solaris vmware_guest_winPre2k vmware_guest_windows vorbis webkit winbind wma-fixed wmf x264 xml xosd xv zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" FOO2ZJS_DEVICES="hp1000 hp1005 hp1018 hp1020 hp1215 hp1500 hp1600 hp2600n hpp1005 hpp1006 hpp1007 hpp1008 hpp1505 km2200 km2300 km2430 km2480 km2490 km2530 kmcpwl lm500 oki3200 oki3300 oki3400 oki3530 oki5100 oki5200 oki5500 oki5600 oki5800 sa2160 sa300 sa315 sa3160 xp6110 xp6115" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 x86_64 xtensa xtensaeb" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 renato gallo 2012-11-02 02:27:38 UTC
Created attachment 328022 [details]

build.log of the net-print/cups-bjnp-1.1
Comment 2 Account removed 2012-11-10 14:15:53 UTC
I can confirm the bug.

uname -a:
Linux xxx 3.4.9-gentoo #5 SMP PREEMPT Wed Oct 24 23:43:31 CEST 2012 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux
Comment 3 Account removed 2012-11-10 14:30:51 UTC
Created attachment 329114 [details, diff]
Patch for cups-bjnp-1.1

Removes the duplicate definitions so the package compiles again.
Comment 4 renato gallo 2012-12-21 01:47:58 UTC
patch works thank you :)

(In reply to comment #3)
> Created attachment 329114 [details, diff] [details, diff]
> Patch for cups-bjnp-1.1
> Removes the duplicate definitions so the package compiles again.
Comment 5 Marco 2013-01-02 13:29:59 UTC
Created attachment 334034 [details]
version 1.2 ebuild

Resolved in cups-bjnp-1.2
Ebuild for the new version attached
Comment 6 Hans 2013-02-11 11:01:36 UTC
If 1.2 works, could you put it into the portage tree? The newest version is still 1.1.

Comment 7 Manuel RĂ¼ger (RETIRED) gentoo-dev 2013-08-10 14:05:37 UTC
Please test with net-print/cups-bjnp-1.2.1 and report if it fails there, too.