[MacPorts] #18710: mpeg2vidcodec build fails to locate X11 components
MacPorts
noreply at macports.org
Sun Mar 1 11:03:12 PST 2009
#18710: mpeg2vidcodec build fails to locate X11 components
----------------------------------------+-----------------------------------
Reporter: arno+macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: | Port: mpeg2vidcodec
----------------------------------------+-----------------------------------
Building mpeg2vidcodec fails to find the libXext library with the
following error:
"ld: library not found for -lXext"
Looking through the recent commits, I noticed that revision r47564 altered
the included libraries.[[BR]]
Moving aside "/opt/local/lib/pkgconfig/x11.pc" allowed the build to
correctly add the included libraries and build.[[BR]]
Perhaps this is really a bug with pkgconfig or an issue with my
installation?
Below is the log from the failed build.
{{{
---> Fetching mpeg2vidcodec
---> Verifying checksum(s) for mpeg2vidcodec
---> Extracting mpeg2vidcodec
---> Configuring mpeg2vidcodec
---> Building mpeg2vidcodec
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_mpeg2vidcodec/work/mpeg2"
&& make all USE_DISP=-DDISPLAY USE_SHMEM=-DSH_MEM LIBS="-lXext -lX11" "
returned error 2
Command output: gcc -O2 -DDISPLAY -DSH_MEM -c -o getpic.o getpic.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o motion.o motion.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o getvlc.o getvlc.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o gethdr.o gethdr.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o getblk.o getblk.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o getbits.o getbits.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o store.o store.c
store.c: In function 'store_sif':
store.c:217: warning: incompatible implicit declaration of built-in
function 'strcat'
store.c: In function 'store_ppm_tga':
store.c:310: warning: incompatible implicit declaration of built-in
function 'strcat'
gcc -O2 -DDISPLAY -DSH_MEM -c -o recon.o recon.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o spatscal.o spatscal.c
spatscal.c: In function 'Read_Lower_Layer_Component_Framewise':
spatscal.c:91: warning: incompatible implicit declaration of built-in
function 'strcat'
spatscal.c:97: warning: incompatible implicit declaration of built-in
function 'exit'
spatscal.c: In function 'Read_Lower_Layer_Component_Fieldwise':
spatscal.c:122: warning: incompatible implicit declaration of built-in
function 'strcat'
spatscal.c:128: warning: incompatible implicit declaration of built-in
function 'exit'
gcc -O2 -DDISPLAY -DSH_MEM -c -o idct.o idct.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o idctref.o idctref.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o display.o display.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o systems.o systems.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o subspic.o subspic.c
gcc -O2 -DDISPLAY -DSH_MEM -c -o verify.o verify.c
gcc -O2 -DDISPLAY -DSH_MEM -o mpeg2decode mpeg2dec.o getpic.o motion.o
getvlc.o gethdr.o getblk.o getbits.o store.o recon.o spatscal.o idct.o
idctref.o display.o systems.o subspic.o verify.o -lm -lXext -lX11
ld: library not found for -lXext
collect2: ld returned 1 exit status
make[1]: *** [mpeg2decode] Error 1
make: *** [mpeg2decode] Error 2
Error: Unable to upgrade port: 1
}}}
--
Ticket URL: <http://trac.macports.org/ticket/18710>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list