ports/54419: [PATCH] Compile failure with DIVX 5

Melvyn Sopacua melvyn at webteckies.org
Sat Jul 12 20:20:21 UTC 2003


>Number:         54419
>Category:       ports
>Synopsis:       [PATCH] Compile failure with DIVX 5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 12 13:20:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Melvyn Sopacua
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD ghost.lan.webteckies.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Jul 5 18:39:46 CEST 2003 root at ghost.lan.webteckies.org:/usr/obj/usr/src/sys/GHOST i386


	
>Description:
	Compilation fails when linux-divx5 is installed, because getopt.h is
	not found.
	Symptom:
transcode.c:42: getopt.h: No such file or directory
transcode.c: In function `main':
transcode.c:678: elements of array `long_options' have incomplete type
transcode.c:680: warning: excess elements in struct initializer
transcode.c:680: warning: (near initialization for `long_options[0]')
transcode.c:680: `no_argument' undeclared (first use in this function)
transcode.c:680: (Each undeclared identifier is reported only once
transcode.c:680: for each function it appears in.)
transcode.c:680: warning: excess elements in struct initializer
transcode.c:680: warning: (near initialization for `long_options[0]')

[ snip LONG list ]

transcode.c:782: invalid use of undefined type `struct option'
transcode.c:678: storage size of `long_options' isn't known
transcode.c:1022: warning: implicit declaration of function `getopt_long_only'
gmake[2]: *** [transcode.o] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
transcode.c:680: warning: excess elements in struct initializer
>How-To-Repeat:
	cd /usr/ports/multimedia/linux-divx4linux
	make install clean
	cd /usr/ports/multimedia/transcode
	make
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/transcode/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile	10 Jul 2003 08:55:16 -0000	1.28
+++ Makefile	12 Jul 2003 20:04:56 -0000
@@ -229,7 +229,7 @@
 
 .if defined(WITH_DIVX5)
 BUILD_DEPENDS+=	${LINUXBASE}/usr/lib/libdivxdecore.so:${PORTSDIR}/multimedia/linux-divx4linux
-CONFIGURE_ENV+= CFLAGS="-I${LINUXBASE}/usr/include/divx" CPPFLAGS="-I${LINUXBASE}/usr/include/divx"
+CONFIGURE_ENV+= CFLAGS="-I${LINUXBASE}/usr/include/divx -I/usr/local/include" CPPFLAGS="-I${LINUXBASE}/usr/include/divx -I/usr/local/include"
 .else
 .endif
 


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list