Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195110 - sys-process/lsof-4.78 fails to emerge due to undeclared defines
Summary: sys-process/lsof-4.78 fails to emerge due to undeclared defines
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 15:20 UTC by Heinrich Götzger
Modified: 2007-10-08 19:59 UTC (History)
0 users

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


Attachments
/usr/tmp/portage/sys-process/lsof-4.78/temp/build.log (build.log,10.33 KB, text/plain)
2007-10-08 19:08 UTC, Heinrich Götzger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heinrich Götzger 2007-10-08 15:20:03 UTC
sys-process/lsof-4.78 fails to emerge due to undeclared defines, see actual results below.

Reproducible: Always

Steps to Reproduce:
1.emerge --sync
2.emerge -u lsof

Actual Results:  
[...]
        $ make

(cd lib; make DEBUG="-O" CFGF="-march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"")
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dfile.o dfile.c
make[1]: Entering directory `/usr/tmp/portage/sys-process/lsof-4.78/work/lsof_4.78/lsof_4.78_src/lib'
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o ckkv.o ckkv.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o cvfs.o cvfs.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o dvch.o dvch.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o fino.o fino.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dmnt.o dmnt.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o isfn.o isfn.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o lkud.o lkud.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dnode.o dnode.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o pdvn.o pdvn.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o prfp.o prfp.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o ptti.o ptti.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dproc.o dproc.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o rdev.o rdev.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o regex.o regex.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o rmnt.o rmnt.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o rnam.o rnam.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o rnch.o rnch.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o rnmh.o rnmh.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR="2.6.22-gentoo-r8-tnt"  -O   -c -o snpf.o snpf.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dsock.o dsock.c
i686-pc-linux-gnu-ar cr liblsof.a ckkv.o cvfs.o dvch.o fino.o isfn.o lkud.o pdvn.o prfp.o ptti.o rdev.o regex.o rmnt.o rnam.o rnch.o rnmh.o snpf.o
i686-pc-linux-gnu-ranlib liblsof.a
make[1]: Leaving directory `/usr/tmp/portage/sys-process/lsof-4.78/work/lsof_4.78/lsof_4.78_src/lib'
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o dstore.o dstore.c
i686-pc-linux-gnu-gcc  -march=pentium3 -Os -pipe -DLINUXV=26022 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.6.22-gentoo-r8-tnt\"    -O   -c -o arg.o arg.c
dsock.c: In function 'print_tcptpi':
dsock.c:1524: error: 'TCP_ESTABLISHED' undeclared (first use in this function)
dsock.c:1524: error: (Each undeclared identifier is reported only once
dsock.c:1524: error: for each function it appears in.)
dsock.c:1527: error: 'TCP_SYN_SENT' undeclared (first use in this function)
dsock.c:1530: error: 'TCP_SYN_RECV' undeclared (first use in this function)
dsock.c:1533: error: 'TCP_FIN_WAIT1' undeclared (first use in this function)
dsock.c:1536: error: 'TCP_FIN_WAIT2' undeclared (first use in this function)
dsock.c:1539: error: 'TCP_TIME_WAIT' undeclared (first use in this function)
dsock.c:1542: error: 'TCP_CLOSE' undeclared (first use in this function)
dsock.c:1545: error: 'TCP_CLOSE_WAIT' undeclared (first use in this function)
dsock.c:1548: error: 'TCP_LAST_ACK' undeclared (first use in this function)
dsock.c:1551: error: 'TCP_LISTEN' undeclared (first use in this function)
dsock.c:1554: error: 'TCP_CLOSING' undeclared (first use in this function)
make: *** [dsock.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: sys-process/lsof-4.78 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   lsof-4.78.ebuild, line 50:   Called die
 *
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/usr/tmp/portage/sys-process/lsof-4.78/temp/build.log'.
 *


Expected Results:  
emerge successfully

root@tnt:~ # emerge -up sys-process/lsof                                                                                                                                                                                                                       [17:16]

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-process/lsof-4.78 [4.76]
Comment 1 Heinrich Götzger 2007-10-08 15:20:22 UTC
# emerge --info                                                                                                                                                                                                                                     [17:16]
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8-tnt i686)
=================================================================
System uname: 2.6.22-gentoo-r8-tnt i686 Pentium III (Coppermine)
Timestamp of tree: Mon, 08 Oct 2007 13:50:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://io/ http://boo/ http://izar/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.inode.at/source/ rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://io/gentoo-portage"
USE="X acl apache2 arts berkdb bitmap-fonts bzlib cdr cli cracklib crypt cups dri dvd evms2 foomatic fortran gdbm gif gnome gpm gtk gtk2 iconv ipv6 isdnlog jpg kde kipi midi mozilla mudflap ncurses nls nptl nptlonly openmp pam pcmcia pcre perl pppd python qt readline reflection session spl ssl tcpd truetype truetype-fonts type1-fonts unicode usb x86 xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="r128 vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2007-10-08 18:58:32 UTC
please post the actual log files that the error message tells you to instead of incomplete snippets

attach this file: /usr/tmp/portage/sys-process/lsof-4.78/temp/build.log
Comment 3 Heinrich Götzger 2007-10-08 19:08:10 UTC
Created attachment 132956 [details]
/usr/tmp/portage/sys-process/lsof-4.78/temp/build.log

log as requested
Comment 4 Heinrich Götzger 2007-10-08 19:09:28 UTC
(In reply to comment #2)
> please post the actual log files that the error message tells you to instead of
> incomplete snippets

this text is not making clear to send the _complete log_, IMHO:
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/usr/tmp/portage/sys-process/lsof-4.78/temp/build.log'.
 *

But I won't complain.

Thanks for helping.
> 
> attach this file: /usr/tmp/portage/sys-process/lsof-4.78/temp/build.log
> 
(In reply to comment #2)
> please post the actual log files that the error message tells you to instead of
> incomplete snippets
> 
> attach this file: /usr/tmp/portage/sys-process/lsof-4.78/temp/build.log
> 

Comment 5 SpanKY gentoo-dev 2007-10-08 19:32:41 UTC
this is the source of your problem:
Cannot determine C library type; assuming it is not glibc.

do this:
cat << EOF > test.c
#include <features.h>
main() {
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
printf("-DGLIBCV=%d\n",__GLIBC__*100+__GLIBC_MINOR__);
#elif defined(__GLIBC__)
printf("-DGLIBCV=%d00\n",__GLIBC__);
#else
printf("\n");
#endif
return(0); }
EOF
cc test.c -I/usr/include -o test
./test
Comment 6 Heinrich Götzger 2007-10-08 19:43:57 UTC
(In reply to comment #5)

# cc test.c -I/usr/include -o test                                                                                                                  
zsh: command not found: cc

But this is working:

# gcc test.c -I/usr/include -o test                                                                                                                 
test.c: In function 'main':
test.c:4: warning: incompatible implicit declaration of built-in function 'printf'
# ./test
-DGLIBCV=205


hmm,
I think I need to reemerge gcc?

And I think I know hat happened, I emerged gcc 4.1.2 and later removed gcc 3.4.x and probably cc has been removed during that process.
So reemerging gcc now and testing again is my task now.
Thanks for now. I'll come back with some feedback when it is done.
Comment 7 SpanKY gentoo-dev 2007-10-08 19:50:38 UTC
your system lost the `cc` binary somehow, certainly not lsof's fault

fix your system by re-running gcc-config
Comment 8 Heinrich Götzger 2007-10-08 19:59:47 UTC
(In reply to comment #7)
So I save time for not recompiling gcc, thanks :-)

I run:
# gcc-config -f i686-pc-linux-gnu-4.1.2

and after that cc is back again :-)

test returns 
-DGLIBCV=205

and lsof has been emerged without any error.

Thanks.