Opened 15 years ago

Closed 14 years ago

#22502 closed defect (fixed)

xplot-0.90.7.1 X11 linking error - build failure

Reported by: daniel.kerse@… Owned by: fenner@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: x11 Cc: lancelakey@…
Port: xplot

Description

Running OSX 10.5.8 and Xcore 3.1.4.

All ports freshly upgraded. xplot failes to install, make fails with the message

ld: library not found for -lX11

Detailed output:

WLGML09004:macports dkerse$ sudo port install -d xplot
--->  Computing dependencies for xplot
--->  Fetching xplot
--->  Attempting to fetch xplot-0.90.7.1.tar.gz from http://distfiles.macports.org/xplot
--->  Verifying checksum(s) for xplot
--->  Extracting xplot
--->  Applying patches to xplot
--->  Configuring xplot
--->  Building xplot
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_xplot/work/xplot-0.90.7.1" && /usr/bin/make -j1 all " returned error 2
Command output: /usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o xplot.o xplot.c
echo 'char *version_string = "'`cat version`'";' >version_string.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o version_string.o version_string.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o coord.o coord.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o unsigned.o unsigned.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o signed.o signed.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o timeval.o timeval.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o double.o double.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall     -c -o dtime.o dtime.c
/usr/bin/gcc-4.0 -O2 -arch i386 -Wall   -o xplot.new xplot.o version_string.o coord.o unsigned.o signed.o timeval.o double.o dtime.o -lm -lX11  
ld: library not found for -lX11
collect2: ld returned 1 exit status
make: *** [xplot] Error 1

Error: Status 1 encountered during processing.

The following xorg related ports are installed:

WLGML09004:macports dkerse$ port  installed | egrep -i "xorg|x11"
  xorg-bigreqsproto @1.1.0_0 (active)
  xorg-inputproto @2.0_0 (active)
  xorg-kbproto @1.0.4_0 (active)
  xorg-libice @1.0.6_0 (active)
  xorg-libsm @1.1.1_0 (active)
  xorg-libX11 @1.3.2_0 (active)
  xorg-libXau @1.0.5_0 (active)
  xorg-libXaw @1.0.7_0 (active)
  xorg-libXdmcp @1.0.3_0 (active)
  xorg-libXext @1.1.1_0 (active)
  xorg-libXmu @1.0.5_0 (active)
  xorg-libXt @1.0.7_0 (active)
  xorg-renderproto @0.11_0 (active)
  xorg-util-macros @1.3.0_0 (active)
  xorg-xcmiscproto @1.2.0_0 (active)
  xorg-xextproto @7.1.1_0 (active)
  xorg-xf86bigfontproto @1.2.0_0 (active)
  xorg-xproto @7.0.16_0 (active)
  xorg-xtrans @1.2.5_0 (active)
WLGML09004:macports dkerse$ 

Change History (5)

comment:1 Changed 15 years ago by blb@…

Keywords: xplot removed
Owner: changed from macports-tickets@… to fenner@…

xorg-libX11 is the port that should be providing the library it can't find; does the file /opt/local/lib/libX11.dylib exist?

comment:2 Changed 15 years ago by jmroot (Joshua Root)

It's definitely missing a dependency on xorg-libX11, but it's also apparently not using the LDFLAGS given in the configure environment.

comment:3 in reply to:  1 Changed 15 years ago by daniel.kerse@…

Replying to blb@…:

xorg-libX11 is the port that should be providing the library it can't find; does the file /opt/local/lib/libX11.dylib exist?

It sure does:

WLGML09004:~ dkerse$ ls -l /opt/local/lib/libX11.dylib
lrwxr-xr-x  1 root  admin  18 13 Nov 10:17 /opt/local/lib/libX11.dylib -> libX11.6.3.0.dylib
WLGML09004:~ dkerse$ ls -l /opt/local/lib/libX11.6.3.0.dylib
-rwxr-xr-x  2 root  admin  1204416 13 Nov 10:17 /opt/local/lib/libX11.6.3.0.dylib
WLGML09004:~ dkerse$ port contents xorg-libX11 | grep dylib
  /opt/local/lib/libX11.6.3.0.dylib
  /opt/local/lib/libX11.6.dylib
  /opt/local/lib/libX11.dylib
WLGML09004:~ dkerse$ 

comment:4 Changed 15 years ago by lancelakey@…

Cc: lancelakey@… added

Cc Me!

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.