5 May 2005 05:24
Re: FreeBSD 4.10 installation issues
Peter Van Epp <vanepp <at> sfu.ca>
2005-05-05 03:24:42 GMT
2005-05-05 03:24:42 GMT
It appears the copy of ports that you got is broken. I'd guess from the error message that configure didn't recognize the hostname as FreeBSD and thus didn't set the __FreeBSD__ define. Upgrading FreeBSD to a later version would be one option, but as Eric suggested doing a manual build of the latest code is probably easier. The latest code can be found by anon ftp to qosient.com in /dev/argus-2.0/argus-2.0.6.fixes.1.tar.gz and /dev/argus-2.0/argus-clients-2.0.6.fixes.1.tar.gz both of which build and install just fine on FreeBSD 4.10-RELEASE. If you want to be absolutely up to date there are 4 or 5 patches on top of fixes.1 as well. Alternately you could manually add the __FreeBSD__ to the Makefiles like this: vi /usr/ports/net-mgmt/argus/work/argus-2.0.6/common/Makefile and add -D__FreeBSD__ to the end of this string: DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_S TRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TCP_WRAPPER=1 -DHAVE_SYS _SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG _H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC_HEADER S=1 to give: DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_S TRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TCP_WRAPPER=1 -DHAVE_SYS _SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG _H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC_HEADER S=1 -D__FreeBSD__ then I expect that would work (it will get overwritten if configure is run again though). Peter Van Epp / Operations and Technical Support Simon Fraser University, Burnaby, B.C. Canada On Tue, May 03, 2005 at 02:30:28PM +0700, Affan Basalamah wrote: > Hi there, > > I would like to know if any of you experience things like I did. > > I try to install argus from FreeBSD 4.10 ports tree, /usr/ports/net-mgmt/argus, > but it ended with message that it cannot found ../lib/argus_common.a > and bin/argus_bpf. > Anyone has an idea ? I use portinstall to assist installation process > on FreeBSD. > > Regards, > > -affan > > > [monitoring] # portinstall argus > ---> Installing 'argus-2.0.6' from a port (net-mgmt/argus) > ---> Building '/usr/ports/net-mgmt/argus' > ===> Cleaning for libiconv-1.9.2_1 > ===> Cleaning for bison-1.75_2 > ===> Cleaning for gettext-0.14.1 > ===> Cleaning for libtool-1.5.10_1 > ===> Cleaning for m4-1.4.3 > ===> Cleaning for argus-clients-2.0.6 > ===> Cleaning for expat-1.95.8_1 > ===> Cleaning for argus-2.0.6 > ===> Vulnerability check disabled > ===> Extracting for argus-2.0.6 > => Checksum OK for argus-2.0.6.tar.gz. > ===> Patching for argus-2.0.6 > ===> Applying FreeBSD patches for argus-2.0.6 > ===> argus-2.0.6 depends on executable: bison - found > ===> Configuring for argus-2.0.6 > configure: WARNING: you should use --build, --host, --target > checking build system type... i386-portbld-freebsd4.10 > checking host system type... i386-portbld-freebsd4.10 > checking target system type... i386-portbld-freebsd4.10 > > [deleted for brevity] > > > ===> Building for argus-2.0.6 > ### Making in /usr/ports/net-mgmt/argus/work/argus-2.0.6/common > > [deleted for brevity] > > cc -O2 -O -pipe -I. -I../include -I/usr/local/include > -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SOCKIO_H=1 > -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 > -DHAVE_SYSLOG_H=1 -DCONFIG_X86_BSWAP=1 -DSTDC_HEADERS=1 > -DARGUS_SYSLOG=1 -c ./argus_filter.c > ./argus_filter.c:3717: conflicting types for `ether_ntohost' > /usr/include/net/ethernet.h:379: previous declaration of `ether_ntohost' > ./argus_filter.c:3718: conflicting types for `ether_hostton' > /usr/include/net/ethernet.h:376: previous declaration of `ether_hostton' > *** Error code 1 > > Stop in /usr/ports/net-mgmt/argus/work/argus-2.0.6/common. > ### Done with /usr/ports/net-mgmt/argus/work/argus-2.0.6/common > ### Making in /usr/ports/net-mgmt/argus/work/argus-2.0.6/server > > [deleted for brevity] > > cc -o ../bin/argus_bpf argus.o ArgusAuth.o ArgusModeler.o > ArgusOutput.o ArgusSource.o ArgusUtil.o Argus_tcp.o Argus_udp.o > Argus_icmp.o Argus_app.o Argus_arp.o Argus_frag.o Argus_esp.o > Argus_mac.o version.o ../lib/libpcap.a ../lib/argus_common.a -lm > cc: ../lib/argus_common.a: No such file or directory > *** Error code 1 > > Stop in /usr/ports/net-mgmt/argus/work/argus-2.0.6/server. > ### Done with /usr/ports/net-mgmt/argus/work/argus-2.0.6/server > ---> Installing the new version via the port > ===> Installing for argus-2.0.6 > ===> argus-2.0.6 depends on file: /usr/local/bin/ragrep - found > ===> Generating temporary packing list > ===> Checking if net-mgmt/argus already installed > install -c -s -o root -g wheel -m 555 > /usr/ports/net-mgmt/argus/work/argus-2.0.6/bin/argus_bpf > /usr/local/sbin/argus > install: /usr/ports/net-mgmt/argus/work/argus-2.0.6/bin/argus_bpf: No > such file or directory > *** Error code 71 > > Stop in /usr/ports/net-mgmt/argus. > *** Error code 1 > > Stop in /usr/ports/net-mgmt/argus. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portinstall57581.0 make reinstall > ** Fix the installation problem and try again. > ** Listing the failed packages (*:skipped / !:failed) > ! net-mgmt/argus (install error) > ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
RSS Feed