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

Björn-Egil Dahlberg <>
Tue Jan 8 15:50:22 CET 2008


Hi Aleix,

Thank you for pointing this out. It will be corrected.

Sorry for my delay in answering.

Regards,
Björn-Egil


Aleix Conchillo Flaqué wrote:
> Hi,
> 
> 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
> 
> CC_R_OPT = $(CC_R_FLAG)$(GD_LIBDIR)
> 
> where CC_R_FLAG=@DED_LD_FLAG_RUNTIME_LIBRARY_PATH@
> 
> 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.
> 
> Aleix
> 
> _______________________________________________
> erlang-bugs mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list