Opened 4 years ago
#61955 new defect
mc opportunistically links with libe2p.a
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.99 |
Keywords: | Cc: | ||
Port: | mc |
Description
mc opportunistically links with /opt/local/lib/libe2p.a from e2fsprogs. I was trying to build mc universal, and e2fsprogs was installed non-universal, hence it failed:
libtool: link: ccache /usr/bin/clang -Wassign-enum -Wbad-function-cast -Wcomment -Wconditional-uninitialized -Wdeclaration-after-statement -Wfloat-conversion -Wfloat-equal -Wformat -Wformat-security -Wformat-signedness -Wimplicit -Wimplicit-fallthrough -Wignored-qualifiers -Wlogical-not-parentheses -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-parameter-type -Wmissing-prototypes -Wmissing-variable-declarations -Wnested-externs -Wno-long-long -Wno-unreachable-code -Wparentheses -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch -Wswitch-default -Wtype-limits -Wundef -Wuninitialized -Wunreachable-code -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wwrite-strings -pipe -Os -Werror=implicit-function-declaration -arch x86_64 -arch i386 -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 -o mc main.o -L/opt/local/lib ./.libs/libinternal.a -L/opt/local ../lib/.libs/libmc.a -lslang -le2p -lssh2 -lglib-2.0 -lintl ld: warning: ignoring file /opt/local/lib/libe2p.a, file was built for archive which is not the architecture being linked (i386): /opt/local/lib/libe2p.a Undefined symbols for architecture i386: "_fgetflags", referenced from: _chattr_cmd in libinternal.a(chattr.o) _chattr_apply_mask in libinternal.a(chattr.o) _info_hook in libinternal.a(info.o) "_fsetflags", referenced from: _chattr_cmd in libinternal.a(chattr.o) _try_chattr in libinternal.a(chattr.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
The port should either add a dependency on e2fsprogs or it should not use e2fsprogs, even if it is installed.
Note: See
TracTickets for help on using
tickets.