-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Bad order of linker arguments #13317
Comments
grep -E is POSIX so helps us emphasize the ancient nature of your target.
About nineteen years old. I would recommend you build a modern gcc version to build modern software with. It would probably make things easier. I don't know why libtool + this linker get into this problem, but I personally also don't feel too inclined to work on this issue for just a single dinosaur. I could consider doing it as a paid assignment. |
This seems to confirm our suspicion that this Solaris linker (with positional Here's a possible workaround: |
I am fully aware of this as I looked it up when I saw it printing this error.
I am definitely going to build a newer compiler for this box. However, the linker won't change. The thing is that the compile itself went through cleanly, just the link stage is borked. I have no idea whether a newer compiler would change this (unless it is intelligent enought to sort the arguments accordingly when invoking the linker).
Nah, don't worry. This is merely for software portability testing purposes. I simply wanted to report what I found in case someone else also stubles across this issue.
Thank you! I will give this a try. |
This worked: #12824 (comment) Set Thank you for the input. |
Also note that snv_34 indicates an early development build from 2006 of what would eventually be released as Solaris 11.0 over five years later and was never an officially supported OS, but was made available via the OpenSolaris project. (The current Solaris linker, like classic Unix linkers, still requires the -L flag to specify a library path come before the -l flag to use a library from that path, but the GNU autotools and GNU make seem to get this right when we build curl for modern Solaris.) |
As there is a work-around and this is a very old target, I don't think this is even necessary to document. Closing. |
I did this
Environment:
I ran the following configure line:
Notice the funny
grep: illegal option -- E
on this system :-)The build fails completely when using the included xpg4 make. Using schily smake works until:
The issue is that the
-L
options must come before the-l...
options. No matter what I did (e.g. putting `-l ...- in LDFLAGS) it always produced the wrong order of arguments.I expected the following
I expect the arguments to be supplied in the correct order. Or is there a better way to supply these options to the configure script. I've never had these issues with the curl configure script before.
curl/libcurl version
8.7.1 tarball fetched from
https://curl.se/download.html
.operating system
Rather an old and strange system:
The text was updated successfully, but these errors were encountered: