Opened 11 years ago

Closed 11 years ago

#24672 closed defect (fixed)

mlt needs to ensure it's UsingTheRightCompiler

Reported by: ryandesign (Ryan Schmidt) Owned by: ddennedy (Dan Dennedy)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: mlt


mlt isn't ensuring it's UsingTheRightCompiler:

$ sudo port install mlt +universal
--->  Computing dependencies for mlt
--->  Fetching mlt
--->  Verifying checksum(s) for mlt
--->  Extracting mlt
--->  Configuring mlt
--->  Building mlt
Error: Target returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_multimedia_mlt/work/mlt" && /usr/bin/nice -n 10 /usr/bin/make -j2 all " returned error 2
Command output: list='src/framework src/mlt++ src/melt src/modules src/swig profiles'; \
	for subdir in $list; do \
		/usr/bin/make -s -C $subdir depend || exit 1; \
		/usr/bin/make -C $subdir all || exit 1; \
cc -MM -O2 -I/opt/local/include -I/opt/local/libexec/qt4-mac/include -Wall -fPIC -DPIC -O2 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -fPIC -DPIC -O2 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DPREFIX="/opt/local" -DLIBDIR="/opt/local/lib" mlt_frame.c mlt_geometry.c mlt_deque.c mlt_property.c mlt_properties.c mlt_events.c mlt_parser.c mlt_service.c mlt_producer.c mlt_multitrack.c mlt_playlist.c mlt_consumer.c mlt_filter.c mlt_transition.c mlt_field.c mlt_tractor.c mlt_factory.c mlt_repository.c mlt_pool.c mlt_tokeniser.c mlt_profile.c mlt_log.c mlt_cache.c
cc: Error: You should be using ${}
make[1]: *** [depend] Error 1
make: *** [all] Error 1

Error: Status 1 encountered during processing.

Change History (2)

comment:1 Changed 11 years ago by ddennedy (Dan Dennedy)

With the following patch, when I build the port in debug mode, I see it calling make with CC="/usr/bin/gcc-4.2" and compilation lines are indeed using /usr/bin/gcc-4.2 since the Makefiles use $(CC). Similar goes for src/mlt++ which uses $(CXX).

--- multimedia/mlt/Portfile.orig        2010-05-03 15:48:00.000000000 -0700
+++ multimedia/mlt/Portfile     2010-05-03 15:49:38.000000000 -0700
@@ -56,6 +56,7 @@
 configure.cflags-append     "-I${prefix}/libexec/qt4-mac/include"
 configure.ldflags-append    "-L${prefix}/lib"
 build.env                   CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
+build.args-append           CC="${}" CXX="${configure.cxx}" CPP="${configure.cpp}"
 variant no_x11 {
     configure.args-append   --disable-gtk2

comment:2 Changed 11 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

Thanks, applied in r67266.

Note: See TracTickets for help on using tickets.