-
Notifications
You must be signed in to change notification settings - Fork 430
Build on Illumos and Solaris #372
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
base: master
Are you sure you want to change the base?
Changes from all commits
a83afa4
687e7f8
73207e0
3f56a29
182b134
bd63cb8
84e7494
560d4e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,8 @@ EXEEXT=@EXEEXT@ | |
|
|
||
| STATIC=@STATIC@ | ||
|
|
||
| MV=@MV@ | ||
|
|
||
| # whether we're building client, server, or both for the common objects. | ||
| # evilness so we detect 'dropbear' by itself as a word | ||
| ifneq (,$(strip $(foreach prog, $(PROGRAMS), $(findstring ZdropbearZ, Z$(prog)Z)))) | ||
|
|
@@ -177,7 +179,7 @@ default_options_guard.h: $(srcdir)/default_options.h | |
| @echo Creating $@ | ||
| @printf "/*\n > > > Do not edit this file (default_options_guard.h) < < <\nGenerated from "$^"\nLocal customisation goes in localoptions.h\n*/\n\n" > [email protected] | ||
| @$(srcdir)/ifndef_wrapper.sh < $^ >> [email protected] | ||
| mv -v [email protected] $@ | ||
| $(MV) -v [email protected] $@ | ||
| pwd | ||
| ls -l $@ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ | |
| #define ATTRIB_SENTINEL | ||
| #endif | ||
|
|
||
| #define __STDC_WANT_LIB_EXT1__ 1 | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this can be enabled unconditionally, no need to check for Solaris. AFAIK the only reason it's hidden behind a
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really know how the support of older OSes is, so I did it this way in case a compiler is not C11 compliant (I think it's not even on some recent C11 compilers because it's optional).
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure it'll be fine without the |
||
|
|
||
| void m_burn(void* data, unsigned int len); | ||
|
|
||
| #endif /* DROPBEAR_DBHELPERS_H_ */ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to do
since I suspect there are old versions of solaris without libssp that would break. (Not sure what function you would use there).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just check for
__stack_chk_fail,it's the function used:When running ./configure:
In Makefile:
However when building:
Same error as before. I'm testing on Solaris, I know that their linker is a bit strict on libraries order so I tried editing the makefile, putting -lssp in first position, doesn't change anything. I also tried to use an other linker, but weirdly enough, same thing. I'll try on OmniOS.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way works on OmniOS. From what I read in their gcc patches; they added
__stack_chk_fail()and__stack_chk_guardin the illumos libc, so they added solaris2 to the ssp compatibles OSes in gcc. I don't really know what to do from here, should we keep it the way it was (having -lssp defined in LDFLAGS) or hope that the great Oracle will patch his gcc?Using gcc14 on both Solaris and OmniOS, there is gcc15 on Solaris but it seems like it's going to be the same problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I guess if it's fiddly linker order leave it as-is.