Subject: compiling gnokii on netbsd
To: NetBSD-help <netbsd-help@netbsd.org>
From: Bostjan Muller <neonatus@spiritus.local.net>
List: netbsd-help
Date: 09/23/2000 16:59:29
--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

I am trying to compile gnokii (programes to connect nokia mobile telephones as modem's) on netbsd. Every time configure fails when it tries to find getopt_long in libgnugetopt. My netbsd only has libgetopt, so I tried to symlink libgetopt to libgnugetopt, but that did not work.. I still get the same error. Here is how I ran configure:
env CPPFLAGS="-I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/" LDFLAGS="-Wl,-R/usr/pkg/lib,-L/usr/pkg/lib" ./configure
and the error I ger in config.cache is attached to this mail.

Can someone please help me find out the error.. I am a complete newbie on any *BSD system, I only had linux before it. 

THX in advance!

Bostjan

--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="config.log"

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:594: checking host system type
configure:615: checking target system type
configure:633: checking build system type
configure:664: checking for gcc
configure:741: checking whether the C compiler (gcc -O2 -Wall -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib) works
configure:755: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  1>&5
configure:752: warning: return-type defaults to `int'
configure:775: checking whether the C compiler (gcc -O2 -Wall -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib) is a cross-compiler
configure:780: checking whether we are using GNU C
configure:789: gcc -E conftest.c
configure:804: checking whether gcc accepts -g
configure:832: checking how to run the C preprocessor
configure:853: gcc -E -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ conftest.c >/dev/null 2>conftest.out
configure:895: checking for ld
configure:927: checking for rm
configure:961: checking for gmake
configure:1000: checking for a BSD compatible install
configure:1096: checking whether gmake sets ${MAKE}
configure:1126: checking for locale.h
configure:1136: gcc -E -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ conftest.c >/dev/null 2>conftest.out
configure:1165: checking for setlocale
configure:1193: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  1>&5
configure:1225: gcc -E -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ conftest.c >/dev/null 2>conftest.out
configure:1271: checking for gettext
configure:1299: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  1>&5
/tmp/cceuDRuU.o: Undefined symbol `_gettext' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 1276 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettext(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gettext();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettext) || defined (__stub___gettext)
choke me
#else
gettext();
#endif

; return 0; }
configure:1326: checking for gettext in -lintl
configure:1345: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c -lintl   -L/usr/local/lib 1>&5
configure:1396: checking for msgfmt
configure:1429: checking for dcgettext
configure:1457: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure:1484: checking for gmsgfmt
configure:1516: checking for xgettext
configure:1548: checking for msgmerge
configure:1612: gcc -o conftest -O2 -Wall -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure:1665: checking for pthread_attr_init in -lpthread
configure:1684: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c -lpthread   -L/usr/local/lib -lintl 1>&5
configure:1805: checking for tm_gmtoff in struct tm
configure:1814: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure:1836: checking for cfsetspeed in termios.h
configure:1845: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure:1864: checking for cfsetispeed and cfsetospeed in termios.h
configure:1873: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure:1894: checking for c_ispeed and c_ospeed in struct termios
configure:1903: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
configure: In function `main':
configure:1899: invalid type argument of `->'
configure: failed program was:
#line 1896 "configure"
#include "confdefs.h"
#include <termios.h>
int main() {
struct termios t; t.c_ispeed = B9600; t->c_ospeed = B9600;
; return 0; }
configure:1925: gcc -E -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ conftest.c >/dev/null 2>conftest.out
configure:1962: checking for getopt_long
configure:1990: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c  -L/usr/local/lib -lintl 1>&5
/tmp/ccNMYucx.o: Undefined symbol `_getopt_long' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 1967 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getopt_long(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
choke me
#else
getopt_long();
#endif

; return 0; }
configure:2010: checking for getopt_long in -lgnugetopt
configure:2029: gcc -o conftest -O2 -Wall -DUSE_NLS -I/usr/pkg/include/ -I/usr/pkgsrc/devel/libgetopt/files,-L/usr/pkg/lib/ -Wl,-R/usr/pkg/lib,-L/usr/pkg/lib conftest.c -lgnugetopt   -L/usr/local/lib -lintl -L/usr/local/lib 1>&5
ld: -lgnugetopt: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 2018 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
getopt_long()
; return 0; }

--2fHTh5uZTiUOsy+g--