Subject: broken libgetopt (for me!)
To: None <tech-pkg@NetBSD.org>
From: PERETTI Dominique <dperetti@lachoseinteractive.net>
List: tech-pkg
Date: 02/19/2006 12:12:55
Hi,

I can't get libgetopt to compile on my NetBSD powered Red Hat 7.2.

Thanks for any suggestion !

I'm getting this :

[dom@ns3314 libgetopt]# /usr/pkg/bin/bmake
===> *** No /home/dom/work/pkgsrc/pkgsrc/distfiles/pkg- 
vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Building for libgetopt-1.4.1
cd /home/dom/work/pkgsrc/pkgsrc/devel/libgetopt/work/libgetopt &&  
libtool --mode=compile gcc -O2   -c getopt_long.c
gcc -O2 -c getopt_long.c  -fPIC -DPIC -o .libs/getopt_long.o
getopt_long.c: In function `getopt_internal':
getopt_long.c:204: `optreset' undeclared (first use in this function)
getopt_long.c:204: (Each undeclared identifier is reported only once
getopt_long.c:204: for each function it appears in.)
getopt_long.c: In function `getopt_long':
getopt_long.c:408: arithmetic on pointer to an incomplete type
getopt_long.c:408: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:410: arithmetic on pointer to an incomplete type
getopt_long.c:410: dereferencing pointer to incomplete type
getopt_long.c:414: arithmetic on pointer to an incomplete type
getopt_long.c:414: dereferencing pointer to incomplete type
getopt_long.c:432: arithmetic on pointer to an incomplete type
getopt_long.c:432: dereferencing pointer to incomplete type
getopt_long.c:433: `no_argument' undeclared (first use in this function)
getopt_long.c:441: arithmetic on pointer to an incomplete type
getopt_long.c:441: dereferencing pointer to incomplete type
getopt_long.c:442: arithmetic on pointer to an incomplete type
getopt_long.c:442: dereferencing pointer to incomplete type
getopt_long.c:448: arithmetic on pointer to an incomplete type
getopt_long.c:448: dereferencing pointer to incomplete type
getopt_long.c:448: `required_argument' undeclared (first use in this  
function)
getopt_long.c:449: arithmetic on pointer to an incomplete type
getopt_long.c:449: dereferencing pointer to incomplete type
getopt_long.c:449: `optional_argument' undeclared (first use in this  
function)
getopt_long.c:452: arithmetic on pointer to an incomplete type
getopt_long.c:452: dereferencing pointer to incomplete type
getopt_long.c:461: arithmetic on pointer to an incomplete type
getopt_long.c:461: dereferencing pointer to incomplete type
getopt_long.c:473: arithmetic on pointer to an incomplete type
getopt_long.c:473: dereferencing pointer to incomplete type
getopt_long.c:474: arithmetic on pointer to an incomplete type
getopt_long.c:474: dereferencing pointer to incomplete type
getopt_long.c:487: arithmetic on pointer to an incomplete type
getopt_long.c:487: dereferencing pointer to incomplete type
getopt_long.c:488: arithmetic on pointer to an incomplete type
getopt_long.c:488: dereferencing pointer to incomplete type
getopt_long.c:488: arithmetic on pointer to an incomplete type
getopt_long.c:488: dereferencing pointer to incomplete type
getopt_long.c:491: arithmetic on pointer to an incomplete type
getopt_long.c:491: dereferencing pointer to incomplete type
*** Error code 1

Stop.
bmake: stopped in /home/dom/work/pkgsrc/pkgsrc/devel/libgetopt
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /home/dom/work/pkgsrc/pkgsrc/devel/libgetopt/work/.work.log
===>
*** Error code 1

Stop.
bmake: stopped in /home/dom/work/pkgsrc/pkgsrc/devel/libgetopt
[dom@ns3314 libgetopt]#