Hylafax Mailing List Archives

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

Re: Linking error on SCO



On Wed, 23 Apr 1997, Ramon F Herrera wrote:

> 
> I am trying to build the latest Hylafax.  I was able to make
> some minor changes and solve several easy problems, but I
> finally got stuck with the error included below.  It seems that
> the function 'gettimeofday' cannot be located at link time, but
> it also seems to be right there in /usr/lib/libc.a
> 
> Any help or pointers will be very much appreciated.

Here is the patch I used to build the SCO OS5 binary on ftp.sgi.com
Be sure to read html/building.html. It mentions a system include file
that needs modification.
I was using the SCO development system so you may have to make additional
changes to work with gcc.

P.S. I sent this patch to Sam shortly before he turned the source over
to Matthias. Hopefully it's been incorporated into the master source.

> 
> Regards,
> 
> -Ramon F. Herrera
> 
> ____________________________________________________________________
> Version Information:
> --------------------------------------------------------------------
> hylafax-v4.0pl1
> OS: SCO OpenServer 5.0.2
> gcc version 2.7-95q4   (downloaded from www.sco.com in binary format)
> libg++ version unknown (downloaded from www.sco.com in binary format)
> GNU Make version 3.75
> GNU sed version 2.05
> GNU Awk 3.0.2
> GNU bash, version 2.00.0(1)-release (i586-unknown-sco3.2v5.0.2)
> diff - GNU diffutils version 2.7
> cmp - GNU diffutils version 2.7
> GNU ar version 2.7
> GNU ranlib version 2.7
> GNU nm version 2.7
> Note about 'ld': Unfortunatedly, there is no GNU ld for SCO, so I
> have to use the vendor-provided 'ld'.
> --------------------------------------------------------------------
> 
[ Error Messages sniped]
> --------------------------------------------------------------------
> 

--
Tim Rice			Multitalents	(707) 887-1469 (voice)
tim@trr.metro.net		Keeper of the HylaFAX SCO binaries
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sco5.patch"
Content-ID: <Pine.ASV.3.96.970424165950.26525B@trr.metro.NET>
Content-Description: 

*** configure.old Tue Nov 26 15:20:17 1996
--- configure Sun Dec 29 18:36:37 1996
***************
*** 833,838 ****
  	fi
      }
  fi
  if [ "$GCOPTS" ]; then
      Note "Using \"$GCOPTS\" for C compiler options."
  fi
--- 833,843 ----
  	fi
      }
  fi
+ case $TARGET in
+ 	*-sco3.2v5.*)	GCOPTS="$GCOPTS -b elf"
+ 			Note "Setting GCOPTS for ELF Binaries."
+ 		;;
+ esac
  if [ "$GCOPTS" ]; then
      Note "Using \"$GCOPTS\" for C compiler options."
  fi
***************
*** 984,989 ****
      xlC-*-aix*)
  	GCXXOPTS='-qlanglvl=compat -I/usr/lpp/xlC/include -I/usr/include'
  	;;
      *)
  	GCXXOPTS=
  	;;
--- 989,998 ----
      xlC-*-aix*)
  	GCXXOPTS='-qlanglvl=compat -I/usr/lpp/xlC/include -I/usr/include'
  	;;
+     CC-*-sco3.2v5.*)		# cfront-based or cfront-compatible
+ 	GCXXOPTS='+a1 +p -b elf'
+ 	Note "Setting GCXXOPTS for ELF Binaries."
+ 	;;
      *)
  	GCXXOPTS=
  	;;
***************
*** 1180,1185 ****
      case $CXX-$TARGET in
      xlC-*-aix*)	CXXFILE="-+";;
      gcc-*)	CXXFILE="-x c++";;
      esac
  fi
  
--- 1189,1195 ----
      case $CXX-$TARGET in
      xlC-*-aix*)	CXXFILE="-+";;
      gcc-*)	CXXFILE="-x c++";;
+     CC-*-sco3.2v5.*)	CXXFILE="+.c++";;
      esac
  fi
  
***************
*** 1802,1807 ****
      #
      test "$CONFIG_BADEXECVPROTO" || {		# char* const* vs. const char**
  	case $TARGET in
  	*-sco*)		CONFIG_BADEXECVPROTO=yes;;
  	*)		CONFIG_BADEXECVPROTO=no;;
  	esac
--- 1812,1818 ----
      #
      test "$CONFIG_BADEXECVPROTO" || {		# char* const* vs. const char**
  	case $TARGET in
+ 	*-sco3.2v5.*)	CONFIG_BADEXECVPROTO=no;;
  	*-sco*)		CONFIG_BADEXECVPROTO=yes;;
  	*)		CONFIG_BADEXECVPROTO=no;;
  	esac
***************
*** 1812,1817 ****
      fi
      test "$CONFIG_BADEXECVEPROTO" || {		# char* const* vs. const char**
  	case $TARGET in
  	*-sco*)		CONFIG_BADEXECVEPROTO=yes;;
  	*)		CONFIG_BADEXECVEPROTO=no;;
  	esac
--- 1823,1829 ----
      fi
      test "$CONFIG_BADEXECVEPROTO" || {		# char* const* vs. const char**
  	case $TARGET in
+ 	*-sco3.2v5.*)	CONFIG_BADEXECVEPROTO=no;;
  	*-sco*)		CONFIG_BADEXECVEPROTO=yes;;
  	*)		CONFIG_BADEXECVEPROTO=no;;
  	esac
***************
*** 2263,2268 ****
      CheckVarDecl dev_t 'typedef int dev_t;' $TYPES_H stdlib.h
  
      if CheckForIncludeFile osfcn.h; then
  	Note "... configure use of <osfcn.h>"
  	echo '#define HAS_OSFCN_H 1'
  	OSFCNH='osfcn.h'
--- 2275,2284 ----
      CheckVarDecl dev_t 'typedef int dev_t;' $TYPES_H stdlib.h
  
      if CheckForIncludeFile osfcn.h; then
+ 	case $CXX-$TARGET in
+ 	CC-*-sco3.2v5.*)	OSFCNH=
+ 		;;
+ 	*)
  	Note "... configure use of <osfcn.h>"
  	echo '#define HAS_OSFCN_H 1'
  	OSFCNH='osfcn.h'
***************
*** 2266,2271 ****
  	Note "... configure use of <osfcn.h>"
  	echo '#define HAS_OSFCN_H 1'
  	OSFCNH='osfcn.h'
      else
  	OSFCNH=
      fi
--- 2282,2289 ----
  	Note "... configure use of <osfcn.h>"
  	echo '#define HAS_OSFCN_H 1'
  	OSFCNH='osfcn.h'
+ 		;;
+ 	esac
      else
  	OSFCNH=
      fi
*** util/Dispatcher.c++.old Tue Nov 26 15:20:37 1996
--- util/Dispatcher.c++ Sun Dec 29 18:36:37 1996
***************
*** 31,36 ****
  #if HAS_SELECT_H
  #include <sys/select.h>
  #endif
  #include <sys/time.h>
  #include <limits.h>
  
--- 31,37 ----
  #if HAS_SELECT_H
  #include <sys/select.h>
  #endif
+ extern "C" {
  #include <sys/time.h>
  }
  #include <limits.h>
***************
*** 32,37 ****
  #include <sys/select.h>
  #endif
  #include <sys/time.h>
  #include <limits.h>
  
  #include "Dispatcher.h"
--- 33,39 ----
  #endif
  extern "C" {
  #include <sys/time.h>
+ }
  #include <limits.h>
  
  #include "Dispatcher.h"
*** faxd/FaxMachineLog.c++.old Tue Nov 26 15:21:31 1996
--- faxd/FaxMachineLog.c++ Sun Dec 29 18:36:38 1996
***************
*** 24,29 ****
   * OF THIS SOFTWARE.
   */
  #include <ctype.h>
  #include <sys/time.h>
  #include <errno.h>
  
--- 24,30 ----
   * OF THIS SOFTWARE.
   */
  #include <ctype.h>
+ extern "C" {
  #include <sys/time.h>
  }
  #include <errno.h>
***************
*** 25,30 ****
   */
  #include <ctype.h>
  #include <sys/time.h>
  #include <errno.h>
  
  #include "Sys.h"
--- 26,32 ----
  #include <ctype.h>
  extern "C" {
  #include <sys/time.h>
+ }
  #include <errno.h>
  
  #include "Sys.h"
*** html/building.html.old Tue Dec 31 13:42:10 1996
--- html/building.html Tue Dec 31 13:48:06 1996
***************
*** 2216,2221 ****
    #ifdef _NO_PROTOTYPE
  </LISTING>
  
  <A NAME="Solaris"><H3>Solaris Guidance</H3></A>
  
  Under (at least) Solaris 2.3
--- 2216,2251 ----
    #ifdef _NO_PROTOTYPE
  </LISTING>
  
+ These notes pertain to SCO 3.2 v5.0
+ <P>
+ One of SCO's system include files has incorrect function prototypes
+ that cause compilation to fail;
+ The following diff may be applied to the problematic system include file
+ or one may create a patched copy of the file in a private
+ <B>sys</B> directory under the top level of the HylaFAX build tree.
+ 
+ <LISTING>
+ *** /usr/include/sys/syslog.h Thu Dec 26 04:42:27 1996
+ --- sys/syslog.h Fri Dec 27 17:05:11 1996
+ ***************
+ *** 198,204 ****
+   void closelog __P((void));
+   void openlog __P((const char *, int, int));
+   int setlogmask __P((int));
+ ! int vsyslog __P((int, char *, va_list ));
+   __END_DECLS
+   
+   #endif /* !INKERNEL */
+ --- 198,204 ----
+   void closelog __P((void));
+   void openlog __P((const char *, int, int));
+   int setlogmask __P((int));
+ ! int vsyslog __P((int, const char *, va_list ));
+   __END_DECLS
+   
+   #endif /* !INKERNEL */
+ </LISTING>
+ 
  <A NAME="Solaris"><H3>Solaris Guidance</H3></A>
  
  Under (at least) Solaris 2.3
Date: Thu, 24 Apr 1997 18:28:45 -0600 (CST)
From: Amacias Toledo Reyes <atoledo@fenix.sasa.com.ni>
To: flexfax@sgi.com
Subject: Cover Sheet Page
Sender: owner-flexfax@celestial.com


	I have Hylafax installed on a BSDI/OS 2.1 server conected to
        windowsNt server.

	How I can change the cover Sheet page, for one logo made in 
	Ms-Word97 or others graphics?

	How I can send docs made in Ms-Office.xx
        Im using winflex for that but dont work, the fax machine 
        recive the netx message: 
              this job required more memory than is available in 
              this printer ?
        Is this one Hylafax error or winflex error?

        Actually I send the docs :

        1.- Print the docs to one file in Postscript Format(Laserwriter).

	2.- Send the file with winflex, form one terminal conected to winNT

	Can I do that in other way?

        thanks for the help!!



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services