Received: (qmail 29912 invoked by uid 2012); 4 Dec 1997 19:44:21 -0000 Message-Id: <19971204194421.29911.qmail@hyperreal.org> Date: 4 Dec 1997 19:44:21 -0000 From: Alan Pesola Reply-To: usfmct7r@ibmmail.com To: apbugs@hyperreal.org Subject: Compile errors in alloc.c --> bad assignment type: char * = void * (1213) X-Send-Pr-Version: 3.2 >Number: 1515 >Category: os-hpux >Synopsis: Compile errors in alloc.c --> bad assignment type: char * = void * (1213) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Dec 4 11:50:01 PST 1997 >Last-Modified: Fri Dec 5 18:09:47 PST 1997 >Originator: usfmct7r@ibmmail.com >Organization: >Release: 1.2.4 >Environment: HP-UX 9.07 on a HP9000-715 using HP-UX C++ compiler 3.01 >Description: Below is the output from the Configuration command and the compiler errors. Output from Configure -- Using config file: Configuration Using Makefile template file: Makefile.tmpl + configured for HP-UX platform + setting C compiler to cc + setting C compiler optimization-level to ------------------------------------------------------------------------------------- Output from Make -- Only change to the Makefile that I made was changing CC=cc to CC=CC I don't have gcc, I am using my C++ compiler which is version 3.01 CC -c -DHPUX -Aa -D_HPUX_SOURCE alloc.c C: "alloc.c", line 383: error: bad assignment type: char * = void * (1213) CC: "alloc.c", line 392: error: bad assignment type: char * = void * (1213) CC: "alloc.c", line 449: error: bad assignment type: char * = void * (1213) CC: "alloc.c", line 465: error: bad assignment type: char * = void * (1213) CC: "alloc.c", line 487: error: bad assignment type: char * = void * (1213) CC: "alloc.c", line 898: error: no standard conversion of void * to regex_t* (1231) CC: "alloc.c", line 936: error: syntax error (1502) CC: "alloc.c", line 934: warning: a not used (117) CC: "alloc.c", line 934: warning: pid not used (117) CC: "alloc.c", line 934: warning: how not used (117) CC: "alloc.c", line 988: warning: pid_t assigned to int (276) Stop. *** Error code 1 >How-To-Repeat: >Fix: >Audit-Trail: From: Dean Gaudet To: Alan Pesola Cc: apbugs@hyperreal.org Subject: Re: os-hpux/1515: Compile errors in alloc.c --> bad assignment type: char * = void * (1213) Date: Thu, 4 Dec 1997 11:57:21 -0800 (PST) Apache is a C program not a C++ program... C allows such assignments. Feel free to add a cast to get it to compile though. You might want to build gcc using your C++ compiler, I think that works. Dean State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Dec 5 18:09:47 PST 1997 State-Changed-Why: As Dean said, Apache is a C program and a C++ compiler will often not work. gcc would probably be your best bet. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]