[Bug 262854] net-mgmt/pmacct

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Mar 2022 08:51:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262854

            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:

========================== 8< =======================================

===>  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/build-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/build':
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/src'
gmake[3]: *** [Makefile:695: all] Error 2
gmake[3]: Leaving directory '/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src'

make[2]: stopped in /usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes 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

========================== >8 =======================================

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

========================== 8< =======================================

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/include
  -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 
-fstack-protector-strong  conftest.c -lcdada -lstdc++ -lpcap -L/usr/local/lib
-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: $? = 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.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3529: error: in
`/usr/ports/net-mgmt/pmacct/work/pmacct-1.7.7/src/external_libs/libcdada/build':
configure:3532: error: C compiler cannot create executables

========================== >8 =======================================

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 :)

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