Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile of CUPS 1.3.x fails when upgrading from CUPS 1.2 #2538

Closed
michaelrsweet opened this issue Sep 28, 2007 · 2 comments
Closed

Compile of CUPS 1.3.x fails when upgrading from CUPS 1.2 #2538

michaelrsweet opened this issue Sep 28, 2007 · 2 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.3.2
CUPS.org User: cmt

When compiling CUPS 1.3.x as an upgrade (installed CUPS 1.2.x), compile fails in cgi-bin/ with undefined symbols (first one is CUPS_SERVER_REMOTE_ANY in cgi-bin/admin.c).
This is caused by an error in the ordering of compiler arguments, the old headers in /usr/local/include get precedence over the current ones in cups' source directory. When assembling ALL_CFLAGS in Makedefs, $(CFLAGS)
has to go before $(SSLFLAGS). See attached file for a patch.
NOTE: this has been first discoverd on FreeBSD, see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/116721 for reference.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"patch-Makedefs.in":

--- Makedefs.in.orig Fri Sep 28 21:13:27 2007
+++ Makedefs.in Fri Sep 28 21:13:48 2007
@@ -108,8 +108,8 @@

for extra debug info)

-ALL_CFLAGS = $(SSLFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \

  •       $(OPTIONS) $(CFLAGS)
    
    +ALL_CFLAGS = $(CFLAGS) $(SSLFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \
  •       $(OPTIONS)
    
    ARCHFLAGS = @ARCHFLAGS@
    ARFLAGS = @ARFLAGS@
    BACKLIBS = @BACKLIBS@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant