[scponly] 4.3 Make Issue

christian.schwabl at chello.at christian.schwabl at chello.at
Thu Jan 12 10:34:10 EST 2006


Hello,

seems like optreset is not definend on every platform.... 
I had a similar problem under HP-UX, here is the relevant part of my post last week:
---------------
2) "extern int optreset;" in helper.c: optreset is not declared under HP-UX 
(maybe in some special getop packages), so i changed this to "int optreset;".  
---------------

Maybe there should be additional check in the configure-script as it seems that optreset comes from a certain getopt distribution.

I checked that problem on Solaris 8, there we have the same problem, removing the "extern" definition solves this.

regards,
cs

> 
> Von: "Stephen McColl" <S.McColl at ep-europost.de>
> Datum: 2006/01/11 Mi PM 01:33:00 CET
> An: <scponly at lists.ccs.neu.edu>
> Betreff: [scponly] 4.3 Make Issue
> 
> Getting this during make:
> 
>  
> 
> linux:~/APPS/scponly-4.3 # make
> 
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H
> -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly.o -c
> scponly.c
> 
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H
> -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o helper.o -c
> helper.c
> 
> gcc -g -O2 -I. -I. -DHAVE_CONFIG_H
> -DDEBUGFILE='"/usr/local/etc/scponly/debuglevel"' -o scponly scponly.o
> helper.o
> 
> helper.o(.text+0x8e5): In function `check_dangerous_args':
> 
> /root/APPS/scponly-4.3/helper.c:163: undefined reference to `optreset'
> 
> collect2: ld returned 1 exit status
> 
> make: *** [scponly] Error 1
> 
>  
> 
> Any Tips?
> 
>  
> 
>  
> 
> Steve
> 
> 
> 





More information about the scponly mailing list