Menu

#542 libgphoto2_port/disk fails on Solaris - wrong mnt functions

closed-fixed
5
2006-09-24
2006-02-08
No

On Solaris it uses different header files, functions
and structure members for mounting volumes.

The tail of my build log is:

pkgbuild: mkdir .libs
pkgbuild:
/sgnome/tools/sparc-solaris/forte/vulcan-0107/opt/SUNWspro/bin/cc
-DHAVE_CONFIG_H -I. -I. -I.. -I../libgphoto2_port -I..
-I../libgphoto2_port -DLOCALEDIR=\"/usr/share/locale\"
-DIOLIBS=\"/usr/sfw/lib/libgphoto2_port/0.5.2\"
-I/usr/sfw/include -i -xO4 -xspace -xstrconst
-xarch=v8a -mr -I/usr/sfw/include -fPIC -c disk.c
-KPIC -DPIC -o .libs/disk_la-disk.o
pkgbuild: cc: Warning: illegal option -fPIC
pkgbuild: "disk.c", line 36: cannot find include file:
<mntent.h>
pkgbuild: "disk.c", line 186: warning: implicit
function declaration: setmntent
pkgbuild: "disk.c", line 186: warning: improper
pointer/integer combination: op "="
pkgbuild: "disk.c", line 187: warning: implicit
function declaration: getmntent
pkgbuild: "disk.c", line 187: warning: improper
pointer/integer combination: op "="
pkgbuild: "disk.c", line 189: undefined struct/union
member: mnt_fsname
pkgbuild: "disk.c", line 189: warning: improper
pointer/integer combination: arg #1
pkgbuild: "disk.c", line 190: improper member use:
mnt_fsname
pkgbuild: "disk.c", line 190: warning: improper
pointer/integer combination: arg #1
pkgbuild: "disk.c", line 194: undefined struct/union
member: mnt_dir
pkgbuild: "disk.c", line 196: improper member use: mnt_dir
pkgbuild: "disk.c", line 200: undefined struct/union
member: mnt_fsname
pkgbuild: "disk.c", line 201: improper member use: mnt_dir
pkgbuild: "disk.c", line 206: warning: implicit
function declaration: endmntent
pkgbuild: "disk.c", line 207: warning: improper
pointer/integer combination: op "="
pkgbuild: "disk.c", line 208: warning: improper
pointer/integer combination: op "="
pkgbuild: "disk.c", line 210: undefined struct/union
member: mnt_fsname
pkgbuild: "disk.c", line 210: warning: improper
pointer/integer combination: arg #1
pkgbuild: "disk.c", line 211: improper member use:
mnt_fsname
pkgbuild: "disk.c", line 211: warning: improper
pointer/integer combination: arg #1
pkgbuild: "disk.c", line 215: undefined struct/union
member: mnt_dir
pkgbuild: "disk.c", line 217: improper member use: mnt_dir
pkgbuild: "disk.c", line 222: undefined struct/union
member: mnt_fsname
pkgbuild: "disk.c", line 223: improper member use: mnt_dir
pkgbuild: cc: acomp failed for disk.c
pkgbuild: make[4]: *** [disk_la-disk.lo] Error 1
pkgbuild: make[4]: Leaving directory
`/jds/packages/BUILD/SUNWgnome-camera-2.13.90/libgphoto2-2.1.99/libgphoto2_port/disk'
pkgbuild: make[3]: *** [all-recursive] Error 1
pkgbuild: make[3]: Leaving directory
`/jds/packages/BUILD/SUNWgnome-camera-2.13.90/libgphoto2-2.1.99/libgphoto2_port'
pkgbuild: make[2]: *** [all] Error 2

Discussion

  • Marcus Meissner

    Marcus Meissner - 2006-02-08

    Logged In: YES
    user_id=48092

    i fixed this in current CVS , and it will be in the next
    libgphoto2 release. (autoconf check against mntent.h)

     
  • Marcus Meissner

    Marcus Meissner - 2006-02-08
    • status: open --> closed-fixed
     
  • Damien Carbery

    Damien Carbery - 2006-03-15

    Logged In: YES
    user_id=843868

    Attached patch uses different mntent functions and code on
    Solaris. I haven't checked CVS to see if this is already
    upstream.

     
  • Marcus Meissner

    Marcus Meissner - 2006-03-19
    • status: closed-fixed --> open-fixed
     
  • Marcus Meissner

    Marcus Meissner - 2006-03-19

    Logged In: YES
    user_id=48092

    there was nothing attached?

     
  • Marcus Meissner

    Marcus Meissner - 2006-03-19
    • assigned_to: hun --> marcusmeissner
    • status: open-fixed --> open
     
  • Damien Carbery

    Damien Carbery - 2006-03-20

    Untested patch to use Solaris mntent functions

     
  • Marcus Meissner

    Marcus Meissner - 2006-09-09
    • status: open --> pending-fixed
     
  • Marcus Meissner

    Marcus Meissner - 2006-09-09

    Logged In: YES
    user_id=48092

    your patch is a bit weird.

    i split off a new mnttab handling case, and applied
    this to SVN.

    I am not able to compile or test it myself, please do :)

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB