Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80462 - nbaudit fails to compile
Summary: nbaudit fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 07:15 UTC by Omkhar Arasaratnam (RETIRED)
Modified: 2005-11-26 15:11 UTC (History)
0 users

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


Attachments
nbaudit-1.0-gentoo.diff (nbaudit-1.0-gentoo.diff,2.47 KB, patch)
2005-02-16 03:02 UTC, Marco Morales
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Omkhar Arasaratnam (RETIRED) gentoo-dev 2005-02-02 07:15:03 UTC
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -c charset.c
Compiling parse_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -c parse_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -o nat  nat.o client.o util.o system.o nmb.o charset.o parse_ip.o -lshadow -L/usr/X11R6/lib/modules
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miUnion'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miEmptyData'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miIntersect'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `serverGeneration'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `Xfree'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `fbGetWinPrivateIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miEmptyBox'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `xf86abort'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `RegisterBlockAndWakeupHandlers'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateGCPrivate'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `PictureScreenPrivateIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateScreenPrivateIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `Xalloc'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateGCPrivateIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `WindowTable'
collect2: ld returned 1 exit status
make: *** [nat] Error 1

!!! ERROR: net-analyzer/nbaudit-1.0 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
Comment 1 Marco Morales 2005-02-05 12:56:07 UTC
not reproducible here... could you do a emerge info?
Comment 2 Omkhar Arasaratnam (RETIRED) gentoo-dev 2005-02-08 03:25:52 UTC
emerge info
Portage 2.0.51-r15 (hardened/x86, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 22 2005, 14:34:51)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.4, 1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium3 -fomit-frame-pointer -pipe -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium3 -fomit-frame-pointer -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa arts bash-completion berkdb bitmap-fonts cdr crypt cups dlloader dvd fam hardened java kde ldap mmx motif mozilla ncurses nls oggvorbis opengl pam perl pic pie png python qt readline snmp sse ssl tcpd tiff truetype truetype-fonts usb wifi x86 xml2 xmms xscreensaver xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-02-08 04:37:34 UTC
Can't reproduce here either. I tried using a hardened 3.3.5, but still no luck.  I did however, run across some gcc-3.4 compile problems, which I've fixed.
Comment 4 Bryan Østergaard (RETIRED) gentoo-dev 2005-02-08 10:42:46 UTC
I get the same problem. emerge --info follows:

CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -fforce-addr -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks loadpolicy sandbox sfperms sign strict"
GENTOO_MIRRORS="http://mirror.padus.net/gentoo http://mirror.uni-c.dk/gentoo http://gentoo.osuosl.org"
LC_ALL="en_DK.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="X alsa audiofile berkdb cdr crypt doc flac gd gpm gtk gtk2 hardened libwww mad mikmod mysql ncurses nls oggvorbis opengl pam perl pic pie png python readline selinux slang ssl tcpd tiff unicode userlocales x86 xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS
Comment 5 Marco Morales 2005-02-08 13:15:50 UTC
from nbaudit Makefile:

# Use this for Linux with shadow passwords
# contributed by Andrew.Tridgell@anu.edu.au
# add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
# right libraries and includes
# FLAGSM = -DLINUX -DSHADOW_PWD
# LIBSM = -lshadow


Maybe you need to set shadow passwords correctly? if itsnt the case why dont you try -DLINUX_BIGCRYPT ? 
Comment 6 Marco Morales 2005-02-15 03:04:40 UTC
Omkhar, Did you solved it?
Comment 7 Omkhar Arasaratnam (RETIRED) gentoo-dev 2005-02-15 10:31:21 UTC
sorry - not sure I understand how to implement your suggestion. Can you elaborate?
Comment 8 Marco Morales 2005-02-16 03:02:52 UTC
Created attachment 51334 [details, diff]
nbaudit-1.0-gentoo.diff

overwrite the attachment over
/usr/portage/net-analyzer/nbaudit/files/nbaudit-1.0-gentoo.diff and emerge
nbaudit
Comment 9 Omkhar Arasaratnam (RETIRED) gentoo-dev 2005-02-16 21:35:26 UTC
Still blows up:



Compiling parse_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"n
obody\"  -DLINUX -DLINUX_BIGCRYPT -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c par
se_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"n
obody\"  -DLINUX -DLINUX_BIGCRYPT -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -o nat
  nat.o client.o util.o system.o nmb.o charset.o parse_ip.o -lshadow -L/usr/X11R
6/lib/modules
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miUnion'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miEmptyData'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miIntersect'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `serverGeneration'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `Xfree'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `fbGetWinPrivateInde
x'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `miEmptyBox'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `xf86abort'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `RegisterBlockAndWak
eupHandlers'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateGCPrivate'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `PictureScreenPrivat
eIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateScreenPriva
teIndex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `Xalloc'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `AllocateGCPrivateIn
dex'
/usr/X11R6/lib/modules/libshadow.so: undefined reference to `WindowTable'
collect2: ld returned 1 exit status
make: *** [nat] Error 1

!!! ERROR: net-analyzer/nbaudit-1.0 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 10 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-11-26 15:11:44 UTC
This should now be fixed. Please check the latest ebuild and if there are still
problems re-open.