[MacPorts] #31090: e2fsprogs snow leopard fails to build
#31090: e2fsprogs snow leopard fails to build ------------------------------+--------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Keywords: | Port: ------------------------------+--------------------------------------------- This is using a certain beta 7. POSIXLY_CORRECT=1 sudo port install e2fsprogs Here's the error : :info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build CC valid_blk.c :info:build CC version.c :info:build 1 warning generated. :info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build 1 warning generated. :info:build GEN_LIB libext2fs.a :info:build GEN_BSD_SOLIB libext2fs.2.1.dylib :info:build ld: duplicate symbol _ext2fs_fast_set_bit in inode_io.o and bb_compat.o for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [libext2fs.2.1.dylib] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: Leaving directory `/opt/local/var/macp few warnings shoudl be cleaned up too: :info:build ls.c:276:19: warning: conversion specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Wformat] :info:build fprintf(f, "%llu kB\n", sb->s_kbytes_written); :info:build ~~~^ ~~~~~~~~~~~~~~~~~~~~ :info:build %lu :info:build ls.c:278:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu MB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:281:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu GB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:284:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu TB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:287:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu PB\n", :info:build ~~~^ :info:build %lu related to this I'm sure: :info:configure <stdin>:1:10: fatal error: 'asm/types.h' file not found:info:configure #include <asm/types.h>:info:configure ^:info:configure 1 error generated.:info:configure asm_types.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit- int]:info:configure main(int argc, char **argv):info:configure ^~~~:info:configure asm_types.c:12:2: warning: #warning __U8_TYPEDEF not defined [-W#warnings]:info:configure #warning __U8_TYPEDEF not defined:info:configure ^:info:configure asm_types.c:21:2: warning: #warning __S8_TYPEDEF not defined [-W#warnings]:info:configure #warning __S8_TYPEDEF not defined:info:configure ^ :info:configure asm_types.c:30:2: warning: #warning __U16_TYPEDEF not defined [-W#warn ings] :info:configure #warning __U16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:39:2: warning: #warning __S16_TYPEDEF not defined [-W#warnings] :info:configure #warning __S16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:49:2: warning: #warning __U32_TYPEDEF not defined [-W#warn ings]:info:configure #warning __U32_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:58:2: warning: #warning __S32_TYPEDEF not defined [-W#warn ings] :info:configure #warning __S32_TYPEDEF not defined:info:configure ^ :info:configure asm_types.c:68:2: warning: #warning __U64_TYPEDEF not defined [-W#warn ings] :info:configure #warning __U64_TYPEDEF not defined :info:configure ^:info:configure asm_types.c:77:2: warning: #warning __S64_TYPEDEF not defined [-W#warn ings] :info:configure #warning __S64_TYPEDEF not defined :info:configure ^ Thanks! -- Ticket URL: <https://trac.macports.org/ticket/31090> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build ------------------------------+--------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Keywords: | Port: e2fsprogs ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * port: => e2fsprogs Old description:
This is using a certain beta 7.
POSIXLY_CORRECT=1 sudo port install e2fsprogs
Here's the error :
:info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build CC valid_blk.c :info:build CC version.c :info:build 1 warning generated. :info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build 1 warning generated. :info:build GEN_LIB libext2fs.a :info:build GEN_BSD_SOLIB libext2fs.2.1.dylib :info:build ld: duplicate symbol _ext2fs_fast_set_bit in inode_io.o and bb_compat.o for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [libext2fs.2.1.dylib] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: Leaving directory `/opt/local/var/macp
few warnings shoudl be cleaned up too:
:info:build ls.c:276:19: warning: conversion specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Wformat] :info:build fprintf(f, "%llu kB\n", sb->s_kbytes_written); :info:build ~~~^ ~~~~~~~~~~~~~~~~~~~~ :info:build %lu :info:build ls.c:278:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu MB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:281:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu GB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:284:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu TB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:287:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu PB\n", :info:build ~~~^ :info:build %lu
related to this I'm sure:
:info:configure <stdin>:1:10: fatal error: 'asm/types.h' file not found:info:configure #include <asm/types.h>:info:configure ^:info:configure 1 error generated.:info:configure asm_types.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit- int]:info:configure main(int argc, char **argv):info:configure ^~~~:info:configure asm_types.c:12:2: warning: #warning __U8_TYPEDEF not defined [-W#warnings]:info:configure #warning __U8_TYPEDEF not defined:info:configure ^:info:configure asm_types.c:21:2: warning: #warning __S8_TYPEDEF not defined [-W#warnings]:info:configure #warning __S8_TYPEDEF not defined:info:configure ^ :info:configure asm_types.c:30:2: warning: #warning __U16_TYPEDEF not defined [-W#warn ings] :info:configure #warning __U16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:39:2: warning: #warning __S16_TYPEDEF not defined [-W#warnings] :info:configure #warning __S16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:49:2: warning: #warning __U32_TYPEDEF not defined [-W#warn ings]:info:configure #warning __U32_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:58:2: warning: #warning __S32_TYPEDEF not defined [-W#warn ings] :info:configure #warning __S32_TYPEDEF not defined:info:configure ^ :info:configure asm_types.c:68:2: warning: #warning __U64_TYPEDEF not defined [-W#warn ings] :info:configure #warning __U64_TYPEDEF not defined :info:configure ^:info:configure asm_types.c:77:2: warning: #warning __S64_TYPEDEF not defined [-W#warn ings] :info:configure #warning __S64_TYPEDEF not defined :info:configure ^
Thanks!
New description: This is using a certain beta 7. {{{ POSIXLY_CORRECT=1 sudo port install e2fsprogs }}} Here's the error : {{{ :info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build CC valid_blk.c :info:build CC version.c :info:build 1 warning generated. :info:build tdb.c:3841:19: warning: implicit declaration of function 'getpagesize' is invalid in C99 [-Wimplicit-function-declaration] :info:build tdb->page_size = getpagesize(); :info:build ^ :info:build 1 warning generated. :info:build GEN_LIB libext2fs.a :info:build GEN_BSD_SOLIB libext2fs.2.1.dylib :info:build ld: duplicate symbol _ext2fs_fast_set_bit in inode_io.o and bb_compat.o for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [libext2fs.2.1.dylib] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: Leaving directory `/opt/local/var/macp }}} few warnings shoudl be cleaned up too: {{{ :info:build ls.c:276:19: warning: conversion specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Wformat] :info:build fprintf(f, "%llu kB\n", sb->s_kbytes_written); :info:build ~~~^ ~~~~~~~~~~~~~~~~~~~~ :info:build %lu :info:build ls.c:278:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu MB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:281:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu GB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:284:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu TB\n", :info:build ~~~^ :info:build %lu :info:build ls.c:287:19: warning: conversion specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat] :info:build fprintf(f, "%llu PB\n", :info:build ~~~^ :info:build %lu }}} related to this I'm sure: {{{ :info:configure <stdin>:1:10: fatal error: 'asm/types.h' file not found :info:configure #include <asm/types.h> :info:configure ^ :info:configure 1 error generated. :info:configure asm_types.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:configure main(int argc, char **argv) :info:configure ^~~~ :info:configure asm_types.c:12:2: warning: #warning __U8_TYPEDEF not defined [-W#warnings] :info:configure #warning __U8_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:21:2: warning: #warning __S8_TYPEDEF not defined [-W#warnings] :info:configure #warning __S8_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:30:2: warning: #warning __U16_TYPEDEF not defined [-W#warnings] :info:configure #warning __U16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:39:2: warning: #warning __S16_TYPEDEF not defined [-W#warnings] :info:configure #warning __S16_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:49:2: warning: #warning __U32_TYPEDEF not defined [-W#warnings] :info:configure #warning __U32_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:58:2: warning: #warning __S32_TYPEDEF not defined [-W#warnings] :info:configure #warning __S32_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:68:2: warning: #warning __U64_TYPEDEF not defined [-W#warnings] :info:configure #warning __U64_TYPEDEF not defined :info:configure ^ :info:configure asm_types.c:77:2: warning: #warning __S64_TYPEDEF not defined [-W#warnings] :info:configure #warning __S64_TYPEDEF not defined :info:configure ^ }}} Thanks! -- Comment: Please remember to use WikiFormatting and to preview before submitting. And don't forget to fill in the Port field.
This is using a certain beta 7.
What does this mean?
{{{ POSIXLY_CORRECT=1 sudo port install e2fsprogs }}} What is `POSIXLY_CORRECT=1` meant to do? Note that MacPorts clears the environment before running anything, so I doubt this has any effect. -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build ------------------------------+--------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Keywords: | Port: e2fsprogs ------------------------------+--------------------------------------------- Comment(by m.haller@…): Got the same error with Mac OS X 10.7.2 (Lion) and e2fsprogs 1.41.12 {{{ ld: duplicate symbol _ext2fs_fast_set_bit in inode_io.o and bb_compat.o for architecture x86_64 }}} -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build ------------------------------+--------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Keywords: | Port: e2fsprogs ------------------------------+--------------------------------------------- Comment(by bonoba@…): Hey guys, try this: port clean e2fsprogs port install e2fsprogs configure.compiler=llvm-gcc-4.2 I worked for me on Lion 10.7.2, although, I took the current git sources of e2fsprogs. Anyway, I think it should also work for 1.41.12 -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build ------------------------------+--------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Keywords: | Port: e2fsprogs ------------------------------+--------------------------------------------- Comment(by bonoba@…): (warning: bad formatting above) -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build -------------------------------+-------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Resolution: fixed | Keywords: Port: e2fsprogs | -------------------------------+-------------------------------------------- Changes (by rmstonecipher@…): * status: new => closed * resolution: => fixed Comment: Fixed in r87190 -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31090: e2fsprogs snow leopard fails to build -------------------------------+-------------------------------------------- Reporter: tom_gall@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.2 Resolution: fixed | Keywords: Port: e2fsprogs | -------------------------------+-------------------------------------------- Comment(by jeremyhu@…): A better fix would've been to just use --std=gnu89 Fixed in r91359 -- Ticket URL: <https://trac.macports.org/ticket/31090#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts