Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#13376 closed defect (worksforme)

rdesktop fails to compile

Reported by: zach@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: cshbell@…, noses@…


I've just tried to install rdesktop using this command:

% sudo port install rdesktop

Then, I get this:

--->  Building rdesktop with target rdesktop
Error: Target returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_rdesktop/work/rdesktop-1.5.0" && make rdesktop " returned error 2
gcc -O2 -Wall -I/usr/include  -DPACKAGE_NAME=\"rdesktop\" -DPACKAGE_TARNAME=\"rdesktop\" -DPACKAGE_VERSION=\"1.5.0\" -DPACKAGE_STRING=\"rdesktop\ 1.5.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DL_ENDIAN=1 -DX_DISPLAY_MISSING=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LANGINFO_H=1 -Dssldir=\"/usr\" -DEGD_SOCKET=\"/var/run/egd-pool\" -DHAVE_DIRENT_H=1 -DHAVE_DECL_DIRFD=1 -DHAVE_ICONV_H=1 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MOUNT_H=1 -DSTAT_STATVFS=1 -DHAVE_STRUCT_STATVFS_F_NAMEMAX=1  -DKEYMAP_PATH=\"/opt/local/share/rdesktop/keymaps/\" -o rdesktop rdesktop.o xwin.o xkeymap.o ewmhints.o xclip.o cliprdr.o  tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o rdp5.o channels.o rdpdr.o serial.o printer.o disk.o parallel.o printercache.o mppc.o pstcache.o lspci.o seamless.o -L/opt/local/lib  -L/usr/lib -lcrypto -liconv   -lX11
/usr/bin/ld: can't locate file for: -lX11

But X11 is definitely there. I have installed X11 from the CD, and the lib is there, too:

% locate X11.dylib

Best regards, Gabriel.

Change History (7)

comment:1 Changed 13 years ago by zach@…

PS: My system is Mac OS X 10.4.10 and MacPorts version 1.520

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

Cc: cshbell@… noses@… added
Milestone: Port Bugs

Cc'ing maintainers.

comment:3 Changed 13 years ago by cshbell@…

I can't confirm this bug; I'm building under 10.5.1 with Xcode 3, and the build runs fine. Off the top of my head, I'm guessing that the compiler can't find the X11 library, even though it's on the machine; try symlinking it to /usr/lib (sudo ln -s /usr/X11R6/lib/libX11.dylib /usr/lib) and run it again. Post back here with what you get.

comment:4 in reply to:  3 Changed 13 years ago by zach@…

Well, the symlink makes it compile fine, of course.

The question is: whose bug is it? Is my setup buggy, or is the macports' build system missing a library path?

Regards, Gabriel.

comment:5 Changed 13 years ago by cshbell@…

I'm pretty confident that it's something in your setup. I've built this port (rdesktop) on a number of systems and versions of OS X and never seen that library problem, nor have we had it reported here before. Sorry :-(

I'm marking this closed.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Resolving WFM as per comment:5.

comment:7 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.