Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2009 13:06:18 +0200
From:      Alex de Kruijff <freebsd@akruijff.dds.nl>
To:        freebsd-hackers@freebsd.org
Subject:   Porting problem with gnu configure (c++ -V)
Message-ID:  <20090613110618.GA1462@Alex1.lan>

next in thread | raw e-mail | index | archive | help
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
<command line>: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/




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