From owner-freebsd-ports@freebsd.org Sun Oct 15 12:18:15 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40202E42333 for ; Sun, 15 Oct 2017 12:18:15 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0617C7513E for ; Sun, 15 Oct 2017 12:18:15 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x235.google.com with SMTP id 72so15167931itk.3 for ; Sun, 15 Oct 2017 05:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8xjhHGaA3JFidbwcvAPGv/dAtcJiQtqlezBEOrmV0WA=; b=lQapLmaB4A+3R6Bzkfm8OBbs/vyki1O7rsvxmehuAbxdQBjwpWHYJ2+HiIP105suNK vqVWi6mRy7lLNXhbFuhFbd6xZxpnudvnD9WfRfy1oXR1DDHdgQPICF0DJNeUTrmbumFG EEQEqsy4z6UduU29Db5aIx+3uXNo608Hn6TyazK7lm654c/1yF0psrJ2E/gNrohY/Ppf YOrNlkmvpW5i2U2YaQ/CC6npv1EJrPxkVv76NvyHYuOrnlZ3/ED8mlYxULgUumiuW1nt NoOrShEN80Gyp1rsmjhJozK05hkGIMwSqUgO39RBj58tcfgz80I2S/JekPH6IDkM+ZYZ daLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8xjhHGaA3JFidbwcvAPGv/dAtcJiQtqlezBEOrmV0WA=; b=Q+T/bLUgGJkrNm154zRRbINgWjEpl3PAzu/nqcSU4WzqfJKqeitYlliZCbAuBgweyS xlOPGNyVbgMK+DHVc6L28uxih06xdSOGIQATkn3b4FtHlieU28crHSRdYXSWX1FchMwS FQMtCiMrgynEnd3Ch+FNGTS7EDzS43zJchZzbqx3maQvrhswdc6vBtSXqYtZxWOmOVHD QErOhDGInYuXu3AtBV03ZUCRJ+mtYVYWpZnuJoy7DfeuPe7mpZYLjnKcpiqNZm6kfvFk GFyvu1PL0FYVHCL+hjxWX+pjUPviY5BKAXa774Q18SAGGMbsPwKbq7lLuhTp2Q2ykNrj LYTQ== X-Gm-Message-State: AMCzsaW6C3dWIHIoPCWzfbDtqGDpycgYeTAJMruIHln6haWLcRHD5NwZ zM9o5Z6aFSuMqWcBpZfzO+Lb0vW4UV4ZCZcdwbs4qw== X-Google-Smtp-Source: AOwi7QDxtwe3yfPIwBYojyP0QUCD+4xisj+2Rsv8PIzxQosSpHikQhW3keiBZNadgDAXJlSozab+iHKv2N8v3kPvuZI= X-Received: by 10.36.213.213 with SMTP id a204mr9731222itg.51.1508069893895; Sun, 15 Oct 2017 05:18:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Sun, 15 Oct 2017 05:18:13 -0700 (PDT) From: blubee blubeeme Date: Sun, 15 Oct 2017 20:18:13 +0800 Message-ID: Subject: configure scripts and dlopen To: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 12:18:15 -0000 I am running into some compiling/ linking errors further along in my porting process so I re-checked the configure step. It seems to be that the issue is related to dlopen. What configure options can I pass to use the standard FreeBSD dlopen equivalent calls? The gmake error occurs here: gmake[4]: Entering directory '/usr/ports/dev/tmp/work/tmp-c590592/upstream/ltdl' CC loaders/dlopen.lo CC loaders/libltdlc_la-preopen.lo CC libltdlc_la-lt__alloc.lo CC libltdlc_la-lt_dlloader.lo CC libltdlc_la-lt_error.lo CC libltdlc_la-ltdl.lo CC libltdlc_la-slist.lo CC lt__argz.lo In file included from lt__alloc.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. In file included from lt_dlloader.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. In file included from loaders/dlopen.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. In file included from lt_error.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. In file included from ltdl.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. gmake[4]: *** [Makefile:788: libltdlc_la-lt__alloc.lo] Error 1 gmake[4]: *** Waiting for unfinished jobs.... gmake[4]: *** [Makefile:795: libltdlc_la-lt_dlloader.lo] Error 1 In file included from loaders/preopen.c:32:0: libltdl/lt__private.h:35:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. gmake[4]: *** [Makefile:731: loaders/dlopen.lo] Error 1 gmake[4]: *** [Makefile:802: libltdlc_la-lt_error.lo] Error 1 gmake[4]: *** [Makefile:809: libltdlc_la-ltdl.lo] Error 1 gmake[4]: *** [Makefile:781: loaders/libltdlc_la-preopen.lo] Error 1 lt__argz.c:33:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H ^ compilation terminated. In file included from libltdl/slist.h:46:0, from slist.c:34: ./libltdl/lt__glibc.h:36:23: fatal error: config.h: No such file or directory # include LT_CONFIG_H There is a config.h file in the root of my source files, here's the contents: https://pastebin.com/j7uAJGw6 This is the output of the configure script: ----------------------------------------------------------- checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... (cached) /usr/bin/tar checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking for cc option to support OpenMP... unsupported checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking dependency style of c++... gcc3 checking standard compliance level of c++... 199711L checking for ar... ar checking the archiver (ar) interface... ar checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for a sed that does not truncate output... (cached) /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/local/bin/msgfmt checking for gmsgfmt... /usr/local/bin/msgfmt checking for xgettext... /usr/local/bin/xgettext checking for msgmerge... /usr/local/bin/msgmerge checking build system type... amd64-portbld-freebsd12.0 checking host system type... amd64-portbld-freebsd12.0 checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... no checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl checking how to link with libintl... /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... (cached) /usr/bin/fgrep checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B checking the name lister (/usr/local/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... (cached) 262144 checking how to convert amd64-portbld-freebsd12.0 file names to amd64-portbld-freebsd12.0 format... func_convert_file_noop checking how to convert amd64-portbld-freebsd12.0 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/local/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for dlfcn.h... (cached) yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... freebsd12.0 ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... (cached) yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... c++ -E checking for ld used by c++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking for c++ option to produce PIC... -fPIC -DPIC checking if c++ PIC flag -fPIC -DPIC works... yes checking if c++ static flag -static works... yes checking if c++ supports -c -o file.o... yes checking if c++ supports -c -o file.o... (cached) yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd12.0 ld.so checking how to hardcode library paths into programs... immediate checking what extension is used for runtime loadable modules... .so checking what variable specifies run-time module search path... LD_LIBRARY_PATH checking for the default library search path... /lib /usr/lib checking for library containing dlopen... none required checking for dlerror... yes checking for shl_load... (cached) no checking for shl_load in -ldld... (cached) no checking for dld_link in -ldld... no checking for _ prefix in compiled symbols... no checking whether deplibs are loaded by dlopen... yes checking for argz.h... (cached) no checking for error_t... no checking for argz_add... no checking for argz_append... no checking for argz_count... (cached) no checking for argz_create_sep... no checking for argz_insert... no checking for argz_next... (cached) no checking for argz_stringify... (cached) no checking whether libtool supports -dlopen/-dlpreopen... yes checking for ltdl.h... yes checking whether lt_dlinterface_register is declared... yes checking for lt_dladvise_preload in -lltdl... no checking where to find libltdl headers... -I$(top_srcdir)/upstream/ltdl checking where to find libltdl library... $(top_build_prefix)upstream/ltdl/ libltdlc.la checking for unistd.h... (cached) yes checking for dl.h... (cached) no checking for sys/dl.h... no checking for dld.h... no checking for mach-o/dyld.h... no checking for dirent.h... (cached) yes checking for closedir... (cached) yes checking for opendir... (cached) yes checking for readdir... (cached) yes checking for strlcat... (cached) yes checking for strlcpy... (cached) yes checking for boostlib >= 1.49.0... yes checking whether the Boost::System library is available... yes checking for exit in -lboost_system... yes checking whether the Boost::Filesystem library is available... yes checking for exit in -lboost_filesystem... yes checking whether the Boost::IOStreams library is available... yes checking for exit in -lboost_iostreams... yes checking whether the Boost::Program_Options library is available... yes checking for exit in -lboost_program_options... yes checking whether the Boost::Regex library is available... yes checking for exit in -lboost_regex... yes checking whether the Boost::Thread library is available... yes checking for exit in -lboost_thread... yes checking whether the Boost::Unit_Test_Framework library is available... yes checking for doxygen... doxygen checking for perl... /usr/local/bin/perl checking for dot... /usr/local/bin/dot checking for pdflatex... /usr/local/bin/pdflatex checking for LIBUDEV... no checking for LIBUSB... yes checking for LIBMAGICK_PP... no checking for LIBMAGICK_PP... yes checking for gm... no checking for convert... convert checking for LIBGTKMM... yes checking sane/sane.h usability... yes checking sane/sane.h presence... yes checking for sane/sane.h... yes checking SANE version... 1.0.25 checking where SANE backends are installed... /usr/local/lib/sane checking where SANE configuration is kept... /usr/local/etc/sane.d checking for /usr/local/etc/sane.d/dll.conf... yes checking what udev configuration directory to use... /etc/udev checking for /etc/udev/rules.d... no configure: WARNING: disabling udev integration checking for uncrustify... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking size of unsigned long long... 8 checking for __attribute__... yes checking for nanosleep... yes checking for poll... (cached) yes checking for sleep... (cached) yes checking for usleep... (cached) yes checking for sqrt in -lm... yes checking for jpeg_start_compress in -ljpeg... yes checking for TIFFOpen in -ltiff... yes checking for magic_open in -lmagic... yes checking for libusb_error_name in -lusb-1.0... no checking for libusb_get_port_number in -lusb-1.0... no checking for sigaction... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating connexions/Makefile config.status: creating doc/Makefile config.status: creating doc/tests/Makefile config.status: creating drivers/Makefile config.status: creating drivers/esci/Makefile config.status: creating drivers/esci/tests/Makefile config.status: creating filters/Makefile config.status: creating filters/tests/Makefile config.status: creating gtkmm/Makefile config.status: creating gtkmm/about.xml config.status: creating lib/Makefile config.status: creating lib/tests/Makefile config.status: creating sane/Makefile config.status: creating sane/tests/Makefile config.status: creating src/Makefile config.status: creating src/tests/Makefile config.status: creating tests/Makefile config.status: creating po/Makefile.in config.status: creating upstream/ltdl/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing libtool commands