Skip to content

[i386] Build error: Undefined symbols for architecture i386: "_opendir$INODE64" #993

@barracuda156

Description

@barracuda156

Description

Trying to build FPM on macOS i386 resulted in linking error:

Undefined symbols for architecture i386:
  "_opendir$INODE64", referenced from:
      _c_opendir in libfpm.a(src_filesystem_utilities.c.o)
ld: symbol(s) not found for architecture i386
collect2: error: ld returned 1 exit status
<ERROR> Compilation failed for object " fpm "
<ERROR> stopping due to failed compilation
STOP 1
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_fpm/fpm/work/fpm-0.10.0" && FPM_CFLAGS="-Os -arch i386" FPM_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_fpm/fpm/work/fpm-0.10.0/install.sh 
Exit code: 1

Expected Behaviour

Hopefully, it can be made to build, since it not only builds but also works on 32-bit PowerPC (tested on the same 10.6 build 10A190).

Version of fpm

0.10.0

Platform and Architecture

macOS 10.6 / i386

Additional Information

Macports build env.
See also: https://trac.macports.org/ticket/69278

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions