3

Even I've answered this question, which is closed now because off-topic: make: *** [all] Error 2 while make

OP was asking about missing strdup(3p) which is POSIX. Why is this off-topic? strdup may require different includes/defines on different UNIX systems. IMO interesting to investigate that.

Why any trivial sed/awk/shell question seems to be valid in "Unix & Linux" but not about portable C programming or fixing non-portable C snippets?

2 Answers 2

1

That question was not closed. It was deleted by the asker. The asker of a question can delete it if it has no answer, or a single answer with no upvote — the idea being that the answer might be something like “there was a typo at line 3”, in which case deleting the question which would not have helped anyone is the best scenario.

At the time of deletion, it had a single close vote, out of 5 required to close. The question was actually on-topic, since it was about compiling software that the asker didn't write. This site is for users and administrators of unix systems, and compiling a program is an administrator task. If the question had been about writing a program and compiling it (for example, if it had actually been about strdup — but it isn't), it would have been a developer task, and off-topic.

In this case, I think the question is worthwhile and shouldn't be deleted. The asker may have deleted because they believed the (incorrect) comment on the question stating that it's off-topic. But your answer is wrong — the code is being compiled by a C++ compiler, but judging by the error message it's actually C code, or C++ that requires a particularly C-friendly C++ compiler (it might be achievable with the right g++ options, I don't know).

1
  • Thanks for clarifying! But it's really c++ code.
    – rudimeier
    Dec 5, 2016 at 12:00
1

I didn't vote on that particular question, but I agree that it's off-topic:

If your question is a programming question, requiring knowledge of programming languages other than unix shell scripting languages, ask on Stack Overflow.

5
  • From the link you've posted you forgot to quote "UNIX C API and System Interfaces ( within reason )" which links to "system interfaces" and strudup. The original question was IMO not a programmer's only question but a typical UNIX user/admin problem.
    – rudimeier
    Nov 23, 2016 at 16:50
  • 2
    but it wasn't a question about the interface, it was a question about an error they got while compiling a program.
    – Jeff Schaller Mod
    Nov 23, 2016 at 16:56
  • 1
    @JeffSchaller which would kinda make it on topic though. If the main question is "I am trying to install software X but get an error", then it isn't a programming question at all but a basic system usage question. What am I missing?
    – terdon Mod
    Nov 24, 2016 at 10:30
  • It was during the 'make' phase, not the 'make install' or runtime phase
    – Jeff Schaller Mod
    Nov 24, 2016 at 12:23
  • 1
    No, that question is on-topic: the asker is compiling someone else's software to install it. This is not a programming question. Dec 5, 2016 at 0:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .