Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Leopard #10

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 3 comments
Closed

Cannot compile on Leopard #10

GoogleCodeExporter opened this issue May 10, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: Component-Scripts, OpSys-OSX

@GoogleCodeExporter
Copy link
Author

File upload didn't seem to work, next try

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant