Subject: pkg/25690: Cannot compile devel/libidn on UltraSparc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <stephane@sources.org>
List: pkgsrc-bugs
Date: 05/23/2004 22:25:07
>Number:         25690
>Category:       pkg
>Synopsis:       Cannot compile devel/libidn on UltraSparc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 23 20:31:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stephane Bortzmeyer
>Release:        NetBSD 1.6.2
>Organization:
Home
>Environment:
System: NetBSD preston 1.6.2 NetBSD 1.6.2 (GENERIC) #3: Mon Feb 9 18:37:36 CET 2004 he@kveite.urc.uninett.no:/usr/users/he/build-1-6/obj.sparc64/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	The package for libidn (Unicode domain names, RFC 3490) seems
        broken, it does not compile at all:
Making all in src
gengetopt --input  --file-name idn_cmd ||  test -f idn_cmd.h -a -f idn_cmd.c ||  cp ./idn_cmd.h ./idn_cmd.h .
gengetopt: not found
gengetopt --input  --file-name idn_cmd ||  test -f idn_cmd.h -a -f idn_cmd.c ||  cp ./idn_cmd.h ./idn_cmd.h .
gengetopt: not found
/usr/bin/make  all-am
gengetopt --input  --file-name idn_cmd ||  test -f idn_cmd.h -a -f idn_cmd.c ||  cp ./idn_cmd.h ./idn_cmd.h .
gengetopt: not found
gengetopt --input  --file-name idn_cmd ||  test -f idn_cmd.h -a -f idn_cmd.c ||  cp ./idn_cmd.h ./idn_cmd.h .
gengetopt: not found
/bin/sh ../libtool --mode=link gcc  -O -ffixed-g4 -I/usr/pkg/include -I/usr/include   -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o idn  idn.o idn_cmd.o ../lib/libidn.la getopt1.lo 
gcc -O -ffixed-g4 -I/usr/pkgsrc/devel/libidn/work/.buildlink/include -Wl,-R/usr/pkg/lib -o .libs/idn idn.o idn_cmd.o .libs/getopt1.o  ../lib/.libs/libidn.so -L/usr/pkgsrc/devel/libidn/work/.buildlink/lib  -Wl,--rpath -Wl,/usr/pkg/lib
.libs/getopt1.o: In function `getopt_long':
.libs/getopt1.o(.text+0x18): undefined reference to `_getopt_internal'
.libs/getopt1.o: In function `getopt_long_only':
.libs/getopt1.o(.text+0x40): undefined reference to `_getopt_internal'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libidn/work/libidn-0.3.3/src
*** Error code 1


>How-To-Repeat:
	cd /usr/pkgsrc/devel/libidn && make

>Fix:
      No fix known.
      But I noticed that libidn in my last week pkgsrc is quite old (8 months). 
      The current upstream version is 0.4.5, not the 0.3.3 in pkgsrc.
      Also, the same library compiles fine on my other UltraSparc, which runs 
      Debian/Linux so it is probably not a 64bits issue.
>Release-Note:
>Audit-Trail:
>Unformatted: