From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 13 11:18:24 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A83A1065674 for ; Sat, 13 Jun 2009 11:18:24 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from CPSMTPM-EML106.kpnxchange.com (Cpsmtpm-eml106.kpnxchange.com [195.121.3.10]) by mx1.freebsd.org (Postfix) with ESMTP id E24198FC26 for ; Sat, 13 Jun 2009 11:18:23 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from ip51cc8423.speed.planet.nl ([81.204.132.35]) by CPSMTPM-EML106.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Sat, 13 Jun 2009 13:06:19 +0200 Received: from Alex1.lan (localhost [127.0.0.1]) by ip51cc8423.speed.planet.nl (8.14.2/8.14.2) with ESMTP id n5DB6IPC098681 for ; Sat, 13 Jun 2009 13:06:18 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) Received: (from akruijff@localhost) by Alex1.lan (8.14.2/8.14.2/Submit) id n5DB6ISk098579 for freebsd-hackers@freebsd.org; Sat, 13 Jun 2009 13:06:18 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) X-Authentication-Warning: Alex1.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f Date: Sat, 13 Jun 2009 13:06:18 +0200 From: Alex de Kruijff To: freebsd-hackers@freebsd.org Message-ID: <20090613110618.GA1462@Alex1.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-OriginalArrivalTime: 13 Jun 2009 11:06:19.0385 (UTC) FILETIME=[FA8E8690:01C9EC16] Subject: Porting problem with gnu configure (c++ -V) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@akruijff.dds.nl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 11:18:25 -0000 I'm converting my port samesame to use gnu configue, but came a cross a problem that is beond me. I'm able to run aclocal, autoconf, autoheader and automake --add-missing -c. I've read the docs for autoconf and automake and search the web, but dont know how to solve elegantly. I would proberbly be able to hack configure, but prevere to edit only the source files. Do other porters with more experiance have any tips for me? The machine runs on FreeBSD 6.1-p20. When building the port I get this message: ===> Configuring for samesame-1.3 configure: WARNING: you should use --build, --host, --target checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. ===> Script "configure" failed unexpectedly. - Config.log show the following: configure:2329: c++ --version >&5 c++ (GCC) 3.4.4 [FreeBSD] 20050518 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2332: $? = 0 configure:2339: c++ -v >&5 Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.4 [FreeBSD] 20050518 configure:2342: $? = 0 configure:2349: c++ -V >&5 <---------------------------- ------- ------- c++: `-V' option must have argument configure:2352: $? = 1 configure:2375: checking for C++ compiler default output file name configure:2402: c++ -O2 -fno-strict-aliasing -pipe -DWITH_DISK_STORAGE -DWITH_MM AP -D'TEMP_STORAGE_DIR="/tmp"' -DPATH_INIT=256 -DSTATIC_CACHE_CAPACITY=8192 co nftest.cpp >&5 :4:1: macro names must be identifiers configure:2405: $? = 1 configure:2443: result: configure: failed program was: | /* confdefs.h. */ / | #define PACKAGE_NAME "SameSame" | #define PACKAGE_TARNAME "samesame" | #define PACKAGE_VERSION "1.3" | #define PACKAGE_STRING "SameSame 1.3" | #define PACKAGE_BUGREPORT "samesame@akruijff.dds.nl" | #define PACKAGE "samesame" | #define VERSION "1.3" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2449: error: C++ compiler cannot create executables See `config.log' for more details. -- Alex Please copy the original recipients, otherwise I may not read your reply. http://samesame.kruijff.org/