[erlang-bugs] problem compiling percept in mac os x

Aleix Conchillo Flaqué <>
Tue Dec 11 12:41:48 CET 2007


I'm the maintainer of the erlang fink package. I just noticed an error  
while compiling the percept application:

=== Entering application percept
make -f powerpc-apple-darwin9.1.0/Makefile TYPE=opt
/usr/bin/install -c -d ../priv/lib/powerpc-apple-darwin9.1.0
gcc /sw/lib -bundle -flat_namespace -undefined suppress -o ../priv/lib/ 
powerpc-apple-darwin9.1.0/egd_drv.so ../priv/obj/powerpc-apple- 
darwin9.1.0/egd_port_driver.o ../priv/obj/powerpc-apple-darwin9.1.0/ 
egd_image.o ../priv/obj/powerpc-apple-darwin9.1.0/egd_coding.o -lutil - 
ldl -lm   -L/sw/lib -lgd
ld: in /sw/lib, can't map file, errno=22
collect2: ld returned 1 exit status
make[4]: *** [../priv/lib/powerpc-apple-darwin9.1.0/egd_drv.so] Error 1
make[3]: *** [opt] Error 2

This is caused because the DED_LD_FLAG_RUNTIME_LIBRARY_PATH variable  
is set to empty in darwin, and this causes:

$(LIBDIR)/egd_drv.so: $(EGD_DRV_OBJS)
        $(INSTALL_DIR) $(LIBDIR)
        $(LD) $(CC_R_OPT) $(LDFLAGS) -o $@ $^ $(LIBS) $(GD_LINK_LIB)

to fail, because CC_R_OPT is set to



I have provided a patch for fink where CC_R_FLAG=-rpath. I guess you  
could provide a better and general fix for this.

Thanks in advance.


More information about the erlang-bugs mailing list