Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31090 closed defect (fixed)

e2fsprogs snow leopard fails to build

Reported by: tom_gall@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.2
Keywords: Cc: m.haller@…, style26062@…, maverickwoo (Maverick Woo), sesotek@…, bonoba@…
Port: e2fsprogs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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!

Change History (11)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: e2fsprogs added

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.

comment:2 Changed 13 years ago 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

comment:3 Changed 13 years ago by m.haller@…

Cc: m.haller@… added

Cc Me!

comment:4 Changed 13 years ago by style26062@…

Cc: style26062@… added

Cc Me!

comment:5 Changed 13 years ago by maverickwoo (Maverick Woo)

Cc: maverick.woo@… added

Cc Me!

comment:6 Changed 13 years ago by sesotek@…

Cc: sesotek@… added

Cc Me!

comment:7 Changed 13 years ago by bonoba@…

Cc: bonoba@… added

Cc Me!

comment:8 Changed 13 years ago 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

comment:9 Changed 13 years ago by bonoba@…

(warning: bad formatting above)

comment:10 Changed 13 years ago by rmstonecipher@…

Resolution: fixed
Status: newclosed

Fixed in r87190

comment:11 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

A better fix would've been to just use --std=gnu89

Fixed in r91359

Note: See TracTickets for help on using tickets.