Modify

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#5046 closed defect (fixed)

python-pcap does not compile due to incomplete type (also COPTS warning)

Reported by: Maddes <maddes_trac@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Revision: r15557
Build Environment: Debian 5.0
Target: Marvel Orion, SquashFS image
Call: make V=99

Error:

make[3]: Entering directory `/home/openwrt/kamikaze-trunk/feeds/packages/lang/pypcap'
gzip -dc /home/openwrt/kamikaze-trunk/dl/pypcap-1.1.tar.gz | /bin/tar -C /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/.. -xf -

Applying ./patches/000-no_cpickle.patch using plaintext:
patching file setup.py

Applying ./patches/001-python2_5.patch using plaintext:
patching file pcap.pyx
touch /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/.prepared_9fdf4da7614b217a72b184980fd0db9c
(cd /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/./; if [ -x ./configure ]; then /usr/bin/find /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ -name config.guess | xargs -r -n1 cp /home/openwrt/kamikaze-trunk/scripts/config.guess; /usr/bin/find /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ -name config.sub | xargs -r -n1 cp /home/openwrt/kamikaze-trunk/scripts/config.sub; AR=arm-openwrt-linux-uclibcgnueabi-ar AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float" LD=arm-openwrt-linux-uclibcgnueabi-ld NM=arm-openwrt-linux-uclibcgnueabi-nm CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB=arm-openwrt-linux-uclibcgnueabi-ranlib STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float " CXXFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float " CPPFLAGS="-I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/include " LDFLAGS="-L/home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc-0.9.29/usr/lib -L/home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc-0.9.29/lib -L/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/lib -L/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/lib "   ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/.configured_
( cd /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/.; CFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float" CPPFLAGS="-I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/include" LDFLAGS="-L/home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc-0.9.29/usr/lib -L/home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc-0.9.29/lib -L/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/lib -L/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/lib"  PCAP_HOME="/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr"  python2.6 ./setup.py  install --prefix="/home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ipkg-install/usr" && find /home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/ipkg-install -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f );
found {'libraries': ['pcap'], 'library_dirs': ['/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/lib'], 'include_dirs': ['/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include']}
running install
running build
running build_ext
building 'pcap' extension
creating build
creating build/temp.linux-i686-2.6
arm-openwrt-linux-uclibcgnueabi-gcc -DNDEBUG -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/include -fPIC -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include/python2.6 -c pcap.c -o build/temp.linux-i686-2.6/pcap.o
<built-in>:0: note: someone does not honour COPTS correctly, passed 2 times
pcap.c: In function '__pyx_f_4pcap_4pcap_dispatch':
pcap.c:1039: warning: passing argument 3 of 'pcap_dispatch' from incompatible pointer type
pcap.c: In function '__pyx_f_4pcap_4pcap_loop':
pcap.c:1142: warning: passing argument 3 of 'pcap_ex_next' from incompatible pointer type
pcap.c: In function '__pyx_f_4pcap_4pcap___next__':
pcap.c:1338: warning: passing argument 3 of 'pcap_ex_next' from incompatible pointer type
arm-openwrt-linux-uclibcgnueabi-gcc -DNDEBUG -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/include -fPIC -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include -I/home/openwrt/kamikaze-trunk/staging_dir/target-arm_uClibc-0.9.29/usr/include/python2.6 -c pcap_ex.c -o build/temp.linux-i686-2.6/pcap_ex.o
<built-in>:0: note: someone does not honour COPTS correctly, passed 2 times
pcap_ex.c: In function 'pcap_ex_fileno':
pcap_ex.c:165: error: dereferencing pointer to incomplete type
pcap_ex.c: In function 'pcap_ex_next':
pcap_ex.c:253: error: dereferencing pointer to incomplete type
error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
make[3]: *** [/home/openwrt/kamikaze-trunk/build_dir/target-arm_uClibc-0.9.29/pypcap-1.1/.built] Error 1
make[3]: Leaving directory `/home/openwrt/kamikaze-trunk/feeds/packages/lang/pypcap'

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by lars

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with r16216
Thanks

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.