[MacPorts] #41093: gettext @0.18.3.1_1 build failure
#41093: gettext @0.18.3.1_1 build failure ---------------------------+-------------------------------- Reporter: c.sarfuguet@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: gettext bug | Port: gettext ---------------------------+-------------------------------- I have a build problem when trying to install the gettext port. The errors are: {{{ :info:build ./stdio.h:901:27: error: expected identifier :info:build (const void *__restrict, size_t, size_t, :info:build ^ :info:build ./stdio.h:905:27: error: expected identifier :info:build (const void *__restrict, size_t, size_t, }}} I look a little bit more on the problem and i found that the concerned files are in: {{{ gettext-runtime/gnulib-lib/stdio.in.h >> stdio.h gettext-tools/gnulib-lib/stdio.in.h >> stdio.h gettext-tools/libgettextpo/stdio.in.h >> stdio.h }}} I'm working on Mac OSX 10.9 (Mavericks) {{{ xcodebuild -version Xcode 5.0.1 Build version 5A2053 }}} {{{ xcode-select --version xcode-select version 2333 }}} The macport build log is attached to this ticket. Hereafter the terminal output: == terminal output == {{{ ---> Computing dependencies for gettext ---> Fetching distfiles for gettext ---> Verifying checksums for gettext ---> Extracting gettext ---> Configuring gettext ---> Building gettext Error: org.macports.build for port gettext returned: command execution failed Please see the log file for port gettext for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port get text failed }}} -- Ticket URL: <https://trac.macports.org/ticket/41093> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… * cc: c.sarfuguet@… (removed) * keywords: gettext bug => mavericks Comment: The log you attached is not from a clean attempt; [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites clean and try again]. The log shows you are on Mavericks. Did you follow the [wiki:Migration migration instructions]? gettext builds fine for me and others. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): Replying to [comment:2 ryandesign@…]:
The log you attached is not from a clean attempt; [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites clean and try again].
The log shows you are on Mavericks. Did you follow the [wiki:Migration migration instructions]? gettext builds fine for me and others.
Thank you Ryan for your answer. I did a complete reinstall of Xcode 5.0.1 and Macports 2.2.1 but i'm still having the same problem[[BR]] building the gettext port. I attached the log file of the new clean attempt. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): I forgot to tell that i've followed the migration instruction and there was a problem[[BR]] when executing the xcode-select --install command. After executing this command[[BR]] i got the following message: {{{ Can't install the software because it is not currently available from the Software Update server. }}} But apparently the Xcode 5.0.1 came with the command line tools integrated so i though it was[[BR]] not a real problem. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by ryandesign@…): Xcode does not come with command line tools. They must be installed separately as it says in our documentation. Please confirm whether you have actually installed the command line tools. One way to find out is to see if you have the file /usr/lib/tclConfig.sh. If not, you have not installed the command line tools. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): Replying to [comment:5 ryandesign@…]:
Xcode does not come with command line tools. They must be installed separately as it says in our documentation.
Please confirm whether you have actually installed the command line tools. One way to find out is to see if you have the file /usr/lib/tclConfig.sh. If not, you have not installed the command line tools.
I have the file /usr/lib/tclConfig.sh -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by ryandesign@…): Ok, I've compared your log to mine. Many differences I don't understand. Could you attach your config.log files? gettext runs multiple configure scripts so there are multiple config.log files; this command shows you where they are: {{{ find $(port work gettext) -name config.log }}} If you could rename them so I know which is which and attach them to this ticket I can compare them with mine and hopefully find out why your build is failing. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): I added the config.log files. Thanks again for the help Replying to [comment:7 ryandesign@…]:
Ok, I've compared your log to mine. Many differences I don't understand. Could you attach your config.log files? gettext runs multiple configure scripts so there are multiple config.log files; this command shows you where they are:
{{{ find $(port work gettext) -name config.log }}}
If you could rename them so I know which is which and attach them to this ticket I can compare them with mine and hopefully find out why your build is failing.
-- Ticket URL: <https://trac.macports.org/ticket/41093#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by ryandesign@…): I haven't finished comparing the files, but let's start with one difference I see. Your main.log says: {{{ :info:configure checking whether we are using the GNU C Library 2 or newer... yes }}} {{{ :info:configure checking for features.h... yes }}} while mine says: {{{ :info:configure checking whether we are using the GNU C Library 2 or newer... no }}} {{{ :info:configure checking for features.h... no }}} The former result appears to be due to the latter. The question is: where is features.h on your system and how did it get there? It's not on my system, which makes me wonder if it should be there on yours. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): I looked for the file features.h and i found it in /usr/include. I begun having[[BR]] these problems with gettext port after having upgraded from Mountain Lion[[BR]] to Mavericks. Is it possible that some files from these system directories[[BR]] were kept after the upgrade? Replying to [comment:9 ryandesign@…]:
I haven't finished comparing the files, but let's start with one difference I see. Your main.log says:
{{{ :info:configure checking whether we are using the GNU C Library 2 or newer... yes }}} {{{ :info:configure checking for features.h... yes }}}
while mine says:
{{{ :info:configure checking whether we are using the GNU C Library 2 or newer... no }}} {{{ :info:configure checking for features.h... no }}}
The former result appears to be due to the latter. The question is: where is features.h on your system and how did it get there? It's not on my system, which makes me wonder if it should be there on yours.
-- Ticket URL: <https://trac.macports.org/ticket/41093#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by ryandesign@…): I doubt it. That is, I doubt features.h belongs on any version of OS X. Could you attach your features.h here so I can take a look? -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): I attached the file. When i was using Mountain Lion, i've installed gcc44 (macports version). I don't know[[BR]] it this could install some glib files in the /usr/ path. I find it strange because my port[[BR]] installation path is and was /opt/local. Replying to [comment:11 ryandesign@…]:
I doubt it. That is, I doubt features.h belongs on any version of OS X. Could you attach your features.h here so I can take a look?
-- Ticket URL: <https://trac.macports.org/ticket/41093#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by ryandesign@…): No, installing a MacPorts port would not cause this. You didn't by chance copy this and other files there by following some guide, like [http://stackoverflow.com/questions/10018764/building-linux- kernel-on-mac-os-x this one]? I'd remove the file (move it to the desktop if you want to keep it around for awhile), then clean gettext and try again. When was the file last modified? Are there any other files in /usr/include modified at the same time, that might also not belong? -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): I think you are right. Actually, some months ago i was working in an elf loader [[BR]] and i remember installing severals files to decode the ELF format in the /usr/include directory[[BR]]. Bad idea... I will try to remove them and reinstall gettext Replying to [comment:13 ryandesign@…]:
No, installing a MacPorts port would not cause this.
You didn't by chance copy this and other files there by following some guide, like [http://stackoverflow.com/questions/10018764/building-linux- kernel-on-mac-os-x this one]?
I'd remove the file (move it to the desktop if you want to keep it around for awhile), then clean gettext and try again.
When was the file last modified? Are there any other files in /usr/include modified at the same time, that might also not belong?
-- Ticket URL: <https://trac.macports.org/ticket/41093#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Right, bad idea. OS X does not use GNU lib C or ELF files, so installing header files that make configure scripts think it does will only lead to sadness. /usr/include is belongs to the OS vendor; it's not meant for end users to modify. -- Ticket URL: <https://trac.macports.org/ticket/41093#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#41093: gettext @0.18.3.1_1 build failure ----------------------------+-------------------------- Reporter: c.sarfuguet@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: mavericks Port: gettext | ----------------------------+-------------------------- Comment (by c.sarfuguet@…): That works. "/usr/include is belongs to the OS vendor" -> I will remember that.[[BR]] Thanks a lot for the help. Replying to [comment:14 c.sarfuguet@…]:
I think you are right. Actually, some months ago i was working in an elf loader [[BR]] and i remember installing severals files to decode the ELF format in the /usr/include directory[[BR]]. Bad idea...
I will try to remove them and reinstall gettext
Replying to [comment:13 ryandesign@…]:
No, installing a MacPorts port would not cause this.
You didn't by chance copy this and other files there by following some guide, like [http://stackoverflow.com/questions/10018764/building-linux- kernel-on-mac-os-x this one]?
I'd remove the file (move it to the desktop if you want to keep it around for awhile), then clean gettext and try again.
When was the file last modified? Are there any other files in /usr/include modified at the same time, that might also not belong?
-- Ticket URL: <https://trac.macports.org/ticket/41093#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts