Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18710 closed defect (fixed)

mpeg2vidcodec build fails to locate X11 components

Reported by: fracai Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: mpeg2vidcodec

Description

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.
Moving aside "/opt/local/lib/pkgconfig/x11.pc" allowed the build to correctly add the included libraries and build.
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

Change History (2)

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.