[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: compilation problem on HPUX11




> -----Original Message-----
> From: Greg Wooledge [mailto:wooledg@eeg.ccf.org]
> Sent: Tuesday, December 09, 2003 2:24 PM
> To: Gansser, Martin
> Cc: cdwrite@other.debian.org
> Subject: Re: compilation problem on HPUX11
> 
> 
> On Tue, Dec 09, 2003 at 11:24:24AM +0100, Gansser, Martin wrote:
> > dvd+rw-tools-5.14.4.7.4 # gmake
> > gmake[1]: Entering directory 
> `/users/mgansser/GNU/dvd+rw-tools-5.14.4.7.4'
> > gcc  -O2 -c  -o growisofs.o growisofs.c
> > g++  -O2 -fno-exceptions -c  growisofs_mmc.o growisofs_mmc.cpp
> > g++: growisofs_mmc.o: No such file or directory
> 
> Clearly this g++ command is malformed.  Looking at Makefile.m4, I see
> this:
> 
> .c.o:
> 	$(CC) $(CFLAGS) -c  -o $@ $<
> .cpp.o:
> 	$(CXX) $(CXXFLAGS) -c  $@ $<
> 
> The "-c" on the last line above should be "-c -o", just like on the
> second line.

thanks, that works now !

another question about growisofs.c:

there are a few lines, that looks like a patch.
what means this ?

#if 0
#define CANNOT_PASS_DEV_FD_N_TO_MKISOFS
#elif 0
--- ./multi.c.orig      Wed Dec 25 15:15:24 2002
+++ ./multi.c   Tue Nov 11 17:12:27 2003
@@ -1067,3 +1067,13 @@
 open_merge_image(path)
        char    *path;
 {
+       int fd;
+
+       if (sscanf (path,"/dev/fd/%u",&fd) == 1) {
+               int fdd = dup(fd);      /* validate file descriptor */
+               if (fdd < 0) return -1;
+               close (fdd);
+               in_image = fdopen (fd,"rb");
+               return in_image ? 0 : -1;
+       }
+
#endif

thanks Martin



Reply to: