Opened 13 years ago

Closed 12 years ago

#12961 closed defect (wontfix)

mjpegtools: glibtool: unable to infer tagged configuration

Reported by: anddam (Andrea D'Amore) Owned by: filippo.natali@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: ryandesign (Ryan Schmidt), liontooth@…
Port: mjpegtools

Description

Hi, mjpegtools package 1.6.2 is broken, it doesn't compile on PPC nor Intel (but with different errors). I dropped a line to the mantainer but I'm opening this ticket too.

Change History (12)

comment:1 Changed 13 years ago by nox@…

Cc: adamore@… filippo.natali@… added

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

The maintainer should presumably update the port to 1.8.0, or possibly to 1.9.0rc2.

comment:3 Changed 13 years ago by macports.5.mzs@…

Hi ran into this on intel mac 10.4.10 with Xcode 2.5 but have a work around and wanted others to be able to do it as well:

So I tried to build:

$ sudo port install mjpegtools
Password:
--->  Fetching libpng
--->  Attempting to fetch libpng-1.2.22.tar.bz2 from http://downloads.sourceforge.net/libpng
--->  Verifying checksum(s) for libpng
--->  Extracting libpng
--->  Configuring libpng
--->  Building libpng with target all
--->  Staging libpng into destroot
--->  Installing libpng 1.2.22_0+darwin_8
--->  Activating libpng 1.2.22_0+darwin_8
--->  Cleaning libpng
--->  Fetching mjpegtools
--->  Attempting to fetch mjpegtools-1.6.2.tar.gz from http://downloads.sourceforge.net/mjpeg
--->  Verifying checksum(s) for mjpegtools
--->  Extracting mjpegtools
--->  Applying patches to mjpegtools
--->  Configuring mjpegtools
--->  Building mjpegtools with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2" && make all LIBTOOL=/opt/local/bin/glibtool ASFLAGS="-f macho" " returned error 2
Command output: fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT mpegtimecode.o -MD -MP -MF ".deps/mpegtimecode.Tpo" \
  -c -o mpegtimecode.o `test -f 'mpegtimecode.c' || echo './'`mpegtimecode.c; \
then mv -f ".deps/mpegtimecode.Tpo" ".deps/mpegtimecode.Po"; \
else rm -f ".deps/mpegtimecode.Tpo"; exit 1; \
fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT yuv4mpeg.o -MD -MP -MF ".deps/yuv4mpeg.Tpo" \
  -c -o yuv4mpeg.o `test -f 'yuv4mpeg.c' || echo './'`yuv4mpeg.c; \
then mv -f ".deps/yuv4mpeg.Tpo" ".deps/yuv4mpeg.Po"; \
else rm -f ".deps/yuv4mpeg.Tpo"; exit 1; \
fi
if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT yuv4mpeg_ratio.o -MD -MP -MF ".deps/yuv4mpeg_ratio.Tpo" \
  -c -o yuv4mpeg_ratio.o `test -f 'yuv4mpeg_ratio.c' || echo './'`yuv4mpeg_ratio.c; \
then mv -f ".deps/yuv4mpeg_ratio.Tpo" ".deps/yuv4mpeg_ratio.Po"; \
else rm -f ".deps/yuv4mpeg_ratio.Tpo"; exit 1; \
fi
rm -f libmjpegutils.a
ar cru libmjpegutils.a mjpeg_logging.o mpegconsts.o mpegtimecode.o yuv4mpeg.o yuv4mpeg_ratio.o 
ranlib libmjpegutils.a
if /opt/local/bin/glibtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -MT motionsearch.lo -MD -MP -MF ".deps/motionsearch.Tpo" \
  -c -o motionsearch.lo `test -f 'motionsearch.c' || echo './'`motionsearch.c; \
then mv -f ".deps/motionsearch.Tpo" ".deps/motionsearch.Plo"; \
else rm -f ".deps/motionsearch.Tpo"; exit 1; \
fi
glibtool: compile: unable to infer tagged configuration
glibtool: compile: specify a tag with `--tag'
make[3]: *** [motionsearch.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

It failed so I did this as the workaround:

$ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2"
$ sudo make all LIBTOOL="/opt/local/bin/glibtool --tag=junk" ASFLAGS="-f macho"

I did get this warning from the --tag option but at least the make succeeded, I wonder why glibtool does not just work without it if it can make assumptions without a bogus tag value? I have to admit I know very little about glibtool:

glibtool: ignoring unknown tag junk

Then the install succeeded:

$ sudo port install mjpegtools
Password:
--->  Building mjpegtools with target all
--->  Staging mjpegtools into destroot
--->  Installing mjpegtools 1.6.2_2+darwin_8
--->  Activating mjpegtools 1.6.2_2+darwin_8
--->  Cleaning mjpegtools

I tested mplex from mjpegtools and it multiplexed a working file:

$ mplex -f8 -o t1.vob t1.m2v t1.ac3
   INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
   INFO: [mplex] File t1.m2v looks like an MPEG Video stream.
   INFO: [mplex] File t1.ac3 looks like an AC3 Audio stream.
   INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options!
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting dvdauthor DVD output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Video stream e0 (t1.m2v) 
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 480
   INFO: [mplex] Aspect ratio    : 4:3 display
   INFO: [mplex] Picture rate    : 29.970 frames/sec
   INFO: [mplex] Bit rate        : 9800000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (t1.ac3)
   INFO: [mplex] AC3 frame size = 256

   INFO: [mplex] AC3 AUDIO STREAM:
   INFO: [mplex] Bit rate       :     8192 bytes/sec ( 64 kbit/sec)
   INFO: [mplex] Frequency      :     48000 Hz
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate    : 10069000
   INFO: [mplex] target data-rate specified               : 10080000
   INFO: [mplex] Setting specified specified data rate: 10080000
   INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 16022
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000
   INFO: [mplex] Audio bd: buf=  16384 frame=000000 sector=00000000
   INFO: [mplex] STREAM bd completed @ frame 1594.
   INFO: [mplex] Scanned to end AU 1530
   INFO: [mplex] STREAM e0 completed @ frame 1530.
   INFO: [mplex] Multiplex completion at SCR=4523008.
   INFO: [mplex] Video e0: buf= 204539 frame=001530 sector=00009514
   INFO: [mplex] Audio bd: buf=   8704 frame=001594 sector=00000203
   INFO: [mplex] VIDEO_STATISTICS: e0
   INFO: [mplex] Video Stream length:    19150119 bytes
   INFO: [mplex] Sequence headers:      116
   INFO: [mplex] Sequence ends   :        1
   INFO: [mplex] No. Pictures    :     1530
   INFO: [mplex] No. Groups      :      116
   INFO: [mplex] No. I Frames    :      116 avg. size 51525 bytes
   INFO: [mplex] No. P Frames    :      425 avg. size 20273 bytes
   INFO: [mplex] No. B Frames    :      990 avg. size  4602 bytes
   INFO: [mplex] Average bit-rate :  2998800 bits/sec
   INFO: [mplex] Peak bit-rate    :  7171200  bits/sec
   INFO: [mplex] BUFFERING min 15 Buf max 190393
   INFO: [mplex] AUDIO_STATISTICS: bd
   INFO: [mplex] Audio stream length 408320 bytes.
   INFO: [mplex] Frames         :     1595
   INFO: [mplex] BUFFERING min 35 Buf max 515
   INFO: [mplex] MUX STATUS: no under-runs detected.

FInally I see that quite a while back the first release candidate for 1.9.0 of mjpegtools was released. I wonder if the rith thing to do would be for the maintainer to simply go to a newer version of mjpegtools?

comment:4 Changed 13 years ago by ryandesign (Ryan Schmidt)

adamore only said that mjpegtools was broken but did not give any specifics. But the error "unable to infer tagged configuration" should be fixed now; see #13648.

comment:5 Changed 13 years ago by adamore@…

It seems I have the same --tag problem, what's going to happen to this package? Update to 1.9.0 or fix?

Anyway here's the output I get just now:

$ sudo port -d install mjpegtools
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/mjpegtools
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/mjpegtools
DEBUG: Requested variant darwin is not provided by port mjpegtools.
DEBUG: Requested variant macosx is not provided by port mjpegtools.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Executing variant powerpc provides powerpc
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
DEBUG: Requested variant powerpc is not provided by port libpng.
DEBUG: Requested variant darwin is not provided by port libpng.
DEBUG: Requested variant macosx is not provided by port libpng.
DEBUG: Searching for dependency: libpng
DEBUG: Found Dependency: receipt exists for libpng
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: Requested variant powerpc is not provided by port jpeg.
DEBUG: Requested variant darwin is not provided by port jpeg.
DEBUG: Requested variant macosx is not provided by port jpeg.
DEBUG: Searching for dependency: jpeg
DEBUG: Found Dependency: receipt exists for jpeg
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libtool
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libtool
DEBUG: Requested variant powerpc is not provided by port libtool.
DEBUG: Requested variant darwin is not provided by port libtool.
DEBUG: Requested variant macosx is not provided by port libtool.
DEBUG: Searching for dependency: libtool
DEBUG: Found Dependency: receipt exists for libtool
DEBUG: Skipping completed org.macports.main (mjpegtools)
DEBUG: Skipping completed org.macports.fetch (mjpegtools)
DEBUG: Skipping completed org.macports.checksum (mjpegtools)
DEBUG: Skipping completed org.macports.extract (mjpegtools)
DEBUG: Skipping completed org.macports.patch (mjpegtools)
DEBUG: Skipping completed org.macports.configure (mjpegtools)
--->  Building mjpegtools with target all
DEBUG: Executing org.macports.build (mjpegtools)
DEBUG: Environment: 
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2" && make all LIBTOOL=/opt/local/bin/glibtool ASFLAGS="-f macho"'
make  all-recursive
Making all in utils
Making all in altivec
if /opt/local/bin/glibtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -O3 -faltivec -MT add_pred.lo -MD -MP -MF ".deps/add_pred.Tpo" \
	  -c -o add_pred.lo `test -f 'add_pred.c' || echo './'`add_pred.c; \
	then mv -f ".deps/add_pred.Tpo" ".deps/add_pred.Plo"; \
	else rm -f ".deps/add_pred.Tpo"; exit 1; \
	fi
glibtool: compile: unable to infer tagged configuration
glibtool: compile: specify a tag with `--tag'
make[3]: *** [add_pred.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mjpegtools/work/mjpegtools-1.6.2" && make all LIBTOOL=/opt/local/bin/glibtool ASFLAGS="-f macho" " returned error 2
Command output: make  all-recursive
Making all in utils
Making all in altivec
if /opt/local/bin/glibtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils  -I/opt/local/include -L/opt/local/lib  -O2 -L/opt/local/lib -Wall -Wunused -O3 -faltivec -MT add_pred.lo -MD -MP -MF ".deps/add_pred.Tpo" \
	  -c -o add_pred.lo `test -f 'add_pred.c' || echo './'`add_pred.c; \
	then mv -f ".deps/add_pred.Tpo" ".deps/add_pred.Plo"; \
	else rm -f ".deps/add_pred.Tpo"; exit 1; \
	fi
glibtool: compile: unable to infer tagged configuration
glibtool: compile: specify a tag with `--tag'
make[3]: *** [add_pred.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for mjpegtools): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

comment:6 Changed 12 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… liontooth@… added; filippo.natali@… removed
Keywords: mjpegtools bug build broken removed
Owner: changed from macports-tickets@… to filippo.natali@…
Port: mjpegtools added
Summary: mjpegtools package brokenmjpegtools: glibtool: unable to infer tagged configuration

Has duplicate #16414.

comment:7 Changed 12 years ago by blb@…

For anyone experiencing this issue, what version of libtool do you have installed (port installed libtool)?

comment:8 Changed 12 years ago by jmroot (Joshua Root)

There was a problem where a libtool built with MacPorts prior to 1.6 would fail like this when used with 1.6 or later.

comment:9 Changed 12 years ago by andrea.damore@…

Cc: andrea.damore@… added; adamore@… removed

comment:10 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:11 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: andrea.damore@… removed

comment:12 Changed 12 years ago by anddam (Andrea D'Amore)

Resolution: wontfix
Status: newclosed

The port is at 1.9.0 and working now, I'm closing this as wontfix.

Note: See TracTickets for help on using tickets.