Re: FreeBSD Port: mpeg4ip-libmp4v2-1.6.1 - getopt.c compile error with alt ${LOCALBASE}

2009-06-01 Thread David P. Discher


I hadn't heard anything back on this error yet.   I've changed my  
LOCALBASE back defaults, which as expected, made no different here.


Adding 'CONFIGURE_ARGS= --disable-warns-as-err', doesn't seem to have  
an affect, or post-patch re-inplace command doesn't seem to be nuking  
all the  -Wmissing-prototypes its suppose to be.



===  Building for mpeg4ip-libmp4v2-1.6.1
if /bin/sh /usr/local/bin/libtool --tag=CC --mode=compile cc - 
DHAVE_CONFIG_H -I. -I. -I../.. -I../../include  -I/usr/local/include  - 
D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes -Wmissing- 
prototypes -O3 -fno-strict-aliasing -pipe -march=nocona -DMPEG4IP -I/ 
usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 - 
D_REENTRANT -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c -o  
getopt.lo getopt.c; \
 then mv -f .deps/getopt.Tpo .deps/getopt.Plo; else rm -f .deps/ 
getopt.Tpo; exit 1; fi

mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/local/ 
include -D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes - 
Wmissing-prototypes -O3 -fno-strict-aliasing -pipe -march=nocona - 
DMPEG4IP -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1  
-D_REENTRANT -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c getopt.c  - 
fPIC -DPIC -o .libs/getopt.o

cc1: warnings being treated as errors
getopt.c: In function '_getopt_internal':
getopt.c:553: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type
getopt.c:575: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type

gmake: *** [getopt.lo] Error 1
*** Error code 2



---
David P. Discher  * http://davidpdischer.com/ * C: 408.368.3725
d...@dpdtech.com *  AIM: DavidDPD | Y!M: daviddpdz * H: 408.541.0159
---






On May 19, 2009, at 10:50 PM, David P. Discher wrote:



For reasons that are required, I have LOCALBASE set to /home/opt.   
I'm trying to compile gnome2, kde4, and xorg.


While I'm trying to build out of the box (up-to-date cvsup'ed ports  
tree) ... I get this error  for mpeg4ip-libmp4v2-1.6.1:



cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/home/opt/ 
include -D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes  
-Wmissing-prototypes -O3 -fno-strict-aliasing -pipe -march=nocona - 
DMPEG4IP -I/home/opt/include/SDL -I/home/opt/include - 
D_GNU_SOURCE=1 -D_REENTRANT -MT getopt.lo -MD -MP -MF .deps/ 
getopt.Tpo -c getopt.c  -fPIC -DPIC -o .libs/getopt.o

cc1: warnings being treated as errors
getopt.c: In function '_getopt_internal':
getopt.c:553: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type
getopt.c:575: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type

gmake: *** [getopt.lo] Error 1
*** Error code 2



After consulting with a higher FreeBSD power, he suggested 'const  
poisoning'.  I went ahead and backed off all the 'char *const*' in  
getopt.c to char ** to a point where I get a conflict with unistd :


../../include/mpeg4ip_getopt.h:132: error: declaration of C  
function 'int getopt(int, char**, const char*)' conflicts with
/usr/include/unistd.h:380: error: previous declaration 'int  
getopt(int, char* const*, const char*)' here

*** Error code 1



Thinking that using gnu getopt's would help fix this, as the  
config.log says that gnugetopt can't be found:



configure:24547: checking for getopt_long in -lgnugetopt
configure:24582: cc -o conftest -O3 -fno-strict-aliasing -pipe - 
march=nocona  -I/home/opt/include   -L/home/opt/lib - 
pthreadconftest.c -lgnugetopt   5

/usr/bin/ld: cannot find -lgnugetopt


Of course, this is libgnugetopt is not in /home/opt/lib, and there  
is no longer a port of this.


This is about as far as I could get ... so I'm looking for help and  
suggestions at this.  Thanks !


---
David P. Discher  * http://davidpdischer.com/ * C: 408.368.3725
d...@dpdtech.com *  AIM: DavidDPD | Y!M: daviddpdz * H: 408.541.0159
---






___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


FreeBSD Port: mpeg4ip-libmp4v2-1.6.1 - getopt.c compile error with alt ${LOCALBASE}

2009-05-19 Thread David P. Discher


For reasons that are required, I have LOCALBASE set to /home/opt.  I'm  
trying to compile gnome2, kde4, and xorg.


While I'm trying to build out of the box (up-to-date cvsup'ed ports  
tree) ... I get this error  for mpeg4ip-libmp4v2-1.6.1:



 cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/home/opt/ 
include -D_REENTRANT -Werror -Wall -Wcast-align -Wstrict-prototypes - 
Wmissing-prototypes -O3 -fno-strict-aliasing -pipe -march=nocona - 
DMPEG4IP -I/home/opt/include/SDL -I/home/opt/include -D_GNU_SOURCE=1  
-D_REENTRANT -MT getopt.lo -MD -MP -MF .deps/getopt.Tpo -c getopt.c   
-fPIC -DPIC -o .libs/getopt.o

cc1: warnings being treated as errors
getopt.c: In function '_getopt_internal':
getopt.c:553: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type
getopt.c:575: warning: passing argument 1 of 'exchange' discards  
qualifiers from pointer target type

gmake: *** [getopt.lo] Error 1
*** Error code 2



After consulting with a higher FreeBSD power, he suggested 'const  
poisoning'.  I went ahead and backed off all the 'char *const*' in  
getopt.c to char ** to a point where I get a conflict with unistd :


../../include/mpeg4ip_getopt.h:132: error: declaration of C function  
'int getopt(int, char**, const char*)' conflicts with
/usr/include/unistd.h:380: error: previous declaration 'int  
getopt(int, char* const*, const char*)' here

*** Error code 1



Thinking that using gnu getopt's would help fix this, as the  
config.log says that gnugetopt can't be found:



configure:24547: checking for getopt_long in -lgnugetopt
configure:24582: cc -o conftest -O3 -fno-strict-aliasing -pipe - 
march=nocona  -I/home/opt/include   -L/home/opt/lib - 
pthreadconftest.c -lgnugetopt   5

/usr/bin/ld: cannot find -lgnugetopt


Of course, this is libgnugetopt is not in /home/opt/lib, and there is  
no longer a port of this.


This is about as far as I could get ... so I'm looking for help and  
suggestions at this.  Thanks !


---
David P. Discher  * http://davidpdischer.com/ * C: 408.368.3725
d...@dpdtech.com *  AIM: DavidDPD | Y!M: daviddpdz * H: 408.541.0159
---



___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org