google-code-export / ghostplusplus

Automatically exported from code.google.com/p/ghostplusplus
Other
3 stars 0 forks source link

Cannot compile on Leopard #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gmake on bncutil
2.
3.

What is the expected output? What do you see instead?
It should compile, instead it gives me an error when linking:
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gmake: *** [libbncsutil.so] Error 1

What version of the product are you using? On what operating system?
11.01, on Leopard on PowerPC 64

Please provide any additional information below.
I installed with port gmp, gmake and latest XCode, modified the LDFLAGS and
putted the right path to gmp library, but it gives me this error. 

Original issue reported on code.google.com by eugeniog...@gmail.com on 10 Dec 2008 at 4:57

GoogleCodeExporter commented 9 years ago
The compiler thinks it is compiling an executable rather than a library and is 
looking for the main entrypoint.
use the -dynamiclib as a parameter to CC and CCXX. Take a look at the attached 
Makefile that works for me (on 
an Intel mac though).
If you can confirm it works, it should be added to the regular Makefile.

Original comment by luq...@gmail.com on 18 Jun 2009 at 12:03

GoogleCodeExporter commented 9 years ago
File upload didn't seem to work, next try

Original comment by luq...@gmail.com on 18 Jun 2009 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago
Oops, one should out recent changes before posting. nindoja's patches were 
already comitted

Original comment by luq...@gmail.com on 18 Jun 2009 at 12:16