Opened 21 years ago

Closed 20 years ago

#234 closed defect (worksforme)

gcc: No input files

Reported by: mochaexpress@… Owned by: sdlime
Priority: high Milestone:
Component: Command Line Utilties Version: 4.0
Severity: critical Keywords:
Cc:

Description

checking whether we should use PHP's regex... no
        PHP/MapScript module configured.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mapscript/php3/Makefile
ns01$ gmake
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -
DUSE_PROJ_API_H -DUSE_WMS
 -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY     -DUSE_POSTGIS   -
I/usr/local/include  -I/usr/lo
cal/include -I/usr/pkg/include -I/usr/pkg/include       -I   maptemplate.c -o 
maptemplate.o
gcc: No input files
gmake: *** [maptemplate.o] Error 1
ns01$ 

--- 

I searched the archive and found two other instances where some one else had 
that problem but no replies/solutions were given. 

I tracked the problem down to the configure options: 

--with-postgis[=ARG]         Include PostGIS Support (ARG=yes/path to pg_config)
--with-freetype=DIR     Specify where FreeType is installed (DIR is path to
                          FreeType 2.x freetype-config program or FreeType
                          1.x/2.x install dir). 

The above references 'path to XXXX', most would type the actual directory path 
like: 

--with-postgis=/usr/local/bin \
--with-freetype=/usr/pkg/bin \

Which will result in that "gcc: No input files" error. Instead they should 
supply the full path of the program:

--with-postgis=/usr/local/bin/pg_config \
--with-freetype=/usr/pkg/bin/freetype-config \ # Only if FreeType 2.x

Change History (1)

comment:1 by dmorissette, 20 years ago

Resolution: worksforme
Status: newclosed
I believe a similar issue was fixed in 4.1 or 4.0.  I'll close the bug as
WORKSFORME, and please reopen if this still happens with the latest CVS source.
Note: See TracTickets for help on using tickets.