Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2022 08:51:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262854] net-mgmt/pmacct
Message-ID:  <bug-262854-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262854

            Bug ID: 262854
           Summary: net-mgmt/pmacct
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pi@FreeBSD.org
          Reporter: emile@globenet.org
             Flags: maintainer-feedback?(pi@FreeBSD.org)
          Assignee: pi@FreeBSD.org

I try to build pmacct with ports on a fresh FreeBSD by I get some trouble
building external lib libcdada:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D 8< =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D>  Building for pmacct-1.7.7
--- all-recursive ---
Making all in src
gmake[3]: Entering directory '/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/=
src'
gmake  all-recursive
gmake[4]: Entering directory '/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/=
src'
Making all in external_libs
gmake[5]: Entering directory
'/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs'
[dep: libcdada] Checking...
[dep: libcdada] Skipping commit sync..
[dep: libcdada] Building...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:9: installing 'build-aux/compile'
configure.ac:7: installing 'build-aux/missing'
examples/Makefile.am: installing 'build-aux/depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p...
/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/libcdada/bui=
ld-aux/install-sh
-c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in
`/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/libcdada/bu=
ild':
configure: error: C compiler cannot create executables
See `config.log' for more details
gmake[5]: *** [Makefile:507: _libcdada] Error 1
gmake[5]: Leaving directory
'/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs'
gmake[4]: *** [Makefile:1358: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/s=
rc'
gmake[3]: *** [Makefile:695: all] Error 2
gmake[3]: Leaving directory '/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/s=
rc'

make[2]: stopped in /usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net-mgmt/pmacct
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/pmacct

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D >8 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The problem is on configure step, here a part of config.log:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D 8< =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

configure:3460: checking whether the C compiler works
configure:3482: cc -O2 -O2 -pipe  -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing  -Wall -Werror
-I/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/rootfs/inc=
lude
  -I/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src -isystem
/usr/local/include
-L/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/rootfs/lib=
=20
-fstack-protector-strong  conftest.c -lcdada -lstdc++ -lpcap -L/usr/local/l=
ib
-ldl -lm -lpthread >&5
ld: error: unable to find library -lcdada
cc: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3486: $? =3D 1
configure:3524: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "LIBCDADA"
| #define PACKAGE_TARNAME "libcdada"
| #define PACKAGE_VERSION "v0.3.5"
| #define PACKAGE_STRING "LIBCDADA v0.3.5"
| #define PACKAGE_BUGREPORT "marcdevel@gmail.com"
| #define PACKAGE_URL "http://github.com/msune/libcdada"
| #define PACKAGE "libcdada"
| #define VERSION "v0.3.5"
| /* end confdefs.h.  */
|=20
| int
| main ()
| {
|=20
|   ;
|   return 0;
| }
configure:3529: error: in
`/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/libcdada/bu=
ild':
configure:3532: error: C compiler cannot create executables

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D >8 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

As you can see, configure try to compile the test program with -lcdada, this
obviously can't work since I try to build lcdada itseft ...

Building pmacct with poudriere works well.

This is my first time with FreeBSD, maybe I miss something :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262854-7788>