mntent.h problems
Gustavo Fukao
gustavofukao at yahoo.com
Sat Aug 6 20:29:55 GMT 2005
I got this error in my port of Endeavour Mark II
-------cut-------------------------------------
Compiling module tgadither.o
Linking modules...mntent_compat.o(.bss+0x0): multiple definition of `getmntent_mntcount'
mntent.o(.bss+0x0): first defined here
mntent_compat.o(.bss+0x4): multiple definition of `getmntent_mntpos'
mntent.o(.bss+0x4): first defined here
mntent_compat.o(.text+0x0): In function `setmntent':
: multiple definition of `setmntent'
mntent.o(.text+0x0): first defined here
mntent_compat.o(.text+0x28): In function `getmntent_addopt':
: multiple definition of `getmntent_addopt'
mntent.o(.text+0x28): first defined here
mntent_compat.o(.text+0x64): In function `getmntent':
: multiple definition of `getmntent'
mntent.o(.text+0x64): first defined here
mntent_compat.o(.text+0x458): In function `endmntent':
: multiple definition of `endmntent'
mntent.o(.text+0x458): first defined here
gmake[1]: *** [modules] Error 1
Building library "libendeavour2.so"...
Compiling resources
Compiling module edvcontext.o
Compiling module edvdate.o
Compiling module edvdevices.o
Compiling module edvdevicesfio.o
Compiling module edvdevicesget.o
Compiling module edvget.o
Compiling module edvhelp.o
Compiling module edvhistory.o
Compiling module edvmessage.o
Compiling module edvmimetypes.o
Compiling module edvmimetypesfio.o
Compiling module edvmimetypesget.o
Compiling module edvmimetypesinstall.o
Compiling module edvmount.o
Compiling module edvnotify.o
Compiling module edvopen.o
Compiling module edvrecycle.o
Compiling module edvwindow.o
Linking modules... ls: illegal option -- -
usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
Compiling endeavour2-config
Build done.
Building program "download.front"...
Compiling module downloadcfgio.o
Compiling module main.o
Linking modules...../lib/edvdevicesfio.o(.text+0x56): In function
`EDVDevicesListUpdateMountStatesFromSystem':
/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:86: undefined
reference to `setmntent'
../lib/edvdevicesfio.o(.text+0x68):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0x90):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0xa0):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:134:
undefined reference to `endmntent'
gmake[1]: *** [modules] Error 1
Building program "format.front"...
Compiling module formatcb.o
Compiling module formatmanager.o
Compiling module main.o
Linking modules...../lib/edvdevicesfio.o(.text+0x56): In function
`EDVDevicesListUpdateMountStatesFromSystem':
/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:86: undefined
reference to `setmntent'
../lib/edvdevicesfio.o(.text+0x68):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0x90):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0xa0):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:134:
undefined reference to `endmntent'
gmake[1]: *** [modules] Error 1
Building program "fsck.front"...
Compiling module fsckcb.o
Compiling module fsckmanager.o
Compiling module main.o
Linking modules...../lib/edvdevicesfio.o(.text+0x56): In function
`EDVDevicesListUpdateMountStatesFromSystem':
/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:86: undefined
reference to `setmntent'
../lib/edvdevicesfio.o(.text+0x68):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0x90):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0xa0):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:134:
undefined reference to `endmntent'
gmake[1]: *** [modules] Error 1
Building program "hedit"...
Compiling module main.o
Linking modules...../lib/edvdevicesfio.o(.text+0x56): In function
`EDVDevicesListUpdateMountStatesFromSystem':
/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:86: undefined
reference to `setmntent'
../lib/edvdevicesfio.o(.text+0x68):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0x90):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0xa0):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:134:
undefined reference to `endmntent'
gmake[1]: *** [modules] Error 1
Building program "sysinfo"...
Compiling module main.o
Compiling module sysinfowin.o
Linking modules... ls: illegal option -- -
usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
Build done.
Building program "ziptool.front"...
Compiling module main.o
Compiling module ziptool.o
ziptool.c: In function `ZipToolRefreshDevice':
ziptool.c:872: warning: long int format, __uint32_t arg (arg 2)
Compiling module ziptoolcb.o
Compiling module ziptoolio.o
Linking modules...../lib/edvdevicesfio.o(.text+0x56): In function
`EDVDevicesListUpdateMountStatesFromSystem':
/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:86: undefined
reference to `setmntent'
../lib/edvdevicesfio.o(.text+0x68):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0x90):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:97:
undefined reference to `getmntent'
../lib/edvdevicesfio.o(.text+0xa0):/usr/home/endeavour/endeavour2/work/endeavour-2.5.3/endeavour2/lib/edvdevicesfio.c:134:
undefined reference to `endmntent'
gmake[1]: *** [modules] Error 1
Building utilities...
Compiling resources
Compiling confirmation_dialog
Compiling style_editor
Build done.
To install, type "su" (to gain root privileges) and then type "make install".
note#
I'm using /usr/ports/sysutils/linneighborhood/files/mntent.h file to build this port
but this is first port.
I need help to fix it.
Gustavo Fukao
FreeBSD user 51175
http://www.freebsd-br.cjb.net
__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
More information about the freebsd-ports
mailing list