You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The e2fsprogs package fails to build when I configure the OpenWrt build process to produce an image for x86/x86_64 using glibc. I am using OpenWrt master as of commit d1ea8ac.
From what I can tell, a number of the programs in e2fsprogs need to link against -lpthread when using glibc. However, several Makefiles (for example, e2fsck/Makefile) contain the following:
LIBCOM_ERR = $(LIB)/libcom_err.so # -lpthread
It looks like the '#' character is a result of the definition of @PRIVATE_LIBS_CMT@ which autotools uses to transform MCONFIG.in into MCONFIG. This, in turn, seems to follow from the use of --enable-elf-shlibs in the OpenWrt package definition.
Here is the tail end of a failed build:
LD e2fsck
e2fsck.h:598:13: warning: type of 'fatal_error' does not match original declaration [-Wlto-type-mismatch]
extern void fatal_error(e2fsck_t ctx, const char * fmt_string);
^
util.c:53:6: note: 'fatal_error' was previously declared here
void fatal_error(e2fsck_t ctx, const char msg)
^
util.c:53:6: note: code may be misoptimized unless -fno-strict-aliasing is used
jfs_user.h:208:17: warning: type of 'e2fsck_global_ctx' does not match original declaration [-Wlto-type-mismatch]
extern e2fsck_t e2fsck_global_ctx; / Try your very best not to use this! */
^
e2fsck.h:221:31: note: type 'struct e2fsck_struct *' should match type 'struct e2fsck_struct *'
typedef struct e2fsck_struct e2fsck_t;
^
unix.c:68:10: note: 'e2fsck_global_ctx' was previously declared here
e2fsck_t e2fsck_global_ctx; / Try your very best not to use this! */
^
unix.c:68:10: note: code may be misoptimized unless -fno-strict-aliasing is used
../lib/libcom_err.so: undefined reference to sem_post' ../lib/libcom_err.so: undefined reference to sem_wait'
../lib/libcom_err.so: undefined reference to sem_init' ../lib/libcom_err.so: undefined reference to sem_destroy'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
MikePetullo:
The e2fsprogs package fails to build when I configure the OpenWrt build process to produce an image for x86/x86_64 using glibc. I am using OpenWrt master as of commit d1ea8ac.
From what I can tell, a number of the programs in e2fsprogs need to link against -lpthread when using glibc. However, several Makefiles (for example, e2fsck/Makefile) contain the following:
It looks like the '#' character is a result of the definition of @PRIVATE_LIBS_CMT@ which autotools uses to transform MCONFIG.in into MCONFIG. This, in turn, seems to follow from the use of --enable-elf-shlibs in the OpenWrt package definition.
Here is the tail end of a failed build:
e2fsck.h:598:13: warning: type of 'fatal_error' does not match original declaration [-Wlto-type-mismatch]
extern void fatal_error(e2fsck_t ctx, const char * fmt_string);
^
util.c:53:6: note: 'fatal_error' was previously declared here
void fatal_error(e2fsck_t ctx, const char msg)
^
util.c:53:6: note: code may be misoptimized unless -fno-strict-aliasing is used
jfs_user.h:208:17: warning: type of 'e2fsck_global_ctx' does not match original declaration [-Wlto-type-mismatch]
extern e2fsck_t e2fsck_global_ctx; / Try your very best not to use this! */
^
e2fsck.h:221:31: note: type 'struct e2fsck_struct *' should match type 'struct e2fsck_struct *'
typedef struct e2fsck_struct e2fsck_t;
^
unix.c:68:10: note: 'e2fsck_global_ctx' was previously declared here
e2fsck_t e2fsck_global_ctx; / Try your very best not to use this! */
^
unix.c:68:10: note: code may be misoptimized unless -fno-strict-aliasing is used
../lib/libcom_err.so: undefined reference to
sem_post' ../lib/libcom_err.so: undefined reference to
sem_wait'../lib/libcom_err.so: undefined reference to
sem_init' ../lib/libcom_err.so: undefined reference to
sem_destroy'collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: