bugGNU gettext - Bugs: bug #21866, acl.h:23:22: error: sys/acl.h: No...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21866: acl.h:23:22: error: sys/acl.h: No such file or directory

Submitted by:  Ryan Schmidt <ryandesign>
Submitted on:  Fri 21 Dec 2007 02:47:54 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Wed 26 Dec 2007 06:19:12 PM UTC, comment #4:

Thank you very much! I appreciate the detailed explanation. I didn't know "$(CC) $(CPPFLAGS)" should contain the -isysroot value. Setting -isysroot in CPPFLAGS, or removing it from CFLAGS and CXXFLAGS and putting it in CC and CXX instead, both worked for me. I think I'll use the latter method.

Apple's document on the topic of building universal binaries from configure-based software [1] didn't suggest either of these. I'll submit feedback to Apple to ask them to enhance their documentation.

[1] http://developer.apple.com/technotes/tn2005/tn2137.html

Ryan Schmidt <ryandesign>
Wed 26 Dec 2007 04:23:49 PM UTC, comment #3:

> In file included from copy-file.c:42:
> acl.h:23:22: error: sys/acl.h: No such file or directory
> make[4]: *** [copy-file.lo] Error 1


This error indicates that <sys/acl.h> is not found during the compilation,
although HAVE_SYS_ACL_H is set - which means that <sys/acl.h> was found
during configuration.

This means, you are effectively compiling in a different environment than
the one that was used for configuration. So take a look at your CC etc.
settings:

> CC=/usr/bin/gcc-4.0
> CXX=/usr/bin/g++-4.0
> CFLAGS=-O2 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -arch ppc
> CXXFLAGS=-O2 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -arch ppc
> LDFLAGS=-arch ppc


This is not sufficient: $(CC) $(CPPFLAGS) does not include the
'-isysroot /Developer/SDKs/MacOSX10.3.9.sdk' option. You need either to
also set

CPPFLAGS="-isysroot /Developer/SDKs/MacOSX10.3.9.sdk"

or

CC="/usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk"
CXX="/usr/bin/g++-4.0 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk"

Please refer to the autoconf documentation, section "Preset Output Variables",
for explanations.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Fri 21 Dec 2007 11:35:38 PM UTC, comment #2:

FYI, I just tested gettext 0.16.1 in the same setup, and it has no problem cross-compiling with the 10.3.9 SDK.

Ryan Schmidt <ryandesign>
Fri 21 Dec 2007 02:54:27 PM UTC, comment #1:

Well now I hate your issue tracker because when I submitted the form without entering a bug title, it reloaded the page and cleared out the extensive bug description I had entered. I'll try to write it again.


I'm trying to compile a PowerPC Mac OS X 10.3.9-compatible version of gettext on an Intel Mac running Mac OS X 10.4.11. I have already successfully cross-compiled zlib, libpng, expat, pkg-config, freetype, fontconfig and cairo, and now I need gettext. I have set the following environment variables:

And I am configuring this way:

Unfortunately, "make" aborts with this error:

And it's true: there is no sys/acl.h in the MacOSX10.3.9.sdk. That file does exist in the MacOSX10.4u.sdk, but I don't want to use that SDK because I want to build something that will work on Mac OS X 10.3.9 on PowerPC machines. Can you assist?

Ryan Schmidt <ryandesign>
Fri 21 Dec 2007 02:47:54 PM UTC, original submission:
Ryan Schmidt <ryandesign>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by ryandesign (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Nov 2016 11:52:08 PM UTChaibleCategoryNone=>Build
    Wed 26 Dec 2007 04:23:49 PM UTChaibleStatusNone=>Invalid
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1