views:

88

answers:

2
A: 

Probably, makefile deals with some defines which are not set while you are compiling from sources. You should continue to fight with make to make it compile ;) Probably, you should try to use gmake instead of make.

Nickolay O.
A: 

-soname should be -install_name I think (not -dylib_install_name). In any case when I make that change, it compiles cleanly.

This is what I had in my make file:

gcc -ggdb -shared -Wl,-install_name,libmsrp.so.0 -o libmsrp.so.0.0.2 ... etc.
JeremyP
I tried your idea, but don't work. I modified the Makefile, as you wrote, and then run the "make so" command.gcc -ggdb -shared -Wl,-install_name,libmsrp.so.0 -o libmsrp.so.0.0.2 msrp.o msrp_session.o msrp_message.o msrp_relay.o msrp_switch.o msrp_callback.o msrp_network.o msrp_utils.o -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -lpthread Undefined symbols: "_main", referenced from: start in crt1.10.5.old: symbol(s) not foundcollect2: ld returned 1 exit statusmake: *** [so] Error 1Any Idea?
BaluEdo
Yes it does work. I downloaded the package, made the change and it compiles just fine. You must have changed something else.
JeremyP
I try...I delete every file and unrar and restart my mac. I download the library from the http://sourceforge.net/projects/libmsrp/ site. I replace the command: $(CC) -ggdb -shared -Wl,-install_name,libmsrp.so.0 -o libmsrp.so.0.0.2 $(OBJS) $(OPTS) $(LIBS)Compile it: make all, but I get the same error:Undefined symbols: "_main", referenced from: start in crt1.10.5.oYou use 10.5 or 10.6 os x? I use 10.5
BaluEdo
I'm using 10.6 and Xcode 3.2.3. I guess that might be the difference. You should check your linker docs (man ld) to see what the option is to set an internal install path.
JeremyP
Also try `gcc -ggdb -shared -Wl,-dylib,-Wl,-install_name,libmrsp.so.0...`
JeremyP
Thanks the answer! I compiled the library aug 24, but I go to vacations. I have a question: You could use the library on os x? Because I don't use correctly the endpoint on os x, but on Linux worked perfectly.
BaluEdo
I didn't go beyond trying to compile it. The first time I has ever seen it was when you asked your question :)
JeremyP